Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

I 'Type 1 Pub

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

..

20. Allamegati.helolitiwintraivstioatt3 bi.aed...Waert orl.SQL

. Q I. Write SQL command fbr (a) to (1) and write output. of SQL command given in (g) with
the help of table shown below :
t Silo, I Tide ................................ i AlithOf i 'Type 1 Pub EQty I Puce 1
I.......... Data Strati:um i Lipschutz J OS ........................................................
.( 217
I f . I Mcgraw i 4
1
2 ! Comptger Studies French IFNI) 1Galgotia I2 7 5i
C3 i Advanced Pascal 1 Schildt 1 P.ROG 1 Megrim 4 13513...............1
14 tDbaseDummiesIPalmeID
r BMS;PustakM'5 ; 130
6 i Guide Network 4 Freed NEE 12:Press 1 3 I 295
-
5 I Mastering_Cti I Guerewish : PROG I 8143 1 3
i 29(5) i
17 1 Mastering Foxpro 1 Seigel I DBMS BPB 4 13 ........................
I 8 DOS Guiede 4i Norton I OS i PHI .....................1 175 ;
9 Basic of &pima ... . . M a r t o n 1 F R O G % B 1 ' u 40 }
i 1 . . i 'ft.ik '
110 I i asterineyindow i Cowart t OS I BPB ..............................
a) Select all the PROG type published by BPB from Library,
I)) Display a list of all books with Price more than 130 and sorted by Qty.
c) Display all books sorted by Price in ascending order,
Q'l d) Display all report, listing books title, current value and misplacement charges for each
_1 book in above table.
Calculate the misplacement charges for all books pricer 1.25.
e) Count the number of books in above table. Fill all the column with values.
0 Insert a new book in Library table. Fill all column with valus.
g) Give the output of following SQL command on the basis of table Library
1.Select MI.N(Price) from Library where. Price<150;
2.Select AVG(Price) from Library Where Qtyc3;
3.Select COUNT(DISTINCT Pub) from Library;
Answer
a) SELECT Type
FROM Library
WHERE(Typer,'PROGLAND Puly,'BPB');
b) SELECT Title 'BOOKS',
FROM Library
WHERE Price>1.30
ORDER BY Qty;
c) SELECT Title 'BOOKSs
FROM Library
ORDER BY Price ASC;
d) SELECT Title "BOOKS', Price "Current Value", Priee*1.25"Mispiacement Charges"
FROM Library:

You might also like