Course Hero Logo

DATABASE.docx - 1. Create the table employee with the...

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 1 - 4 out of 6 pages.

1. Create the table employee with the following structure.
2. Write a query to display the employee number, first name and salary increased by 15%. Label the column NewSalary.
3.Modify the above query to add a column that will subtract the old salary from the new salary. Label the columnIncrease.
3.Execute the following statement to create the table department.CREATE table department(deptno VARCHAR(3)NOT NULL PRIMARY KEY,deptname VARCHAR(30),mgrnoVARCHAR(6),location VARCHAR(10))
4.Insert records into the departmenttable as shown in the tabular format.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 6 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags
The Table, Personal name, Given name, 000010

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture