0

How to use where clause on two conditions like I I need where city = xxxx and where street = yyy

5th Dec 2020, 6:06 AM
Nandhakumar G
Nandhakumar G - avatar
5 Antworten
+ 1
You already have the answer in your question. You just wrap the values with single quotes (assumed CHAR, or VARCHAR family). WHERE city = 'xxxx' AND street = 'yyy' AND operator ensures all its operands satisfies. OR operator needs only one of its operands to satisfy.
5th Dec 2020, 7:01 AM
Ipang
+ 6
Nandhakumar G Can you elaborate a bit more for ehat you are asking?
5th Dec 2020, 6:12 AM
Piyush
Piyush - avatar
+ 1
I have a table like employees I'd, city and street if I have listed on 4 city same and only 2 employees I'd on same street out of 10 employees I'd but I need 2 same street on same city so how to write a query
5th Dec 2020, 1:16 PM
Nandhakumar G
Nandhakumar G - avatar
0
where city=xxxx or street=yyy
5th Dec 2020, 6:33 AM
Prathvi
Prathvi - avatar
0
Nandhakumar G I can't understand your description, can you explain in more simple way? I can't imagine the tabls data ...
5th Dec 2020, 2:12 PM
Ipang