Professional Documents
Culture Documents
Labassignment 03
Labassignment 03
Instructions:
1. The HR department wants a report that displays the last name, job ID, hire date
and employee ID for each employee, with the employee ID appearing first. Rename the
HIRE_DATE column as STARTDATE.
Solution:
SQL
statement
Output
display
2. The HR department wants a report to display all unique job IDs from the EMPLOYEES table.
Solution:
Page | 1
UNIVERSITI TUN HUSSEIN ONN MALAYSIA
SQL
statement
Output
display
3. The HR department wants more descriptive column headings for its report on employees.
Use query from (1) and name the column headings EMP #, Employee, Job, and Hire Date,
respectively.
Solution:
SQL
statement
Page | 2
UNIVERSITI TUN HUSSEIN ONN MALAYSIA
Output
display
4. The HR department has requested a report of all employees and their job IDs. Display the
last name concatenated with the job ID (separated by a comma and space) and name the
column “Employee and Title”.
Solution:
SQL
statement
Output
display
Page | 3
UNIVERSITI TUN HUSSEIN ONN MALAYSIA
5. Create a query to display all the data from EMPLOYEES table. Separate each column output
by a comma. Name the column title THE_OUTPUT.
Solution:
SQL
statement
Output
display
Page | 4
UNIVERSITI TUN HUSSEIN ONN MALAYSIA
6. Write a summary (300 words) on the lesson learned, difficulties arise, or any new
knowledge obtained throughout the Lab 3.
Page | 5