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...
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...
I have the following question please: Consider the following sequence of numbers 8, 1, 11, 4,...
I have the following question please: Consider the following sequence of numbers 8, 1, 11, 4, 2, 9, 10, 5, 3, 12, 6, 7 Sort the list using quick sort with the middle element as pivot. Show the state of the list after each call to the partition procedure. You are not required to write code for this question. You need to trace through the different sorting algorithms using the given list Please could you provide me with a complete...
an Astronomy question, please answer it comprehensively. Thank you How do astronomers find the distance to...
an Astronomy question, please answer it comprehensively. Thank you How do astronomers find the distance to a globular clusters whose main sequence stars are too dim to see? Make sure to describe ALL of the necessary steps.
In a short paragraph please answer the following question thank you Intro to Logistics Explain how...
In a short paragraph please answer the following question thank you Intro to Logistics Explain how logistics has changed in the last 20 years from a silo type process to a coordinated system approach (orchestra)?
Please make sure to display your thought process? It is imperative to be able to follow...
Please make sure to display your thought process? It is imperative to be able to follow how the answer was deduced. Please be as thorough as possible. Please address all parts of this question. You roll a fair die (dice) 5 times. Calculate the following probabilities and indicate which probability distribution model is appropriate in each case. (a) What is the probability of rolling the first 6 on the fifth roll? (b) What is the probability of rolling 6 exactly...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT