Professional Documents
Culture Documents
Table Name: Key Points
Table Name: Key Points
Queries
SELECT all
SELECT * FROM TableName; (To retrieve
all the records)
* Means all the columns
For specific column: Instead of * write
column name
SELECT Column name FROM Tablename;
Arrange or Sort data ORDER BY clause
SELECT * FROM TableName ORDER BY
Column name;
By default, Asc
To define Desc DESC
WHERE Clause
To add condition
SELECT * FROM TableName WHERE
condition;
Condition Column name O condition
Relation operator: = > < >= <=
Section = ‘B’
IT_marks > 20
Note: Text use ‘‘
Wildcard
LIKE Operator with WHERE Clause
SELECT * FROM TableName WHERE
Column name LIKE Condition;