(no subject)
31 March 2002 14:24bloody SQL assignment is killing me.
"List all data from the Person table who are niether staff nor patients."
fucked if I know.
Why does
WHERE person.person_id = staff.person_id
AND person.person_id = admission.patient_id
work and
WHERE person.person_id <> staff.person_id
AND person.person_id <> admission.patient_id
not?
"List all data from the Person table who are niether staff nor patients."
fucked if I know.
Why does
WHERE person.person_id = staff.person_id
AND person.person_id = admission.patient_id
work and
WHERE person.person_id <> staff.person_id
AND person.person_id <> admission.patient_id
not?
no subject
Date: 30 Mar 2002 20:29 (UTC)that's more or less what it should be, but 'type' would be the field you're using for the staff/patient flag. lemme know if that works, it's just off the top of my head.
no subject
Date: 30 Mar 2002 20:31 (UTC)no subject
Date: 30 Mar 2002 20:35 (UTC)no subject
Date: 30 Mar 2002 20:45 (UTC)no subject
Date: 30 Mar 2002 20:47 (UTC)jeez I hate programming of any sorts
no subject
Date: 30 Mar 2002 20:52 (UTC)i guess that's why i never really stick with my comp sci courses, they just frustrate me too much.