+ 1
Can we use twice AND operator in single query?
9 Réponses
+ 3
yes
for example
SELECT name , account_type FROM banks WHERE name LIKE A% AND (account_type='saving' AND account_type='current');
here above is a query against the names for customers having both type of account with the banks.
and sorry its not explained here about "Like A%"
so when I write "name like A%" it represents all names starting from Capital( Uppercase ) alphabet 'A'
+ 2
You can use as many as you want in a query. Just make sure the format is right and use parentheses.
+ 1
yes u can use as many as u need
+ 1
yes
+ 1
yes we can
+ 1
Yes. You can use, but more the no. of AND more the Performance degrade while Execution of Query.
+ 1
Yes
+ 1
Yes you can use