Dbms Assignment
Dbms Assignment
T 24 65
Assianrnent
Defining Data
Q. Wnt an saL Query to tHtat employee
table with wlumns,
EM2D, debaxtment, saary Joindatand manar ID.
Create. table enmglayee
Empid ini primary key,
Emp n0mE yarchar (50),
Departént varchar (50),
Sary deimal (102),
|oin date Dare,
managerTD int.
Manipulating Data
Q7. l0rik que to insert new employee ieord into employeL
table
AS. UPDATÉ emioyes SET Salary :60 O00 . 00 vohere EMPId 01.
Q9. Wrik qpery to delete employee rom the. employee table where
Ernpld ro9
Q23. 0 rik
an s0 quéry to DËsHnt.
dispay uniq ue to b zolee from the
Gmþoyee tabu bsing
A23Select pisTINCT Depasttment fuom Cmployee ;
Q24 Woite an SQL qvery to find emþloye es whobe
salacy is in
the ra e o40,000 to g0,o00 wing 8¬TOE EN
A26 Selet* fuom emoyee. uOH ERE Emp Nume uKE AZ.;.
Q3. Wxik an sQL query vsing DR to find employees eitheu
|n
maskimg' or eaHningabove 70, D00