Dbms Queries
Dbms Queries
EMP(empno,deptno,ename,salary,designation,joiningdate,DOB,city).
1) insert one row into the table
___ INSERT INTO EMP VALUES (1, 10, 'John', 1000, 'Manager', '2020-08-01', '1996-05-20',
'New York');
5) display employee name starting with "S" and working in deptno 1002.
_____ SELECT ename FROM EMP WHERE ename LIKE "S%" AND deptno=1002;
2) display the names of the student who obtained highest marks in sub3.
_____SELECT name FROM stud WHERE sub3 = (SELECT MAX(sub3) FROM stud);