Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I have created the tables, the queries I need a hand with. Any help would be appreciated! Thank you! begin{tabular}{|r|l|} hline DEPARTMENT hline DepartmentID

image text in transcribedimage text in transcribed

I have created the tables, the queries I need a hand with. Any help would be appreciated! Thank you!

\begin{tabular}{|r|l|} \hline DEPARTMENT \\ \hline DepartmentID & DepartmentName \\ \hline 1 & Computer Systems \\ \hline 2 & Business \\ \hline 3 & Mathematics \\ \hline 4 & English \\ \hline 5 & Science \\ \hline 6 & Political Science \\ \hline 7 & Sociology \\ \hline \end{tabular} FACULTY 3. Write a SELECT statement that a. returns one column from the Faculty table named FullName that joins the LastName and FirstName column Format this column with the last name, a comma, a space, and the first name like this: Eg. Doe, John Sort the result set by last name in ascending sequence. Return only the students whose last name begins with a letter from A to M. 4. Write a SELECT statement that returns these column names and data from the Faculty table: - LastName - FirstName - AnnualSalary Return only the rows with an annual salary that's greater than or equal to 70,000 . Sort the result set in descending sequence by the AnnualSalary column. 5. Write a SELECT statement that returns these column names and data from the Faculty table: - LastName - FirstName - HireDate Return only the rows for full time faculty with a hire date that's in 2019 Sort the result set in ascending sequence by the HireDate column

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

Multidimensional Array Data Management In Databases

Authors: Florin Rusu

1st Edition

1638281483, 978-1638281481

More Books

Students also viewed these Databases questions

Question

1. Describe the power of nonverbal communication

Answered: 1 week ago