SP Xi Ip PDF
SP Xi Ip PDF
ii) Now Subhee wants to remove the table Orders from Database. Write
the appropriate query.
OR
Check the following table and answer the questions below
i)Sabina wants to print the above table in descending order of Price, help
her to write the quote.
ii)Now Sabina wants to remove the column Transaction Date, what
command she should write?
iii)Sabina wants to print the details of the items whose name has “t” as the
second letter. Help her write the query.
OR
See the following table and Write output for i) to iv)
Table :EMPLOYEE
ENO NAME DOJ DOB GENDER DCODE
1001 Gorge K 2013-09-02 1991-09-01 MALE D01
1002 RymaSen 2012-12-11 1990-12-15 FEMALE D03
1003 Mohitesh 2013-02-03 1987-09-04 MALE D05
1007 Anil Jha 2014-01-17 1984-10-19 MALE D04
1004 Manila 2012-12-09 1986-11-14 FEMALE D01
Sahai
1005 R Sahay 2013-11-18 1987-03-31 MALE D02
1006 Jaya Priya 2014-06-09 1985-06-23 FEMALE D05
(i) Select ENO,Name,Gender from EMPLOYEE order by ENO;
(ii) Select Name from EMPLOYEE where Gender=”MALE”;
(iii) Select Eno,Name from EMPLOYEE where DOB between ‘1987-01-01’
and ‘1991-12-01’;
(iv) select NAME from EMPLOYEE where GENDER=”FEMALE” and DOJ>
‘1986-01-01’;