|
Main Menu
Resources
|
SQL AND
With WHERE clause, we can SELECT the data conditionally. The AND operator allows you to create an SQL statement based on 2 or more conditions being met for WHERE clause. It can be used in any valid SQL statement - select, insert, update, or delete. The SQL syntax for the AND operator is: SELECT [COLUMN NAME] FROM [TABLE NAME] In detailed syntax, the SQL syntax can be like this SELECT [COLUMN NAME] FROM [TABLE NAME] The AND condition requires that each condition be must be met for the record to be included in the result set. In this case, [COLUMN 1] has to equal [VALUE 1] and [COLUMN 2] has to equal [VALUE 2].
We would like to return from the data to search person from IT Department that score is more than 2000. Table GameScores
SQL statement : SELECT PlayerName FROM GameScores Result:
|
|||||||||||||||||||||||

Printer friendly page