den: (Default)
[personal profile] den
bloody 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?

Date: 30 Mar 2002 20:35 (UTC)
From: [identity profile] mmmetta.livejournal.com
dunno about access, but my guess would be because it's comparing strings. if you compared numbers you'd be able to get away with <>, i think. if its valid syntax anyway.

Date: 30 Mar 2002 20:37 (UTC)
From: [identity profile] moonrose.livejournal.com
the strings thing is my guess too. i've been lucky and managed to avoid Access for the most part. :/

Profile

den: (Default)
den

April 2023

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526 272829
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated 31 December 2025 05:29
Powered by Dreamwidth Studios