Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Ensure all your column names in your SELECT clause are spelled correctly Make sure you put commas after each column / attribute name in the
Ensure all your column names in your SELECT clause are spelled correctly
Make sure you put commas after each columnattribute name in the SELECT clause and dont put a comma after the last column name in the SELECT clause.
Put a semicolon ; at the end of your SQL statement Create a report to display the employee ids, last names, and salaries for all the employees whose last names are either Doran, Hall, Matos, Urman, Cambrault, or Cabrio.
For your displayoutput make sure it is sortedin ascending order by salary In our SQL # lecture, we discussed how to sort the outputdisplay of our data in the last slides
Also: Write down the last name of the employee that appears firstat the top of your output.
Write the SQL statement to create a report from our hremployees database table that displays all the employees first name, last name, email, and job id that have the job id of ADVP or ITPROG, or SHCLERK.
Ordersort your outputdisplay by jobid in descending order.
ALSO, WRITE DOWN THE FIRST AND LAST NAME OF THE PERSON AT THE BOTTOM OF THE LIST
Write the SQL statement to create a report that displays employee first names, last names, employee ids, phone numbers, and salaries of all employees that have an employee id of or
Make sure your output is sorted by last name in descending order.Initially we will work just with the HREMPLOYEES table.
HREMPLOYEES
employeeid
firstname
lastname
email
phonenumber
hiredate
jobid
salary
commissionpct
managerid
departmentid
Step 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