Professional Documents
Culture Documents
SQL Revision
SQL Revision
SQL Revision
Relational operators
>, <, >=, <=, =, !=
Logical Operators
And, Or, Not
NULL : Empty
With NULL IS NULL/ IS NOT NULL operator is used.
= operator is not used.
Order By
Q) To display the details of all the flights in ascending
order of fare.
Ans:
Select *
From Flight
Order By Fare Asc;
Like :
% : It is used to replace none, one or more characters.
_ : It is used to replace only single character.
Ans:
Select FNO, Fare
From Flight
Where Start = “Delhi” OR Start = “Mumabi” OR Start =
“Chennai” ;
Desc Flight;
5500
Max(Fare) Min(Fare)
5500 4500
Count() : To count/display number of something
Ans:
If Above two statements are giving different outputs,
it means there are some null values in Fare column.