Question

Please provide SQL code for following question, and please make sure your answer is LEGIBLE. Thank...

Please provide SQL code for following question, and please make sure your answer is LEGIBLE. Thank you.

Retrieve a list of employees and the projects they are working on, ordered by department, and within each department, ordered alphabetically by last name, first name

Homework Answers

Answer #1

SAMPLE TABLES ASSUMED FOR GIVEN QUERY with FIELDS

EMPLOYEE (FNAME, MINIT, LNAME, SSN, BDATE, ADDRESS, SEX, SALARY, #SUPERSSN, #DNO)

DEPARTMENT (DNAME, DNUMBER, #MGRSSN, MGRSTARTDATE)

PROJECT (PNAME, PNUMBER, PLOCATION, #DNUM)

WORKS_ON (#ESSN, #PNO, HOURS)

SQL Query to Retrieve a list of employees and the projects they are working on, ordered by department and, within each department, ordered alphabetically by last name, first name

SELECT                  DNAME, LNAME, FNAME, PNAME

FROM                    DEPARTMENT, EMPLOYEE,WORKS_ON, PROJECT

WHERE                 DNUMBER = DNO AND SSN = ESSN AND PNO = PNUMBER

ORDER BY            DNAME DESC, LNAME ASC, FNAME ASC;

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Using the Company database in Oracle, construct SQL queries for the following (note: I will make...
Using the Company database in Oracle, construct SQL queries for the following (note: I will make the files to create and populate the Company database available on Isadore shortly): List the last name and address of managers who have a dependent with the same first name as themselves. Retrieve the names of all employees who are directly supervised by ‘Franklin Wong’. Retrieve the names of employees in the Research department who work more than 20 hours per week on the...
If you provide a handwritten answer please make sure it is legible!  Thanks! An investor has at...
If you provide a handwritten answer please make sure it is legible!  Thanks! An investor has at most ​$90,000 to invest in government​ bonds, mutual​ funds, and money market funds. The average yields for government​ bonds, mutual​ funds, and money market funds are 7%, 8​%, and 12% respectively. The​ investor's policy requires that the total amount invested in mutual and money market funds not exceed the amount invested in government bonds. How much should be invested in each type of investment...
Operating System. Please only answer this question if you are sure of the answer, thank you....
Operating System. Please only answer this question if you are sure of the answer, thank you. Please provide an explanation for your answer as to why it is for what it is. Assume that the maximum capacity of a file system space is 8TB (1TB = 240 bytes), and the disk block size is 2KB. The file control block (FCB) contains an index table of 512 bytes. Answer the following questions: Suppose that the index table only adopts the direct...
Please answer the following question in 600 word count if citing please adding reference make sure...
Please answer the following question in 600 word count if citing please adding reference make sure that you are answer the question in your own words. Identify a nonprofit health care organization and a for-profit health care organization of your choosing . Answer the following: • Summarize the types of services provided, clientele served, and provider groups involved. • Compare and contrast the strengths and weaknesses of each organization from patient, provider, administrator, and third-party payer perspectives. • Provide at...
This question has been answered before. Please provide a new code and screenshot of output. Thank...
This question has been answered before. Please provide a new code and screenshot of output. Thank you! Create a C# program that accepts an e-mail address and a password as input and validates it using the following methods (Please note, this is not all-inclusive.): For the E-Mail Address: Best practice for validating an email address: It is case sensitive in the local portion of the address (left of the rightmost @ character) Has non-alphanumeric characters in the local-part (including +...
Specify the following queries in SQL on the COMPANY database. Show the result of each query....
Specify the following queries in SQL on the COMPANY database. Show the result of each query. Retrieve the names of all employees in department 5 who work more than 10 hours per week on the ‘ProductX’ project. List the names of all employees who have a dependent with the same first name as themselves. Find the names of all employees who are directly supervised by ‘Franklin Wong’. Specify the following updates using the SQL update commands. Show the state of...
Please answer the following question. (Answer only if you are really sure. Please don't guess). Thank...
Please answer the following question. (Answer only if you are really sure. Please don't guess). Thank you Select the correct statement(s) regarding centralized (deterministic) access control on a LAN. a. a centralized node manages the medium access of all connected nodes through polling, tokens, etc. b. CSMA/CD or CSMA/CA are always required to prevent data collisions c. switch Ethernet is an example of centralized/deterministic access control d. all of the above are correct Full-duplex (FDX) communications can only be achieved...
Q1) Connect to HR database and write the queries to answer the following questions. Provide your...
Q1) Connect to HR database and write the queries to answer the following questions. Provide your queries text and result in a .txt file: a) How many employees you can find in the Employees table b) How many departments are there in this database c) How many employees work for sales department d) What is the average salary of department 50 e) Copy Countries table from HR database into Section 24 using Select Into clause. f) Write a query to...
Please write code in C. Thank you! Write a program that reads a list of integers,...
Please write code in C. Thank you! Write a program that reads a list of integers, and outputs the two smallest integers in the list, in ascending order. The input begins with an integer indicating the number of integers that follow. You can assume that the list will have at least 2 integers and less than 20 integers. Ex: If the input is: 5 10 5 3 21 2 the output is: 2 3 To achieve the above, first read...
Please provide a new solution code for the following task. This question has been answered before...
Please provide a new solution code for the following task. This question has been answered before but I'd like to request assistance for a new code. Write a C++ program to simulate a service desk. This service desk should be able to service customers that can have one of three different priorities (high, medium, and low). The duration for any customer is a random number (between 5 minutes and 8 minutes). You need to write a program that will do...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT