We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 3
'NTERACTIVE sal paRT|
0S oN EXERCISES 135
ge the E2DIeS described below:
CLIENT_MASTER
Used to store client information,
Sire [Attributes Henin
20 - Seta
‘Varel 30
Varchar2__|30
Varchar2 [15
Number 8
‘Varchar2_ 1S
Number 10.2
paieName: - PRODUCT_MASTER H
Teeription: __Used to store pfoduct information.
pean Name [Data Type [Size [Default [Attributes
pRODUCTNO Varchar2 6
FESCRIPTION — |Varchar2 _|15
jROFITPERCENT | Number 42 |
TNITMEASURE _|Varchar2__|10
TYONHAND [Number 8 |
REORDERLVE | Number 8
‘SELLPRICE [Number 8,2
(COSTPRICE Number 8,2
TableName: SALESMAN_MASTER
Description: __Used to store salesman informations working for the company.
‘Column Name. Data Type [Size [Default . [Attributes
ISALESMANNO __[Varchar2 6
SALESMANNAME | Varchar2 20
|ADDRESS1 Varchar2 [30
|ADDRESS2 Warchar2 30. ope ee
a ra
} Number 3. {4
(STATE Varchar2___|20 [eT
[SALAMT. 32 [gs ti
Number
etrocer [Number 6,2
TALES (Number [6.2 eee
IARKS Varchar2 [60ve tables:
136 their respectve
let 7 [SellPrice | CostPrice
sata for PRODUCT MAR TE aon [Reordert |
b)_Data —— ‘ofit ———-nf ah
Preto Desrion [PTT ensure Hand | ———s] 350] 250
|__| Piece 50 500} 350)
Feaagol [T-Shirts i 150 600} 450
POCO! > 6| Piece 20
posas___|Shirts 5 [Piece 100 a 750] 500
POG" Cotton Jeans pies 100 20 01 a
PO7S65 [Jeans 2 | Piece 150 a0 700] 450}
7 Trousers 7 am
[BOSS vovesL2|Piese | 8 40 350
[po7965__ [Denim Shirts [Piece a 30| 300]
po7975__ [Lycra Tops — 75 30 450]
Poss6s [Skirts
¢) Data for SALESMAN_MASTER table: _ inode [State
IN: ddress!_[Address2_|City -
SalesmanNo [Name Att es on Mumbai | _400002|Maharashira
300001 Aman =
{Smtr [Omkar_ [65 [Nariman [Mumbai | 400001 Mabarasita
00003 _[Raj__|P-7 Bandra [Mumbai | 400032|Mahares
$0004 [Ashish [A/S Juhu ‘Mumbai 400044| Maharashtra
‘SalesmanNo|SalAmt_[|TgtToGet_|YtdSales {Remarks
$00001 3000) 100; 50|Good
$00002 3000) 200! 100|Good
$06003 3000) 200) 100/Good
800004 3500) 200, 150]Good
3. Exercise on retrieving records from a table
a, Find out the names of all the clients.
b. Retrieve the entire contents of the Client_Master table.
G__etrieve the list of names, city and the sate ofall the clients,
|._List the various products available fi
. List all the clients who are located aM oe
f. Find the names of salesme1 i
n. who have a salary equal to Rs.3000.
cise on updating records in a tabl
Change the city of ClientNo ‘
'C00005' to 'Ba .
cimes the BalDue of ClientNo. ‘c00001' ShcA
CHanse the cost price of Trousers’ to Rs. 950.00.
‘ange the city ofthe salesman to Pune, oe
ae ePSjeleting records in a table
_. on deleting recor’
2 08 [=gmen from the Salesman_Master whose salaries are
4s from Product_Master where the qui equal to Rs. 3500.
lantity i
Gient_Master where the column state holds the ele Titel 108.
\
oa altering the table structure
called ‘Telephone’ of data type ‘number! and size ='10! to the Client Ma
colt Sof SellPrice column in Product_ Master to 10.2. ee
deleting the table structure along with the data
pe ise OF Ps
gxervise OF Te Client_Master along with its data,
peso the tabl
renaming the table
f the SaleSman_Master table to sman_mast.
exercise OF
“pange the name 0