How many where clause can be there in sql query? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How many where clause can be there in sql query?

21st Mar 2018, 6:34 AM
More Praveen Kumar
More Praveen Kumar - avatar
2 Answers
+ 3
In simple sql query (such as SELECT * FROM table_name WHERE condition...) we can use only one WHERE clause, but WHERE clause is not only used in simple SELECT statement, it is also used in complex queries, subqueries and etc. For more information you can see following link: https://docs.microsoft.com/en-us/sql/t-sql/queries/where-transact-sql
2nd Apr 2018, 7:56 PM
Ahyan
Ahyan - avatar
+ 1
WHERE clause is used only once after SELECT statement generally but can be used with different and multiple set of conditions
3rd Oct 2020, 5:07 AM
Nishtha
Nishtha - avatar