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?

Re: Try this

Date: 31 Mar 2002 05:19 (UTC)
From: [identity profile] berin.livejournal.com
Not too bad for 2 AM and slightly inebriated. I've been trained too well, as I can not let a question like that slip by without an answer.

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:18
Powered by Dreamwidth Studios