J
Julia
Hi,
I need help with the following query,
I have two LookUp tables:
Cities
Id Name
1 USA
2 UK
Courtiers
Id Name
1 Boston
2 London
assuming user input City and Country NAME,I need to get the ID for the names
if possible in one query(I know of course how to do it in several queries)
if the query cannot find a name it should return -1
for example
User Input:
City:LANDON(note for the 'A')
Country:USA
excepted output:
-1,1
Thanks in advance.
I need help with the following query,
I have two LookUp tables:
Cities
Id Name
1 USA
2 UK
Courtiers
Id Name
1 Boston
2 London
assuming user input City and Country NAME,I need to get the ID for the names
if possible in one query(I know of course how to do it in several queries)
if the query cannot find a name it should return -1
for example
User Input:
City:LANDON(note for the 'A')
Country:USA
excepted output:
-1,1
Thanks in advance.