Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write the following queries in SQL on the Company Database Schema. ( 1 0 points ) 1 Retrieve the SSN , Fname, and Lname of

Write the following queries in SQL on the Company Database Schema. (10 points)1Retrieve the SSN, Fname, and Lname of employees who have more than two dependents.2Retrieve the SSN, Fname, and Lname of employees whose total working hours exceed 30.3Retrieve the SSN, Fname, and Lname of employees directly supervised by Franklin Wong.4Retrieve the SSN, Fname, and Lname of department managers who do not have any dependents.5Insert a new record into the EMPLOYEE table with the following details: First Name = Christopher, Last Name = Robin, Middle Initial = J, SSN =887766554, Birthdate =1999-02-15, Address =6721 San Jose, San Antonio, TX, Gender = Male, Salary = $50,000, Supervisor SSN =333445555, and Department Number =1.6Insert a new record into the PROJECT table with the following detail: Pname= Orange, Pnumber =40, Plocation = Humble, and Dnum =5.7Delete the record from the WORKS_ON table where the Employee name = James, Lname = Borg and the Project Number =20.8Delete the record from the DEPT_LOCATIONS table where the department name = Research and location = Houston.9Update the Project Name (Pname) of the PROJECT table from ProjectX to Project X One.10Update the Dependent_name of the DEPENDENT table to Grace where relationship = Daughter, and employee Fname = John and Lname = Smith.

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

Expert Performance Indexing In SQL Server

Authors: Jason Strate, Grant Fritchey

2nd Edition

1484211189, 9781484211182

Students also viewed these Databases questions

Question

Be honest, starting with your application and rsum.

Answered: 1 week ago