Hi,
I need some help with one query. I have two WHERE statements referring to the same table and obviously it's ignoring the second statement. Any help would be appreciated.
Data
Query
Thank you in advance.
I need some help with one query. I have two WHERE statements referring to the same table and obviously it's ignoring the second statement. Any help would be appreciated.
Data
Code:
__USER Table__
| ID | NAME | Prof | UID | LNID |
| 9902 | Brian Chapman | Engineer | 2023 | 1032 |
__INFO Table__
| ID | Type | RW_ID | Name |
| 877 | University | 2023 | Lethbridge |
| 845 | Language | 1032 | English |
Query
Code:
SELECT FROM
USER,
INFO
WHERE 0=0
and (INFO.TYPE = 'University' and INFO.RW_ID = USER.UID)
and (INFO.TYPE = 'Language' and INFO.RW_ID = USER.LNID)
Thank you in advance.