Welcome Guest, Not a member yet? Register   Sign In
SQL Question
#1

[eluser]frbry[/eluser]
Hi,

I'm using DX_Auth for authorization in my web application. So, all the users are in "users" table. I have another table called lessons that has three columns: id | student_id | teacher_id. Both student_id and teacher_id are just ids from the users table because both student and teacher are members of the site.

I think this is a problematic database design for me because i can't get the student's name and the teacher's name at the same row when i want to get all the lessons in the table.

How should i proceed from this point?

Thank you.


Messages In This Thread
SQL Question - by El Forum - 07-25-2009, 03:13 AM
SQL Question - by El Forum - 07-25-2009, 03:39 AM
SQL Question - by El Forum - 07-25-2009, 04:13 AM
SQL Question - by El Forum - 07-25-2009, 04:22 AM
SQL Question - by El Forum - 07-25-2009, 04:29 AM
SQL Question - by El Forum - 07-25-2009, 04:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB