DBMS
DBMS
definrtion
oe leamt Dato
Conclusions: Ln this expemment,
we implemcnted bosic pDL
Ianguge stateme nts in m sQLalEey
Statements i ke create and and Dmi Statement
inserE and Selcct
Question
Describe any application where DBMS is used.
Prepared by
(K. S. Navale) Approved by
H. O.D.
K. K.
B-17
Wagh Institute of
Exp. Engineering Education & Resesearch/ Polytechnic Nashil -3
be anu
The
applicotion
uhereDAmS 1S used
on
DL
databagemanogemenk 9uste m (DBms) 1s defined 09
oftuae System that
allous the uSe to define Ceateand
maintaiD the database and
OTovide control to dara access the
TLn 50 many elds coe wilI use a dotab.05.c managenent
Sustemn
we one doing
banksdaily and becaus.c OP DBms thak
allpassibleug
allthe
bank
anag eS
8-77
as foiloWs
The basic syntax ofthis DROP TABLE Sstatement is
DROP TABLE table name,
Example
DROP TABLE CUSTOMERS;
Instructions:
1 Display all databases from the system.
2 Create
a database with your school name.
3. Create a table staff with columns ID, name, subjects, salary
4 ID should be primary key.
5. Add 10 entries to the table.
6. Create view of stafftables as staff_basics (D, name)
7. Create index on staff table.
8. Set 1D for 11 entry as 100 and add 2 more entries such a way that ID: 100 and 101
will be allotted to them
automatically.
9. Create another name for staff as a
faculty
10. Demonstrate all these operations.
Conclusions:
Io this expeiments coe leant Vomous typeg of
my S@L stotements tike DDL,DML, DCL TCL
de fmplemented DDL Stateme ntg Cohich demostToted
the
the USe of SGL objects like toble, vieo, indec,Sequ
Prepared by
(K. S. Navale) Approved by
H. O. D.
B-77
K. K. Wagh Institute of
Engineering Education &
Department of Electronics & Research, Nashik.
eTLE: Experiment Write-up (EW) Telecommunication Engineering
Doc. No.: DML/SOP/EW/3
Conclusions:
Select ed ro
Approved by
H. O. D.
Prepared by
(K S. Navale)
B-77
Aim: Design and develop at least 5 SQL queries for suitable database application using SQL
DML statements Update and Delete with operators and functions.
Instructions:
1. Display all databases from the system.
2. Createa database with your college name.
3. Create a table class with columns year, branch, division, class_strength, teacher,
subject, shift
4 Year, division and branch should be primary key.
least few classes must have more than 70 students)
5. Add 10 entries to the table. (At
6. Display entire class table.
table.
7. Delete shift attribute from the class
8. Display entire class table.
division and class_strength
9. Display only year, branch, students.
classes having less than 70
10. Display year and branch of only research)
department, salary,
11. Create another table faculty(teacher, all entries & At least
into it. (research attribute should be NULL for
12. Add 10 entries
than 1,00,000 salary)
teachers must have more
few table.
for all entries for class
teacher, department, salary
13. Display year, branch, allowed to teach
who have more than 1,00,000
salary should not be
14. The teachers "Yes" in the faculty.
research attribute as
mark
subject in class table and for all entries for class table.
teacher, department, salary
15. Display year, branch, table.
entire class & faculty
16. Now display updated table.
class
entries from faculty &
17. Delete all have created.
tables from database you
18. Show all created.
database you have
19. Delete the
databases from the system.
20. Show all the
Demonstrate all these operations. and deuelopeo
21.
coe designed
erpeiment delete
this 1ike update,
Conclusions: n Stoterments
like
qunes uSing
Dnm pTedePined
oPevatos
Approved by
H.O.D.
Prepared by
(K S. Navale)