SELECT <Column name 1>, <Column name 2>.... FROM
;SELECT * FROM
SELECT * FROM
Sample Command - SELECT * FROM students2 -> WHERE Score = 50;
SELECT * FROM
Sample Command -
SELECT * FROM students2 Where Name LIKE "Sarthak Jain"; SELECT * FROM students2 Where Name LIKE "%Jain";
SELECT * FROM
Sample Command -
SELECT * FROM students2 Where Name LIKE "_e%"; SELECT * FROM students2 Where Name LIKE "%";
SELECT * FROM
// Comparisson -> <column name 1> = -> <column name 2> >/ < />= /<=
Sample Command - SELECT * FROM students2 WHERE MaritalStatus = "Married" AND Score > 50;
SELECT * FROM students2 WHERE MaritalStatus = "Single" OR Score = 60;
SELECT * FROM students2 WHERE NOT =
Sample Command - SELECT * FROM students2 WHERE NOT Score = 60;
SELECT * FROM students2 WHERE NOT MaritalStatus = "Single";
SELECT * FROM students2 WHERE (MaritalStatus = "Single" AND Score = 70) OR (MaritalStatus = "NA" OR Score = 80);
SELECT * FROM
Sample Command - SELECT * FROM students2 ORDER BY Name; SELECT * FROM students2 ORDER BY MaritalStatus; SELECT * FROM students2 ORDER BY MaritalStatus, Name;
SELECT * FROM
Sample Command - SELECT * FROM students2 Where Score >50 ORDER BY Name DESC;
SELECT * FROM students2 ORDER BY Score DESC, Name ASC; SELECT * FROM students2 ORDER BY Score DESC, DOB DESC;
SELECT * FROM
Sample Command -
SELECT * FROM students2 ORDER BY Score DESC LIMIT 3;
SELECT * FROM
Sample command - SELECT * FROM students2 ORDER BY Score DESC LIMIT 1 OFFSET 3;
SELECT * FROM students2 ORDER BY Score DESC LIMIT 3,1; // Same query for 4th rank
SELECT * FROM