Untitled
Untitled
Untitled
----------------AGGRIGATE FUNCTIONS---------------------
---------------------WHERE CLAUSE-------------
--------------------------LIKE---------------
-------------------------ORDER BY-----------------
SELECT cid, name FROM to_update WHERE cid>10 ORDER BY name DESC;
SELECT cid, name FROM to_update WHERE cid>10 ORDER BY name ASC;
--------------------OPERATIONS-------------------------
--------------------JOINS----------------------------------
SELECT courses.cid, courses.course, hod.name, hod.cid
FROM courses
INNER JOIN hod ON courses.cid = hod.cid;