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)
108 views
8 pages
Dbms Lab
Part 3 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)
108 views
8 pages
Dbms Lab
Part 3 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
/ 8
Search
Fullscreen
Adv: Need Exper; “Xperimey 1. Write a p nts (Optional to imp bet PRE IH a language ( plement) een pairs of re (CC 2. Write PaiLS OF WWo attributes in 1 Gs Java, ete, 7 @ program in a lang, the given table, pendency (ake any wag antes fC ) 10 identify functional dependencies Java, ete.) a A ele.) 10 test whethe attributes in the table) evste eget hhether @ functional 3. Using a programming language (C, C++, Java, etc), implement the algonthm for computing im by taking F as a set of nay (WO EDs {vom the table of closure of F, ic., F. Test the algorit previous experiment. 4 szorithm for conipating closure of aiibute sets Implement al; yrether an attribute is extraneous ih a given functional algorithm for testing WI Implement an < holding on a relation schema R. dependency under a set of F) Implement an algorithm for computing eanonical cover. relation, ete, Inchude experiments later on Testing lossless decomposition, decomposition of (10 be done by skj)Experiment No.-09 Create a relational database schema for a Company, described by the following relations and Inse tuples. ame, L-name, Emp-id, Bdate, Address, Gender, Salary, Super ployee ( id, D-no) D-no, D-Mgr-id, Mgr-start-date ) ame, Department (D- Dept-Location(D-no, D-location ) Project (P-name, P-number, P-location, D-ne } Works-on (Emp-id, P-no, Hours ) Dependent (Emp-id. Depend ne, Gender, Bdate, Relationship)cuPLovee eur 3201-09789 Fondon Hs 1968-12-08 [638 ors fousan TX, be [Rowen ]"K frome! tone | B18 $921 Gata Ser 1x | F | 1821.06.70 /28t y tr 1978 Ot Ta Eecloh [apa [intowr WORKS on Een 723456780, [rasasnas Bugae5558 [easessees DereNoenr re | Ravasee Vaseissees [oy te Spo | [ervereer [90] 8@ | f wareseaar | ar Tt 1982 0326 Srome | orae7007 Specify the following queries in SQL. on the databas schema Company (1). Company decided to give a raiseon sal ProductX” project by 10 percent aries of every employee, working on the (2). Find the names and addiess ofall employees who work on same (9). Retiieve the name & eomployee no of employees, whose salary is between $30,000 and $49,000, department (Find the names ofall employees ‘who are directly supervised by “Franklin ©) List the name and addvess of al employees who work for the ‘Research’ department,(6). 1) (8). 9). List the names of employees who works on all project controlled by departmey, mumber 5 List the names of all employees who have a dependent with the same first name as themselves, Retrieve the names of all employees in department 5 who work more than 10 hours per week on XYZ Project. Retrieve a list of employees and the projects they are working on, ordered by department and, within each department, ordered alphabetically by last name, then first name,‘SE Supervisor city name start name “NEW”, (5). Retrieve the project name, ‘whose location pin code consists first 3 digits are “111° (6). Retrieve the employee name, Employee id, dept no, project no, whose were born during 1980 and working in a project located at “INDIA (7). Retrieve the tora! number of Employees in organization (8). Count the number of distinct salary values in the Company (9). Retrieve the total number of Supervisor in organization (10), Retrieve the total no of Female Employee in organization, whose salary is more than 25000. (11). Retrieve the total number projects currently in company, (12), Find the sum of the salaries of all employees, the maximum salary, the minimum salary, and the average salary. (13). Retrieve the average salary of all female employees, (14). Retrieve the Employee id & no of projects, employee is working on. (15), Retrieve employee id, employee name, total no of hours he works on projectExperiment No-l0 Specify the followhny queries In SQL on the database selves Company periment na, U8) (1). Retrieve the total nn mule & feanale employes in the Organiza al no of emplayes working, for each of (2), Retrieve the tol the department marae and the # (3). For each department, retri employees workin, in that department the project nan (4). For each project, retvieve the project nur employees who work en nat project ours per week, May #6 (5). For each project, list the project mame and total no of hours Ber MOS WG employees) spent an the project. ch least number of ern) (6). Retrieve the Project name & no of employee,invihi working. No, number of (7). Retrieve the name of department name & department are controlling highest no of projects. (8), For each project on which more than two employees work, 7 number, the project name, and the number of employees who vi (9). For each project, retrieve the project number, the project name, employees from department | who work on the project, (10). For each departnent that hues more than five employees, number and the nusnber of its employees who are making nore 1 (J), Retrieve the names of the »ployee who do not have supervisors. (12), Retrieve the + of employees who work on all projects contr No 05, (13), Find the name ofall (14), Make a ist of pro ployves who earn more than a crage § vunihers for projects that involve an emp name is Smith’, vithe: wiker or ay a manager of the de the projetExperiment No.-11 Specify the followi i y SOWIE queries in SQL on the database schema Comps (Experiment no. 08) _ a). Retrieve the na iev mes of all employees who work on every project 2). List the last name of ro ler Q). he last name of all department managers who have no dependent (3). List the names of managers who have at least one dependent (4). Rete (5). (6). ve the names of employees who do not work on any project Retrieve the names of employees who work on all projects. Retrieve the name of department name & department No, number of employees, Number of projects, who is controlling highest no of projects (1). List the name of cach employee who works on some project controtied by department number (8). Retrieve the name of department name & department No, number of employees, Number of projects, who is controlling highest no of projects (9). A view that has the department name, manager name and manager salary for every department, (10). A view that has the project name, controlling department, number of employees, and total hours worked per week for each project. (11). A view that has the project name, controlling department name, number of employees, total hours per week on the project for each project with more than one employee working on it.nment = DB Design MWe A, kof the teats and janie oF Hapaels ei A database is being eonstineted to keep elt ge, HAs deine team has a number of players, aot all of whom participate ine keep track of the players participating in eachgame for each fem, the positions they played in that game, and the result ofthe game, Design an ER selena dium far this favourite sport (ei. KOEGED, sumptions you make, Choose you application, baseball. football. stating any (1). Find the name of Team, who won the maximum number of matches {unis (2). Retrieve the name of players of each participating teuna, whe played hijhest niuibes of games (for a team). (3). Revieve the name of players of each (eam, who played on every mutch in whielt the team is winning team, Atel, (4). Retrieve the name of venues in which each team won at Least a pained (5). Find the name of players for each team in toumament that played at least in tice for each team different positions on diffevent games/matches (6). Retrieve the Team Name, Player Name, opponent team, pliyer position for all ing sido. matches where team is Lo
You might also like
DBMS LAB Programs
PDF
No ratings yet
DBMS LAB Programs
51 pages
21bce0968 VL2023240100969 Ast03
PDF
No ratings yet
21bce0968 VL2023240100969 Ast03
15 pages
Ecommerce Pfile
PDF
No ratings yet
Ecommerce Pfile
20 pages
SQL Problems Set
PDF
No ratings yet
SQL Problems Set
7 pages
Itc 315-Lab Exer 2
PDF
No ratings yet
Itc 315-Lab Exer 2
11 pages
Final SQL Excercise
PDF
No ratings yet
Final SQL Excercise
9 pages
ALLLABSRishabh Jha DBMSLABS
PDF
No ratings yet
ALLLABSRishabh Jha DBMSLABS
44 pages
Assignment 1
PDF
No ratings yet
Assignment 1
3 pages
Exercise SQL
PDF
No ratings yet
Exercise SQL
2 pages
DBMS Lab
PDF
No ratings yet
DBMS Lab
15 pages
CS22b2021 - LAB6
PDF
No ratings yet
CS22b2021 - LAB6
17 pages
RAKESH
PDF
No ratings yet
RAKESH
31 pages
CLASS 12 COMPUTER SCIENCE PRACTICAL FILE 2023 24 - Extracted
PDF
No ratings yet
CLASS 12 COMPUTER SCIENCE PRACTICAL FILE 2023 24 - Extracted
7 pages
Fallsem2021-22 CBS1007 Ela VL2021220104397 Reference Material Cycle Sheet 4
PDF
No ratings yet
Fallsem2021-22 CBS1007 Ela VL2021220104397 Reference Material Cycle Sheet 4
12 pages
Informatic Practices
PDF
No ratings yet
Informatic Practices
11 pages
SQL Practice Questions
PDF
No ratings yet
SQL Practice Questions
1 page
Dbms Questions 2
PDF
No ratings yet
Dbms Questions 2
7 pages
Excercise 7 Emp
PDF
No ratings yet
Excercise 7 Emp
3 pages
BaiTapSuaTaiLop - EN - Final
PDF
No ratings yet
BaiTapSuaTaiLop - EN - Final
2 pages
DDDF
PDF
No ratings yet
DDDF
10 pages
2 BSC02 DBMS Guidelines 2020
PDF
No ratings yet
2 BSC02 DBMS Guidelines 2020
4 pages
FALLSEM2022-23 CSC2003 ELA VL2022230100968 Reference Material I 21-07-2022 Lab-Cycle-Sheet-DBMS-CSC2003
PDF
No ratings yet
FALLSEM2022-23 CSC2003 ELA VL2022230100968 Reference Material I 21-07-2022 Lab-Cycle-Sheet-DBMS-CSC2003
5 pages
Lab Exam Model Questions
PDF
No ratings yet
Lab Exam Model Questions
4 pages
RDBMS Lab Questions
PDF
No ratings yet
RDBMS Lab Questions
2 pages
21bce0968 VL2023240100969 Ast02
PDF
No ratings yet
21bce0968 VL2023240100969 Ast02
20 pages
Dbms Lab Maam
PDF
No ratings yet
Dbms Lab Maam
18 pages
ORACLE SQL - Scenerio Based Part 1 Quest
PDF
No ratings yet
ORACLE SQL - Scenerio Based Part 1 Quest
3 pages
Database Management System (DBMS - 204) : Single Row Functions
PDF
No ratings yet
Database Management System (DBMS - 204) : Single Row Functions
8 pages
Q - Pratical Program 24 - 25
PDF
No ratings yet
Q - Pratical Program 24 - 25
6 pages
Company Database Query
PDF
No ratings yet
Company Database Query
2 pages
Practice Question CHP 2
PDF
No ratings yet
Practice Question CHP 2
6 pages
DBMS Lab
PDF
No ratings yet
DBMS Lab
19 pages
SQL - Practice Problem1
PDF
No ratings yet
SQL - Practice Problem1
3 pages
VL2023240101049 Ast02 3
PDF
No ratings yet
VL2023240101049 Ast02 3
3 pages
COC Sample Practical Question For Database Administration Le
PDF
No ratings yet
COC Sample Practical Question For Database Administration Le
6 pages
Day2 Assignment
PDF
No ratings yet
Day2 Assignment
3 pages
CS 631 Review Project Given The Following Database
PDF
No ratings yet
CS 631 Review Project Given The Following Database
6 pages
Kakatiya University B
PDF
No ratings yet
Kakatiya University B
1 page
Complete Dbms 1and 2
PDF
No ratings yet
Complete Dbms 1and 2
8 pages
b24 Oracle Practice
PDF
No ratings yet
b24 Oracle Practice
4 pages
DBMS
PDF
No ratings yet
DBMS
3 pages
(Exercise On Retrieving Records From The Table)
PDF
100% (1)
(Exercise On Retrieving Records From The Table)
19 pages
Assignment 3CC
PDF
No ratings yet
Assignment 3CC
2 pages
SEMF20-Assignment 2
PDF
No ratings yet
SEMF20-Assignment 2
3 pages
SQL Queries
PDF
No ratings yet
SQL Queries
11 pages
DBMS Lab Assignments
PDF
100% (2)
DBMS Lab Assignments
3 pages
Assignment #4
PDF
No ratings yet
Assignment #4
7 pages
Question 1: Make A List of Project Numbers For Projects That Involve An Employee Whose Last Name Is Smith', Either As A Worker or As A Manager of The Department That Controls The Project
PDF
100% (1)
Question 1: Make A List of Project Numbers For Projects That Involve An Employee Whose Last Name Is Smith', Either As A Worker or As A Manager of The Department That Controls The Project
6 pages
Assignments
PDF
No ratings yet
Assignments
11 pages
Pract Queries
PDF
No ratings yet
Pract Queries
13 pages
Name: Roll # Class ID: 103752
PDF
No ratings yet
Name: Roll # Class ID: 103752
5 pages
Name: Roll # Class ID: 103752
PDF
No ratings yet
Name: Roll # Class ID: 103752
5 pages
SQL Assignment
PDF
No ratings yet
SQL Assignment
3 pages
18bit0166 Ayush Kanaujia
PDF
No ratings yet
18bit0166 Ayush Kanaujia
12 pages
Department of Mathematics and Computer Applications PSG College of Technology Eee (SW) - Viii Semester Rdbms Lab - Problem Sheet I
PDF
No ratings yet
Department of Mathematics and Computer Applications PSG College of Technology Eee (SW) - Viii Semester Rdbms Lab - Problem Sheet I
2 pages
SQL Queries
PDF
0% (1)
SQL Queries
6 pages
Cse592 DBMS Lab 2011
PDF
No ratings yet
Cse592 DBMS Lab 2011
8 pages
SQL Assignments1
PDF
33% (3)
SQL Assignments1
3 pages
Unit-3 Sources Finance
PDF
No ratings yet
Unit-3 Sources Finance
17 pages
Complete Organic Chemistry
PDF
No ratings yet
Complete Organic Chemistry
24 pages
Rate of Return
PDF
100% (1)
Rate of Return
2 pages
Dbms Lab
PDF
No ratings yet
Dbms Lab
7 pages