Dbms - Test4 Level3 Answers
Dbms - Test4 Level3 Answers
UseCase7:In a database there are two tables "ITEM" and "CUSTOMER" as shown
below :
(i) SELECT * FROM ITEM WHERE PRICE > = 40 AND PRICE <=95.
(ii) SELECT CUSTOMERNAME, CITY,ITEMNAME, PRICE FROM CUSTOMER, ITEM
WHERE CUSTOMER.ID = ITEM.ID.
(iii) UPDATE ITEM SET PRICE = PRICE + 50.
UseCase8: Given below is the 'Worker' table :
(i) To display Tcode, Name and Aname of all the records where the number of tickets
sold is more than 5.
(ii) To display total number o{ tickets booked by agent "Mr. Ayush".
(iii) To display Acode, Aname and corresponding Tcode where Aname ends with 'k'.
With reference to these tables, write commands in SQL for (i) and (ii) and output for (iii)
below:
(i) To display flight number source, airlines of those flights where fare is less than Rs.
10000.
(ii) To count total no of Indian Airlines flights starting from various cities.
(iii) SELECT FLIGFITS.FNO, NO_OF_FL, AIRLINES FROM FLIGHTS,FARES WHERE
FLIGHTS. FNO = FARES.FNO AND SOURCE='DELHI';