0% found this document useful (0 votes)
14 views1 page

Practice 1

Uploaded by

Anjana Maganti
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)
14 views1 page

Practice 1

Uploaded by

Anjana Maganti
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/ 1

PRACTICE 1

1. Create a database naming : COMPANY and open the database.


2. Create a table EMPLOYEE having following structure.

Name Type
EMPLOYEE_ID MEDIUMINT
LAST_NAME VARCHAR (15)
FIRST_NAME VARCHAR( 25)
JOB_ID MEDIUMINT
MANAGER_ID MEDIUMINT
HIRE_DATE DATE
SALARY DOUBLE (9,2)
COMMISSION DOUBLE (9,2)

4. Modify the EMPLOYEE table to allow for longer employee last name of 25 character
long.
5. Create the EMPLOYEE1 table based on the structure of the EMPLOYEE table. Include
only EMPLOYEEID, FIRST_NAME, LAST_NAME and DEPARTMENT_ID columns.
Name the columns in you new table ID, F_NAME,L_NAME and DEPT_ID respectively
6. Rename the EMPLOYEE1 table to EMPLOYEE2.
7. Drop the LAST_NAME column from the EMPLOYEE1 table.
8. Drop the EMPLOYEE2 table.

You might also like