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)
18 views
7 pages
Dbms Lab
Part 2 dbms
Uploaded by
hardikchauhan0324
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
Save
Save Dbms lab For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
18 views
7 pages
Dbms Lab
Part 2 dbms
Uploaded by
hardikchauhan0324
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
Carousel Previous
Carousel Next
Download
Save
Save Dbms lab For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save Dbms lab For Later
You are on page 1
/ 7
Search
Fullscreen
Schema fora University Database Cre ea relational eatalave for a iaiver nity desea idee by Hne looong soba ees aur populate it by tuplen CLASSROOM (Hailing, Hout Munber, capacity) DEPARTMENS (Dept name, building, beset) COURS: (Coun c ih tthe, Hepp narne, orestits) INSTRUCTER (1), maine, dept namie, satlinys SECTION (Course i, ew il, wemnenter, year, oiling, soon nineties she 9) TEACHES (e119, course id, ee ih memento, Your) STUDENT (5-1), name, dept naan, tor creat) TAKES (1D, Coure-id, seit emester, your, pad) ADVISOR (5-1), hID) TIME: SEO (Hin c-sloteil, day, sat tine, env tite) PRERIO (Course-id, Preted-id) [student 2 —— Theme | Be a |Exp iment No Write the following queties in the SQL. for a Nera Cup (1). Increas above mer ‘Mentioned database of retrieve, rename) uni Wwersity Salary by 20 percent of all instructors who are working in Dy ructors along Jong with their dey lepartment name (3). Retrieve names ofall instructors along with their deparmmerr nn sariment names |. Retrieve names of all partment (7, and buildin which the departments are housed names in (4), Resieve names of all departments along with names of the b tee buildings in whieh they are (5). Change name of the building "Lecture Hall Complex" to “Lecture Th 0 "Lectire Theatre Complex’ (6). Find name of the department of @ student with 1D (Take # valid 10 _- (Take @ valid ID student) wa (2). Retrieve names of all instructors along with the Course IDs of the courses they teach (8). Retrieve Course ID, semester, year and title of each course being, tuwaht by * ‘omputer Engg." department. (9). Compure monthly salary of all instructors and display it as ‘monthly salary satibune in place of attribute ‘salary’ (10), Retrieve names of all departments housed in the building named _ (Consider a valid Building name) (11). Find the names of all instructors belonging to Computer Engg. department who have salary greater than Rs. 70,000. ve credits 3 and offered by the department IT. (12). Find titles of the courses that ad their credits running in semester 4 (13). Find course names (14), List classes as year and semester wise engaged in room no. LHC-102 (15), List elasses as year, semester and seetion wise engaged in room no, LHC-102 ged in room no. LC-101 (16). List classes as year, semester and section wise enga (17). Retrieve list of room aumber & time slot where all classes of Computer Semester 7 axe scheduled, (18). Retrieve Course titles taught by instructor (Take a valid instructor ID or name) ¢, display their names (19). For all instructors in the university who have taught some cow along with their department names. (20), Find the names of all instructors who have a higher salary than some instructor in “Computer Engg." departmentExperiment No-06 Write the fottowing queries inthe SQI- forthe above mentioned database of a univer string operation, benween, Aggregate, gtoup by includes the substring “Tall” and Rs, $0,000, (1). Find names of all departments whose building mame 2). Fine) names ofall instructors who have their sabaries between Rs, $0,009 (3). Find names of all students whose names begin with string "Sa" ag, departanent ane! their names begin of (4). Find names of all students belonging to Computer Fi with character "Sa" (S)- Retrieve list of courses tought hy teachers whose names begin with cha (6), Romi (J). Retrieve list of courses coniaining the word "lang! 1 list of couses beginning. their titles with word "Compute in their titles. ww their (8), Ret < ofthe instructors whe teach courses containing word "lmgag fe nam titles. (0). Find IDs of all students whose names inelude "Kumari® and their department is 11 (10), Find average salary ofall instrmetors, eg, department. (UN). Find average salary of the instructors belonging to Computer F: (12). Find average salary of the instructors belonging (o each department (13), Find names and average salaries of all depariments whose average salary is greater than Rs. 60000. (14). Find total number of courses offered by the university, 3s offered by the Computer Engg department (15). Find total number of cours 18), (17), Find total number of instructors who teach a course in the Spring 2016 semester ind total number of courses taught in the Spring 2016 semester. (18), Find maximum salary of an insiruetor belonging to Computer Engg, departinent. Sng, depastment. (19). Find minimum salary of an instructor belonging t Computer (20). Find mavimum salary of an instruetor in the university rolled in the university. (21). Find total number of student ¢ (23). 22). Find total number of students enrolled in each department of the aaiversty re greater than Rs, 42,000. ‘ind instructors whose average salaries # (24), Find instructors whose average salaries are greater than that of the instructors belonging to the 'Physies’ deparbnent. (25). Reirieve total no, of students in each department who ceamedd total credits more than 82016, (ave u or in Spring J in Spring 2056-6 eration ” Computer F ect operation) gp. depart: 2 216. (use t Computer Enge + along with se operations » 0 6 including keyword “all + deparimest in alphabetic oré: © department in alphabetic order. 5, Listall instructor g. Listall coursed offered Making use of sub-queries 1 2015 and in Spring 2016. (s¥ 1g 2016. (sub-que depanment in 9. Find courses taught 10. Find course 1 Fi , sub-query. in) . Computer Enge- guery, not in) ave taken courses taught depastment in Fell 20° 12 nts whe hi + ID or name) fary greater than 1 pat of some (at | Find nemes of instruc the Physics deparim: Implement the followin: 1s query and observe the results select name from inst where sal y > some (select salary from instructor where Dept name ="Physi Based on the observation Based onthe abiertiny of theresa wit the qwery i va inonamany ofthe above query. nd names ofall he instructors whose salaries instructors belong eu setipetea dee fer than that of ‘hysies department. (sub-query, “all”)-_ avand set keyword 17. Using updace statermer g are preater than 50000" by 15% psiructors Whose S tsreater than 50000" by nna. of instructors in cach department of students in each department. mgomn’ clause and write query for the Following Tavies of the instructors of that depart tors whose salarie: salaries a7 increase sataries of the instue decrease salaries of the 3 18, List all departments alone 10, List all departments atone with ne 30, Use a suib-query to derive a elation vad department names ations, With average S where average salaries are greater then Rs. 45000" str no, of students who have eared total cre Retrieve name of department along W" more than 7" h no, of instructors belonging to the department" "Find name of depertment along, with I List instructor name, dept name, and no. of courses taught by the instructor in Sprint 2016 Retrieve departments that have budget amount snore than 5 lacs. nyo have taken at least one course taught by Computes Enj Find the names of all students WI department: make sure there are no duplicate names the result view create, use, drop
You might also like
SQL LAB Assignment PDF
PDF
50% (2)
SQL LAB Assignment PDF
3 pages
Computer Engineering: Database Systems (DS) Assignment
PDF
No ratings yet
Computer Engineering: Database Systems (DS) Assignment
11 pages
Kathmandu University Department of Computer Science and Engineering COMP 232 - Lab Assignment
PDF
No ratings yet
Kathmandu University Department of Computer Science and Engineering COMP 232 - Lab Assignment
2 pages
008tesdatabase Doct
PDF
No ratings yet
008tesdatabase Doct
8 pages
Cycle 1
PDF
No ratings yet
Cycle 1
5 pages
Nit Kurukshetra: Database Systems (LAB)
PDF
No ratings yet
Nit Kurukshetra: Database Systems (LAB)
20 pages
SQL Query Fro University Database
PDF
No ratings yet
SQL Query Fro University Database
2 pages
Question Bank For Oracle SQL and PLSQL
PDF
No ratings yet
Question Bank For Oracle SQL and PLSQL
12 pages
Patuakhali Science and Technology University: Assignment On Queries Operations
PDF
No ratings yet
Patuakhali Science and Technology University: Assignment On Queries Operations
31 pages
DBMS Lab File
PDF
100% (1)
DBMS Lab File
49 pages
2024 - 25 EVEN CE263 DBMS PracticalList
PDF
No ratings yet
2024 - 25 EVEN CE263 DBMS PracticalList
6 pages
05 6.queries Practice Set.3 University Schema Korth
PDF
No ratings yet
05 6.queries Practice Set.3 University Schema Korth
2 pages
DBMS Lab Questions
PDF
No ratings yet
DBMS Lab Questions
7 pages
Databse Systems (Lab Manual)
PDF
No ratings yet
Databse Systems (Lab Manual)
9 pages
MIS SQL Assignment 29-044 Gourab Mondal
PDF
No ratings yet
MIS SQL Assignment 29-044 Gourab Mondal
11 pages
©silberschatz, Korth and Sudarshan 1 Database System Concepts - 6 Edition
PDF
No ratings yet
©silberschatz, Korth and Sudarshan 1 Database System Concepts - 6 Edition
9 pages
Dbms
PDF
No ratings yet
Dbms
25 pages
Id
PDF
No ratings yet
Id
13 pages
Join Queries
PDF
No ratings yet
Join Queries
2 pages
Questions Dbms
PDF
No ratings yet
Questions Dbms
28 pages
DBMSL Variations
PDF
No ratings yet
DBMSL Variations
6 pages
Files 3 2017 November NotesHubDocument 1511789501
PDF
No ratings yet
Files 3 2017 November NotesHubDocument 1511789501
19 pages
Databse Systems (Lab Manual) COT-313 and IT-216
PDF
No ratings yet
Databse Systems (Lab Manual) COT-313 and IT-216
12 pages
Datbase Sheet
PDF
No ratings yet
Datbase Sheet
2 pages
Rajshahi University of Engineering & Technology: Lab Report
PDF
No ratings yet
Rajshahi University of Engineering & Technology: Lab Report
5 pages
Informatics Practices Practical File
PDF
No ratings yet
Informatics Practices Practical File
44 pages
Subqueries in SQL
PDF
No ratings yet
Subqueries in SQL
37 pages
Exercises With Solutions - SQL
PDF
No ratings yet
Exercises With Solutions - SQL
3 pages
Databaseprint 69
PDF
No ratings yet
Databaseprint 69
8 pages
LabCycle DBD PDF
PDF
No ratings yet
LabCycle DBD PDF
11 pages
CSU 07314 Practical #6 - 2024 SQL
PDF
No ratings yet
CSU 07314 Practical #6 - 2024 SQL
3 pages
Chap 4 Spatial DBMS - Exercise PostgreSQL
PDF
No ratings yet
Chap 4 Spatial DBMS - Exercise PostgreSQL
7 pages
Lab Problem 4
PDF
No ratings yet
Lab Problem 4
21 pages
FALLSEM2021-22 CBS1007 ELA VL2021220104396 Reference Material I 06-Aug-2021 LAB1 SQL
PDF
No ratings yet
FALLSEM2021-22 CBS1007 ELA VL2021220104396 Reference Material I 06-Aug-2021 LAB1 SQL
59 pages
SQL Aggregate Join
PDF
No ratings yet
SQL Aggregate Join
37 pages
Cs2258 Database Management Systems Lab
PDF
No ratings yet
Cs2258 Database Management Systems Lab
12 pages
Assignment 2 QP
PDF
No ratings yet
Assignment 2 QP
6 pages
SQL Sci Pract
PDF
No ratings yet
SQL Sci Pract
16 pages
Exp 5
PDF
No ratings yet
Exp 5
6 pages
DBMS LAB Programs For Mca
PDF
No ratings yet
DBMS LAB Programs For Mca
20 pages
Ag 67
PDF
No ratings yet
Ag 67
5 pages
DBMS - Lab
PDF
No ratings yet
DBMS - Lab
38 pages
Create The Following Tables For University Database
PDF
No ratings yet
Create The Following Tables For University Database
9 pages
Assignment 2
PDF
No ratings yet
Assignment 2
3 pages
Practical:-1: QUES1: Using The Following Database
PDF
No ratings yet
Practical:-1: QUES1: Using The Following Database
66 pages
Assignment Dbms Even (24 25)
PDF
No ratings yet
Assignment Dbms Even (24 25)
3 pages
Lab Practice Sheet-2 (DML)
PDF
No ratings yet
Lab Practice Sheet-2 (DML)
3 pages
Ip Project
PDF
No ratings yet
Ip Project
17 pages
DBMS Lab Mannual
PDF
No ratings yet
DBMS Lab Mannual
27 pages
Dms Manual 6-9
PDF
No ratings yet
Dms Manual 6-9
21 pages
Database Application Lab Manual V-Sem Cse: Thirthe Gowda MT
PDF
No ratings yet
Database Application Lab Manual V-Sem Cse: Thirthe Gowda MT
64 pages
Saksham ISM Project
PDF
No ratings yet
Saksham ISM Project
118 pages
P S T U: Atuakhali Cience AND Echnology Niversity
PDF
No ratings yet
P S T U: Atuakhali Cience AND Echnology Niversity
18 pages
Database Management
PDF
No ratings yet
Database Management
18 pages
LAB Experiment-2
PDF
No ratings yet
LAB Experiment-2
20 pages
009.lab Manual Content
PDF
No ratings yet
009.lab Manual Content
23 pages
DBE MKUP Paperset A 2022-23
PDF
No ratings yet
DBE MKUP Paperset A 2022-23
2 pages