Hi all,
Im trying to put together a query to get the results for a csv file.
I have two tables that im trying to get data from student_login and student_profile.
the query that im trying to do is this.
check that the user has an active account( from the table student_login) and then using the students_id check that there isnt a profile.
below is there query I’m trying … its working but looping the same names over and over
[php]
SELECT
student_login.student_id,
student_login.active,
student_login.email,
student_profile.student_id,
student_profile.percent
FROM
student_login,student_profile
WHERE
student_login.active = ‘1’
AND
student_profile.student_id != student_login.student_id
[/php]
any help would be great thanks