Sei sulla pagina 1di 11

DBMS Practical List

http://www.scribd.com/doc/81177484/DBMS-Practical-List

&

&

&

1 of 11

5/5/2012 5:14 PM

DBMS Practical List

http://www.scribd.com/doc/81177484/DBMS-Practical-List

Download
T w e e t

Embed 0 Doc Copy Link Add To Collection Comments Readcast Share


E m b e d D o C o p y L i n k R e a d c a s t C o l l e c t i o n s C o m m e n t s D o w n l o a d

Tweet Share on Scribd: Readcast

Numbe r of Credits allotte d=1 Number of lab session (2 hrs each) = 14 approx. (One Lab session per week)

The inputs from va rious Institutes as subm itted to the c oo rdination c om mittee have be en t aken into ac c ount fo r prep aration o f the Final List g iven b elow:

Dept_no Department_Name Department_Location

Varchar2 Varchar2 Varchar2

5 25 30

Primary key/Start with d

Employee_no Employee_name Address1 Address2 DateofBirth Basic Commission Dept_no Designation

Varchar2 Varchar2 Varchar2 Varchar2 Date Number Number Varchar2 Varchar2

6 30 30 30 6,2 6,2 5 6

Start with e

Depentdent on dept_no of dept_master Default mstaff values if any can be any of cman, vp, mgr, slman and mstaff

Vendor_id Vendor_name Address1 Address2 City State Pincode Phone

Varchar2 Varchar2 Varchar2 Varchar2 Varchar2 Varchar2 Number number

6 Primary key/ start with v 25 25 Search 25 20 Searching... 15 6 Result 00 of 00 10 00 results for result for
S e a r c h H i s t o r y :

p.

2 of 11

5/5/2012 5:14 PM

DBMS Practical List

http://www.scribd.com/doc/81177484/DBMS-Practical-List

Download Embed Doc Copy Link Add To Collection Comments Readcast Share Tweet Share on Scribd: Readcast

Material_id Material_desc Unit_price Unit_measure Stock

Varchar2 Varchar2 Number Varchar2 number

6 25 6,2 6 3

Primary key/ start with m

Vendor_id Material_id Quantity_ordered Date_ordered Order_id Sell_price Employee_no Delivery_status Qty_delivered

Varchar2 Varchar2 number Date Varchar2 number Varchar2 Char number

6 6 4 6 6,2 6 1 4

Dependent on vendor_id of vendor_master Dependent on material_id of material_master Greater than zero Default system date Primary key start with o Greater than zero Default p can have value f or p Less than quantity_ordered and greater than zero

Use of Primary Key & foreign key Through Alter

Modify the structure of the employee_master table to have primary key constraint on the filed employee_no.

Q. Modify the structure of order_master table to have foreign key constraint on the field employee_no.

Search
Use of BETWEEN, IN, LIKE,NOT IN through where clause in select Q. Write a query to select the vendor id, name and phone o. of vendor who lives in the state of u.p. Searching...
S e a r c h H i s t o r y :

Result 00 of 00 00 results for result for


Q. Write a query to select the name and address of vendor whose name contain the letter a. p.

3 of 11

5/5/2012 5:14 PM

DBMS Practical List

http://www.scribd.com/doc/81177484/DBMS-Practical-List

Download Embed Doc Copy Link Add To Collection Comments Readcast Share Tweet Share on Scribd: Readcast

RESULT ------------No. of vendors in the state of uttar pradesh is 5

Q. Write a query to select the vendor id, name and state of the vendor whose assress2 field has a . Contained in it.

Q. Write a query to list the details of vendors who does not belong to the state of uttar Pradesh and rajasthan Q. Write a query to list the material id, its description and stock available for those whose unit price falls above 600 but less than 900.

Q. Write a query to display the information of a material whose unit price is either 450.25 or 500 or 700 or 900.

Q. Write a query to display the information about the material value in the stock is less than 5.

Use of Update Command

Q. Write a query to change the address1 of vendor to 186, circular no. 2 whose vendor id is v1001.

Q. Modify the date of birth to 23-aug-67 where employee id is e10126.

Search
S e a r c h

Searching... Q. Write a query to inform you about the vendor(s) in the Result 00 of 00 following form :- (e.g.) 00 results for result for
INFORMATION

p.

----------------------

4 of 11

5/5/2012 5:14 PM

DBMS Practical List

http://www.scribd.com/doc/81177484/DBMS-Practical-List

Download Embed Doc Copy Link Add To Collection Comments Readcast Share Tweet Share on Scribd: Readcast

Search
S e a r c h H i s t o r y :

Searching... Result 00 of 00 00 results for result for p.

5 of 11

5/5/2012 5:14 PM

DBMS Practical List

http://www.scribd.com/doc/81177484/DBMS-Practical-List

Download Embed Doc Copy Link Add To Collection Comments Readcast Share Tweet Share on Scribd: Readcast

Search
S e a r c h H i s t o r y :

Searching... Result 00 of 00 00 results for result for p.

6 of 11

5/5/2012 5:14 PM

DBMS Practical List

http://www.scribd.com/doc/81177484/DBMS-Practical-List

Download Embed Doc Copy Link Add To Collection Comments Readcast Share Tweet Share on Scribd: Readcast

Search
S e a r c h H i s t o r y :

Searching... Result 00 of 00 00 results for result for p.

7 of 11

5/5/2012 5:14 PM

DBMS Practical List

http://www.scribd.com/doc/81177484/DBMS-Practical-List

Download Embed Doc Copy Link You must be logged in to leave a comment. Add Submit To Characters: 400 Collection You must be logged in to leave a comment. Comments Submit Readcast Characters: ... Share Tweet
D B

Share Download or Print on Scribd: Rating Info and Readcast Category: Rating: Upload Date: 02/10/2012 Copyright: Attribution Non-commercial Tags: Flag document for inapproriate content Uploaded by atulnight Follow

Search Search TIP Press Ctrl-F F to quickly search anywhere in the document. Searching... More from This User Result 00 of 00 Related Documents 00 results for result for
S e a r c h H i s t o r y :

p.

8 of 11

5/5/2012 5:14 PM

DBMS Practical List

http://www.scribd.com/doc/81177484/DBMS-Practical-List

6 T w e e t

9 of 11

5/5/2012 5:14 PM

DBMS Practical List

http://www.scribd.com/doc/81177484/DBMS-Practical-List

1 S e a r c h

f S e a r c h H i s t o r y :

t S e a r c h i n g . . .

Q R e s u l t 0 0 o f 0 0

I 0 0 r e s u l t s f o r r e s u l t f o r

s p .

10 of 11

5/5/2012 5:14 PM

DBMS Practical List

http://www.scribd.com/doc/81177484/DBMS-Practical-List

lP o

ra

d v

i E

mh

t b

D a

h C

11 of 11

5/5/2012 5:14 PM

Potrebbero piacerti anche