Question: SQL How to Retrieve Data From a Single Table List the first name and last name of the two employees from the db1.hr.employees table that

SQL How to Retrieve Data From a Single Table

  1. List the first name and last name of the two employees from the db1.hr.employees table that were hired during the year 1987 use two different methods. The resulting table should one column and have the name 'Name' at the top.

Queries goes here

Screenshot goes here

  1. List the first name and last name of the employees from the db1.hr.employees table that were NOT hired in the year 1997. The resulting table should one column and have the name 'Name' at the top. List only the top 10 names returned from the query. The last name should be sorted in ascending order, then sorted by the first name.

Queries goes here

Screenshot goes here

  1. List the first name and last name of the employees from the db1.hr.employees table have 'st' at the beginning of their job_id The resulting table should one column and have the name 'Name' at the top. List only the top 10 names returned from the query. The last name should be sorted in ascending order, then sorted by the first name.

Queries goes here

Screenshot goes here

  1. List the first name and last name of the STUDENT from the db1.hw.student table that have the 3 letters 'usa' somewhere in the name of their employer. The resulting table should one column and have the name 'Name' at the top.

Queries goes here

Screenshot goes here

  1. List the title, first name, middle initial, and last name of the employee from the db1.costco.employee table who's job_code is 'sec' and works in the Database Corner store (store_code 2). The resulting table should one column and have the name 'Name' at the top.

Queries goes here

Screenshot goes here

#Examples

SQL How to Retrieve Data From a Single Table List the firstname and last name of the two employees from the db1.hr.employees tablethat were hired during the year 1987 use two different methods. The

1. e 100 % Do re Results EC Messages Name Steven King Jennifer Whalen 1 2 2. trie Results El Messages Zetrie Name 1 Ellen Abel 2 Sundar Ande 3 Hermann Baer Amit Banda N 4 5 Elizabeth Bates 6 Sarah Bell Harrison Bloom Anthony Cabrio Gerald Cambrault Nanette Cambrault 9 10 3. 5 100 % ::: Results Bi Messages Name Mozhe Atkinson PHD Laura Bissot Curtis Davies como de o 6 7 Adam Fripp Ki Gee Payam Kaufling Renske Ladwig James Landry Jason Mallin Steven Markle che be 07.01 4. Chat 100 % Results Name 1 John Smith 2 3 Dawn Dennis Jeffrey Citron Eric Da Silv 5. 100 % Results Bi Message wa Retriever etrieve Name 1 Mr. Jack W Eindsmar

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!