0% found this document useful (0 votes)
33 views

Practice Exercises 2

The document provides instructions for populating a MY_EMPLOYEE table with sample data and modifying data within the table. The instructions include creating the table, inserting sample data rows using different SQL syntax, updating data, deleting a row, and generating reports to view specific data fields and rows from the table.

Uploaded by

koaslosa
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)
33 views

Practice Exercises 2

The document provides instructions for populating a MY_EMPLOYEE table with sample data and modifying data within the table. The instructions include creating the table, inserting sample data rows using different SQL syntax, updating data, deleting a row, and generating reports to view specific data fields and rows from the table.

Uploaded by

koaslosa
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

Practice Exercises (Non-Graded)

1. Create a table MY_EMPLOYEE with the following structure:

2. Create an INSERT statement to add the following row.

3. Populate the MY_EMPLOYEE table with the second row of the sample data. This time,
list the columns explicitly in the INSERT clause.
4. Confirm your last addition to the table.

5. Populate the remaining rows of the table by using substitution variables.

6. Make the additions permanent.


7. Change the last name of employee 3 to Drexler.

8. Change the salary to $1,000 for all employees who have a salary less than $900.
9. Verify your changes to the table.

10. Delete Betty Dancs from the MY_EMPLOYEE table.


11. Confirm your changes to the table.

Answer the following two questions by logging in as HR user.


12.

Because of budget issues, the HR department needs a report that displays the last name
and salary of employees who earn more than $12,000.

13.

Create a report that displays the last name and department number for employee number
176.

You might also like