Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
24 views
9 pages
DBMS Lab Manual
Uploaded by
Farhan Khan
AI-enhanced title
Copyright
© © All Rights Reserved
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
Download now
Download
Save DBMS LAB MANUAL For Later
Download
Save
Save DBMS LAB MANUAL For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
24 views
9 pages
DBMS Lab Manual
Uploaded by
Farhan Khan
AI-enhanced title
Copyright
© © All Rights Reserved
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
Download now
Download
Save DBMS LAB MANUAL For Later
Carousel Previous
Carousel Next
Download
Save
Save DBMS LAB MANUAL For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 9
Search
Fullscreen
INDEX S.no, Practical Name Date | Remark/Sign | Greate the lable EMPLOYEE the description offhe student are Insert the record in the EMPLOYEE table ‘Select those tuples from the Employee where the employee salary iS 3 | greater than 10000 and lass than 15000 | Seect those tuples From the Employee where the employes name ig stat from character A Retiove te table in which the tuples are sorted in the increasing 5 _| from of employee salary. ‘Apply he folowing aggregale funclon in the employee salary 6 | column of employee table Wite the query to delete those tuples from the Employee where 7 | Employee aty is London. Write the query to increase the employee salary by 5 percent in the Employee table where employee age is 25 We the query to add a new column employee adress nthe 9 | Employee table where the type of new column is character and size 128. To _| Write the query To dolato the lable Employes 1. Create the table EMPLOYEE the description of the student are Column name Data type Size E_NAME VARCHAR 20 EID VARCHAR 10 E_AGE NUMBER 10 E_SALARY NUMBER. 10 E_PHONENO NUMBER. 10 E_Cmy, VARCHAR 15 SQL> CREATE TABLE EMPLOYEE (E_NAME (20) VARCHAR, E_ID(0)VARCHAR , E_AGE (10) NUMBER , F_SALARY(10) NUMBER, E_PHONENO (10) NUMBER , rE ITVS) VARCHAR);OUTPUT: - SQL> Dese EMPLOYEE ; ‘Name Type E_NAME VARCHAR(20) EID VARCHAR(10) E_AGE NUMBER(10) E_SALARY NUMBER(10) E_PHONENO NUMBER(10) E CITY VARCHAR(15) 2. Insert the following record in the EMPLOYEE table E_NAME | E_ID E_AGE _|E SALARY [E_PHONENO [E_CITY AJAY C1 23 70000 (09854345511 | BHOPAL PRATEEK | C2 24 12000 (09823453333 | BHOPAL NAITIK | C3 25 15000 (09834567888 | INDORE ‘ASHA ca 25 70000 (09811122766 | PUNE RITU ey 28 70000 (09909234567 | BHOPAL SQL> INSERT INTO EMPLOYEE (E_NAME, E_ID E_AGE, E_SALARY,E_PHONENO , E_CITY) VALUES (+AJAY*, C1, 23 , 10000, 09854345511, BHOPAL); One row created SQL> INSERT INTO EMPLOYEE (E_NAME, E_ID,E_AGE, E_SALARY,E_PHONENO , E_CIry ) VALUES (-PRATEEK", C2. 24 , 12000, 09823453333. BHOPAL):SQL> INSERT INTO EMPLOYEE (£_NAME, E_ID E_AGE, E_SALARY, E_PHONENO , E_CITY ) VALUES (‘NAITIK’, C3 , 25 , 15000, 09834567888, INDORE); ‘One row created (ename SQL> INSERT INTO EMPLOYE! ciry ) VALUES (+ 1D E_AG HONENO , *, C4, 25, 10000, 09811122766, PUNE) ‘One row created SQL> INSERT INTO EMPLOYEE (E_NAME, E_ID, E_AGE, E_ SALARY, E_PHOD E_cITY ) VALUES (‘RITU’, C5, 28 , 10000, 09909234567, BHOPAL); OUTPUT: SQL>SELECT * FROM EMPLOYEE; E.NAME EID EAGE ESALARY EPHONENO — E_CITY AJAY ca 2B 10000 09854345511 BHOPAL PRATEEK C224 12000 09823453333 = BHOPAL. NAITIK C328, 15000 09834567888 INDORE ASHA ct 25 10000 09811122766 = PUNE. RITU cs 8, 10000, 09909234567 BHOPAL3. Select those tuples from the Employee where the employee salary is greater than 10000 and less than 15000, E.NAME [EID |E_AGE | E SALARY |E PHONENO|E CITY AJAY Ci 23 10000 (09854345511 | BHOPAL PRATEEK | C2 24 12000 (09823453333 | BHOPAL NAITIK [C3 25 15000 (09634567888 [INDORE ‘ASHA ca 25 10000 (09611122766 | PUNE RITU C5 28 10000 (09909234567 | BHOPAL SQL > SELECT * FROM EMPLOYEE WHERE E_SALARY BETWEEN 10000 AND 15000; OuTpUT:- ENAME EID E_AGE ESALARY EPHONENO E_CITY PRATEEK C2 M4 12000 09823453333 = BHOPAL 4, Select those tuples from the Employee where the employee name is start from character A. E_LNAME [EID E_AGE _|E_SALARY |E_PHONENO |E CITY AJAY ct 23 70000 (09854345511 | BHOPAL PRATEEK | C2 24 12000 (09823453333 | BHOPAL NAITIK 3 2 15000 (09834567888 | INDORE ASHA C4 25 70000 09817122766 | PUNE RITU ce 28 70000 (09909234567 | BHOPAL SQL > SELECT * FROM EMPLOYEE WHERE E_NAME LIKE ‘A %" ; OUTPUT: E.NAME EID E_AGE ESALARY E_PHONENO — E_CITY AJAY cl 2B 10000 (09854345511 BHOPAL, ASHA cs 25 10000 09811122766 = PUNE5. Retrieve the table in which the tuples are sorted in the increasing from of employee salary. E.NAME [EID E_AGE | E_SALARY |E_PHONENO|E_CITY AJAY C1 23 10000. 09854346511 [BHOPAL PRATEEK | C2 24 12000 (09823453333 | BHOPAL NAITIK c3 25 15000 (09834567888 | INDORE ASHA C4 25 10000 09811122766 | PUNE RITU C5 28 10000 09909234567 [BHOPAL SQL > SELECT * FROM EMPLOYEE ORDER BY E_SALARY ; OUTPUT: E.NAME EID E_AGE E_SALARY — E_PHONENO — E_CITY AJAY cr 2B 10000 (09854345511 BHOPAL, ASHA ca 28 10000 09811122766 PUNE RITU cs 28 10000 09909234567 BHOPAL PRATEEK C2024 12000 (09823453333, BHOPAL NAITIK «C325 15000 (09834567888 INDORE, 6. Apply the following aggregate function in the employee salary column of employee table ‘A)Sum B)Max —C) Min) Count E) AVG, E.NAME [EID |EAGE | SALARY |E_PHONENO|E CITY AJAY ct 23 10000 (09854345511 | BHOPAL PRATEEK | C2 24 12000 (09823453333 | BHOPAL NATIK | C3 25 15000 (09834567888 | INDORE ASHA C4 25 10000 (09811122766 | PUNE RITU [ord 28 10000 (09909234567 | BHOPAL SQL > SELECT SUM (E_SALARY) FROM EMPLOYEE: OUTPUT: SQL > E_SALARY 57000 SELECT MAX (E_SALARY) FROM EMPLOYEE;SQL > SELECT MAX (E_SALARY) FROM EMPLOYEE; OUTPUT: E_SALARY 15000 SQL > SELECT MIN(E_SALARY) FROM EMPLOYEE: OUTPUT:- E_SALARY 10000 SQL> SELECT AVG (E_ OUTPU’ SALARY) FROM EMPLOYEE; E_SALARY 11400 7. Write the query to delete those tuples from the Employee where employee city is Bhopal. E.NAME [EID E_AGE | SALARY |E _PHONENO |E CITY AJAY C1 23 10000 (09854345511 | BHOPAL PRATEEK | C2 24 12000 (09823453333 | BHOPAL NAITIK C3 25 15000 (09834567888 [INDORE ‘ASHA ca 25 10000 (09811122766 | PUNE RITU cs 28 10000 (09909234567 | BHOPAL SQL > DELETE * FROM EMPLOYEE WHERE E_CITY= ‘BHOPAL’ ;SQL > SELECT * FROM EMPLOYEE 3 E.NAME EID E_AGE ESALARY E_PHONENO — E_CITY C4 25 10000 00811122766 = PUNE a 25 15000 (09834567888 INDORE, 8 Write the query to Increase the employee salary by 5 percent in the Employee table where employee age is 25. E.NAME [EID E_AGE _[E_SALARY |E PHONENO |E_CITY AJAY C1 23 10000 09854345511 | BHOPAL PRATEEK | C2 24 12000 (09823453333 | BHOPAL NAITIK C3 25 15000 09834567888 | INDORE ‘ASHA C4 25 70000 09811122766 | PUNE RITU 5 28 10000 (09909234567 | BHOPAL SQL> UPDATE EMPLYOEE SET E_SALARY= E_SALARY+ E_SALARY*0.05 WHERE E_AGE = 25;OUTPUT:- SQL>SELECT * FROM EMPLOYEE; E.NAME EID E_AGE E_SALARY — E_PHONENO AJAY ca 23 10000 09854345511 PRATEEK C2 24 12000 09823453333 NAITIK, GC 25 15750 09834567888 ASHA C4 25 10500 09811122766 RITU cs, 8, 10000, 09909234567 E_CITY BHOPAL BHOPAL INDORE PUNE BHOPAL 9 Write the query to add a new column employee address in the Employee table where the type of new column is character and size is 25: E_NAME | E_ID E_AGE | E_SALARY |E_PHONENO |E_CITY AJAY. ct 23 10000 (09854345511 [BHOPAL PRATEEK | C2 24 12000 (09823453333 | BHOPAL NAITIK | C3 25 15000 09834567888 [INDORE ‘ASHA cA 25 10000 (09611122766 | PUNE RITU ce 28 10000 09909234567 [BHOPAL SQL > ALTER TABLE EMPLOYEE ADD E_ADD VARCHAR(I5);OUTPUT: - SQL> Dese EMPLOYEE ; Name E_NAME VARCHAR(20) EID VARCHAR(10) E_AGE NUMBER(10) E_SALARY NUMBER(10) E_PHONENO. NUMBER(10) E_ciTy VARCHAR(15) E_ADD VARCHAR(15) 10. Write the query to delete the table Employee E_NAME | EID E_AGE _|E SALARY |E_PHONENO |E CITY AJAY ct 23 410000 09854345511 | BHOPAL PRATEEK | C2 24 712000 (09823453333 | BHOPAL NAITIK, c3 25 15000, 09834567888 | INDORE ASHA ca 25 10000 09811122766 | PUNE RITU cS 28 10000 09909234567 | BHOPAL SQL>DELETE FROM EMPLOYEE ; TPU EMPLOYEE table would not have any record.
You might also like
RDBMS Lab Manual Mechanical RGPV
PDF
0% (1)
RDBMS Lab Manual Mechanical RGPV
14 pages
DBMS 5Q
PDF
No ratings yet
DBMS 5Q
10 pages
DBMS Lab Manual
PDF
No ratings yet
DBMS Lab Manual
10 pages
Lab Answers
PDF
No ratings yet
Lab Answers
21 pages
Dbms Answers All - Haam's Community
PDF
No ratings yet
Dbms Answers All - Haam's Community
55 pages
Deccan Education Society's Brihan Maharashtra College of Commerce Pune 4 (Autonomous) Bba Ca Sem - I
PDF
No ratings yet
Deccan Education Society's Brihan Maharashtra College of Commerce Pune 4 (Autonomous) Bba Ca Sem - I
51 pages
DBMS(Ankit)[Last]
PDF
No ratings yet
DBMS(Ankit)[Last]
22 pages
SanmaandeepSinghGill Assign1-3
PDF
No ratings yet
SanmaandeepSinghGill Assign1-3
24 pages
Dbms Record
PDF
No ratings yet
Dbms Record
33 pages
Examples Convert to Sqlserver
PDF
No ratings yet
Examples Convert to Sqlserver
23 pages
LAB Set Questions Rdbms
PDF
No ratings yet
LAB Set Questions Rdbms
18 pages
BASE Queries
PDF
No ratings yet
BASE Queries
5 pages
copy
PDF
No ratings yet
copy
2 pages
BE in Computer Engineering Semester-3, Year 2020-21: Database Management System (3130703)
PDF
No ratings yet
BE in Computer Engineering Semester-3, Year 2020-21: Database Management System (3130703)
54 pages
mysql.qurey (2)
PDF
No ratings yet
mysql.qurey (2)
9 pages
DML - 7
PDF
No ratings yet
DML - 7
18 pages
DBMS LAB
PDF
No ratings yet
DBMS LAB
15 pages
Harsh
PDF
No ratings yet
Harsh
21 pages
SQL Server
PDF
No ratings yet
SQL Server
16 pages
Practical Material (Database System)
PDF
No ratings yet
Practical Material (Database System)
11 pages
DBMS_Lab_program
PDF
No ratings yet
DBMS_Lab_program
15 pages
Dbms Lab Manual - Bcs403
PDF
No ratings yet
Dbms Lab Manual - Bcs403
18 pages
2031adf9-bb2d-4769-83ae-1ed6e4c30d51
PDF
No ratings yet
2031adf9-bb2d-4769-83ae-1ed6e4c30d51
5 pages
DBMS Record Lab Manual
PDF
100% (1)
DBMS Record Lab Manual
23 pages
2203A51431 Assignment 2
PDF
No ratings yet
2203A51431 Assignment 2
6 pages
Sankalp For DBMS - SQL
PDF
No ratings yet
Sankalp For DBMS - SQL
53 pages
VIEW5
PDF
No ratings yet
VIEW5
30 pages
DBMS lab manual final 2022 scheme
PDF
No ratings yet
DBMS lab manual final 2022 scheme
19 pages
DBMS Practicle File
PDF
No ratings yet
DBMS Practicle File
37 pages
Mysql Introduction 1
PDF
No ratings yet
Mysql Introduction 1
9 pages
Practice Question CHP 2
PDF
No ratings yet
Practice Question CHP 2
6 pages
IT PROJECT BASED ON SQL - Class 10th CBSE
PDF
No ratings yet
IT PROJECT BASED ON SQL - Class 10th CBSE
6 pages
Dbms Lab Manual
PDF
No ratings yet
Dbms Lab Manual
21 pages
RDBMS SEM 3 Practical Solutions
PDF
No ratings yet
RDBMS SEM 3 Practical Solutions
8 pages
DBMS MICROOO FINAL
PDF
No ratings yet
DBMS MICROOO FINAL
2 pages
Practical 4
PDF
No ratings yet
Practical 4
6 pages
SQLL
PDF
No ratings yet
SQLL
9 pages
Oracle Commands
PDF
No ratings yet
Oracle Commands
66 pages
DBMS III Exxp
PDF
No ratings yet
DBMS III Exxp
9 pages
DBMS Lab Assignment - III
PDF
No ratings yet
DBMS Lab Assignment - III
9 pages
DBMS_LAB_MANUAL
PDF
No ratings yet
DBMS_LAB_MANUAL
26 pages
III b.com ca ORACLE LAB -63 COPIES (3)
PDF
No ratings yet
III b.com ca ORACLE LAB -63 COPIES (3)
44 pages
ISM file
PDF
No ratings yet
ISM file
16 pages
Abir Chakraborty - 22312204
PDF
No ratings yet
Abir Chakraborty - 22312204
26 pages
EX NO 2
PDF
No ratings yet
EX NO 2
5 pages
Bcs403 Manual
PDF
No ratings yet
Bcs403 Manual
16 pages
Refresher
PDF
No ratings yet
Refresher
10 pages
assignment-1 dbms
PDF
No ratings yet
assignment-1 dbms
3 pages
Dbms Lab Q & A
PDF
No ratings yet
Dbms Lab Q & A
7 pages
SQL Queries All
PDF
No ratings yet
SQL Queries All
26 pages
SQL Exercise-Text Book Table: Department
PDF
No ratings yet
SQL Exercise-Text Book Table: Department
22 pages
1[1]
PDF
No ratings yet
1[1]
6 pages
Client Server Technology
PDF
No ratings yet
Client Server Technology
16 pages
week 4&5
PDF
No ratings yet
week 4&5
25 pages
Practical List DBMS
PDF
No ratings yet
Practical List DBMS
4 pages
sql
PDF
No ratings yet
sql
17 pages
Query 6 Company Database
PDF
No ratings yet
Query 6 Company Database
7 pages
dbms labv3
PDF
No ratings yet
dbms labv3
65 pages