0% found this document useful (0 votes)
19 views

Practical File Term 2

Uploaded by

Atharv Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Practical File Term 2

Uploaded by

Atharv Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Q.

1
a. SELECT * FROM HOSPITAL
WHERE Department = “ Cardiology ” ;
b. SELECT Name FROM HOSPITAL
WHERE Sex= “F” AND Department = “Orthopedic” ;
c. SELECT NAME FROM HOSPITAL
ORDER BY Dateofadm ;
d. SELECT Name , Charges , Age FROM HOSPITAL
WHERE Sex = “M” ;
e. SELECT COUNT(Age) FROM HOSPITAL
WHERE Age> 20 ;
f. INSERT INTO HOSPITAL
VALUES(11,“Mustafa”,37, “ENT”, “25/02/98”, 250, “M”);
g.

1.

2.

3.
4.

Q.2

(a.)

(b.)

(c.)

(d.)
(e.)
(f.)
(i.)

(ii.)

(iii.)
(Q.4)
(a.) SELECT Shop_Name FROM LAB
WHERE Area = “South”;
(b.) SELECT Shop_Name, Cust_Percent FROM LAB
WHERE Cust_Percent >80;
(c.) SELECT Shop_Name FROM LAB
WHERE Sale > 300000
ORDER BY Shop_Name ;
(d.) SELECT Shop_name, Area, Rating FROM LAB
WHERE Sale BETWEEN 350000 AND 400000;
(e.) SELECT City , COUNT(Shop_Name) FROM LAB
GROUP BY City;
(f. ) INSERT INTO LAB
VALUES(7, “The Shop”,550000, “South”,90.8, “A”,
“Ahmedabad”);
(g.)
(i.) 66.7
(ii.) 1246000
(iii.)353000
(iv.)3

You might also like