|
Main Menu
Resources
|
SQL BETWEEN
The BETWEEN clause is used to display the value that falls within a specified range of values. The syntax for the BETWEEN clause is: SELECT [COLUMN NAME] FROM [TABLE NAME]
For Example, we like to call out player name that scores is between 2000 to 2500. Table GameScores
SQL statement : SELECT PlayerName FROM GameScores Result:
NOT clause also can be use in BETWEEN clause to get the data not within a range. SELECT [COLUMN NAME] FROM [TABLE NAME] SQL statement : SELECT PlayerName FROM GameScores Result:
|
|||||||||||||||||||||||||||||

Printer friendly page