0% found this document useful (0 votes)
13 views2 pages

Lab 5

Uploaded by

bit22031
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views2 pages

Lab 5

Uploaded by

bit22031
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Lab 5

Database Management systems


After completing this lesson, you should be able to do the following:
1. Limit the rows that are retrieved by a query
2. Sort the rows that are retrieved by a query
3. Use Substitution variables in SQL Developer to restrict and sort output at run time
1. Create a report to show staff full names in addition to contact details (email, phone numbers)
for all employees who were hired in January 1996. Display the names in alphabetical order
by last name. Format the report according to the example below.

2. Modify the report you created in question 1 to display all the employees (Employee Full
Name) who were hired after December 1999, display the results in descending order by hire
date.

3. List all staff members’ whose first name starts with the letter (s) and ends with the letter (n)?

4. List the employees who hold the following job titles (AC_MGR, AD_VP, FI_MGR,
HR_REP, PR_REP)?

5. The HR department wants to run reports in order to generate details of employees working
in a specific department. Create a dynamic report that prompts the user for a department ID,
and then displays the employee ID, last name, salary, and department for that manager’s
employees. Run the report for four different department numbers. How many rows did you
get for each department?

6. List full details for all rooms whose price is above $40. Your results must be sorted in
ascending order by room type and price

7. List the names and full addresses of all guests who live in AUT accommodation at “8 Mount
St.”

You might also like