Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project Description (SQL) Write Queries for the following: The university system aims to track the information of projects, students, professors and more. Project is managed

Project Description (SQL) Write Queries for the following:

The university system aims to track the information of projects, students, professors and more.

Project is managed by one professor. And each project is worked on by one or more professors. but professors can manage and/or work on multiple projects.

Each project is worked on by one or more graduate students. When graduate students work on a project, a professor must supervise their work on the project. Graduate students can work on multiple projects, in which case they will have a supervisor for each one.

Departments have a professor who runs the department. professors work in one or more departments, and for each department that they work in, a time percentage is associated with their job. Graduate students have one major department.

Professors have an SSN, a name, an age, a rank, and a research specialty. Projects have a project number, a sponsor name (e.g., NSF), a starting date, an ending date, and a budget. Graduate students have an SSN, a name, an age, and average degrees

Departments have a department number, a department name, and a main office.

Project Description (SQL) Write Queries for the following:

1.Design and draw an ER diagram for database.

2.Write DDL statements to create the tables.

3.Insert at least 3 records (row) in each table.

4.Select all those professors who age in the range 30 to 40 and don't have any rank.

5.Count the number of different professor names.

6.List all professors whose name begins with A or L and age

Large than 30.

7.Find the names of professors supervising graduate students that age >22.

8.Find the names of professors who have works in at least one project.

9.Change the any name of professor to Ali.

10.Select all information about professor whose name is Ali

11.Delete the record for the professor whose name is Ali.

12.Find the names of graduate students who have works on projects with budget >300, and list in the order of budget.

13.create view that view names of professors and name of project

14.Find the name and the age of the youngest professors

15.Find all information of projects who have managed by each professor

16.Write a query to retrieve name of professor, department name and project, for all projects whose budget is greater than 400

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

in thonnny how do i get some of my commands to turn red

Answered: 1 week ago