Answered step by step
Verified Expert Solution
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
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 columnStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started