1 Create the MY_DEPT table based on the following table instance chart. Confirm that the table...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1 Create the MY_DEPT table based on the following table instance chart. Confirm that the table is created. Column Name Key Type Nulls/Unique FK Table FK Column Data type Length Column Name ID Key Type Nulls/Unique FK Table FK Column Data type Length ID Number 7 7 Number 2. Create the MY_EMP table based on the following table instance chart. Confirm that the table is created. LAST_NAME VARCHAR2 25 NAME VARCHAR2 25 25 FIRST NAME DEPT ID VARCHAR2 Number 7 3. Modify the EMP table to allow for longer employee last names. Confirm your modification. 4. Create the MY_EMP2 table based on the structure of the MY_EMP table. Include the ID, FIRST NAME, LAST_NAME, and DEPT_ID columns. 5. Drop the MY_EMP table 6. RENAME the table MY EMP2 TO MY_EMP; 7. Add a table-level PRIMARY KEY constraint to the MY_EMP table on the ID column. The constraint should be named at creation. Name the constraint my_emp_id_pk 8. Create a PRIMARY KEY constraint to the DEPT table using the ID column. The constraint should be named at creation. Name the constraint my_deptid_pk. 9. Add a foreign key reference on the EMP table that ensures that the employee is not assigned to a nonexistent department. Name the constraint my_emp_dept_id_fk. 1 Create the MY_DEPT table based on the following table instance chart. Confirm that the table is created. Column Name Key Type Nulls/Unique FK Table FK Column Data type Length Column Name ID Key Type Nulls/Unique FK Table FK Column Data type Length ID Number 7 7 Number 2. Create the MY EMP table based on the following table instance chart. Confirm that the table is created. LAST NAME VARCHAR2 25 NAME VARCHAR2 25 25 FIRST NAME DEPT ID VARCHAR2 Number 7 3. Modify the EMP table to allow for longer employee last names. Confirm your modification. 4. Create the MY_EMP2 table based on the structure of the MY_EMP table. Include the ID, FIRST NAME, LAST_NAME, and DEPT_ID columns. 5. Drop the MY_EMP table 6. RENAME the table MY EMP2 TO MY_EMP; 7. Add a table-level PRIMARY KEY constraint to the MY_EMP table on the ID column. The constraint should be named at creation. Name the constraint my_emp_id_pk 8. Create a PRIMARY KEY constraint to the DEPT table using the ID column. The constraint should be named at creation. Name the constraint my_deptid_pk. 9. Add a foreign key reference on the EMP table that ensures that the employee is not assigned to a nonexistent department. Name the constraint my_emp_dept_id_fk. 1 Create the MY_DEPT table based on the following table instance chart. Confirm that the table is created. Column Name Key Type Nulls/Unique FK Table FK Column Data type Length Column Name ID Key Type Nulls/Unique FK Table FK Column Data type Length ID Number 7 7 Number 2. Create the MY_EMP table based on the following table instance chart. Confirm that the table is created. LAST_NAME VARCHAR2 25 NAME VARCHAR2 25 25 FIRST NAME DEPT ID VARCHAR2 Number 7 3. Modify the EMP table to allow for longer employee last names. Confirm your modification. 4. Create the MY_EMP2 table based on the structure of the MY_EMP table. Include the ID, FIRST NAME, LAST_NAME, and DEPT_ID columns. 5. Drop the MY_EMP table 6. RENAME the table MY EMP2 TO MY_EMP; 7. Add a table-level PRIMARY KEY constraint to the MY_EMP table on the ID column. The constraint should be named at creation. Name the constraint my_emp_id_pk 8. Create a PRIMARY KEY constraint to the DEPT table using the ID column. The constraint should be named at creation. Name the constraint my_deptid_pk. 9. Add a foreign key reference on the EMP table that ensures that the employee is not assigned to a nonexistent department. Name the constraint my_emp_dept_id_fk. 1 Create the MY_DEPT table based on the following table instance chart. Confirm that the table is created. Column Name Key Type Nulls/Unique FK Table FK Column Data type Length Column Name ID Key Type Nulls/Unique FK Table FK Column Data type Length ID Number 7 7 Number 2. Create the MY EMP table based on the following table instance chart. Confirm that the table is created. LAST NAME VARCHAR2 25 NAME VARCHAR2 25 25 FIRST NAME DEPT ID VARCHAR2 Number 7 3. Modify the EMP table to allow for longer employee last names. Confirm your modification. 4. Create the MY_EMP2 table based on the structure of the MY_EMP table. Include the ID, FIRST NAME, LAST_NAME, and DEPT_ID columns. 5. Drop the MY_EMP table 6. RENAME the table MY EMP2 TO MY_EMP; 7. Add a table-level PRIMARY KEY constraint to the MY_EMP table on the ID column. The constraint should be named at creation. Name the constraint my_emp_id_pk 8. Create a PRIMARY KEY constraint to the DEPT table using the ID column. The constraint should be named at creation. Name the constraint my_deptid_pk. 9. Add a foreign key reference on the EMP table that ensures that the employee is not assigned to a nonexistent department. Name the constraint my_emp_dept_id_fk.
Expert Answer:
Answer rating: 100% (QA)
Sure I can provide you with the SQL statements that will perform the actions specified in the instru... View the full answer
Related Book For
Systems analysis and design
ISBN: 978-0136089162
8th Edition
Authors: kenneth e. kendall, julie e. kendall
Posted Date:
Students also viewed these databases questions
-
Following the IRP assignment guidelines, identify and detail how resistance might present itself throughout your change initiative. Will the initiative create additional stress for employees? What...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Dr. Jenny Brown is the new CEO of a hotel chain, Hassle Free Hotel. The hotels headquarter is based in Atlanta, Georgia in the U.S. The company was established in 2004. It has a central reservation...
-
Elaborate the basic functioning of a hydraulic lift. Include the terms pressure, density, and buoyant force in the explanation. Give one example of a hydraulic lift you have encountered.
-
The bucket has weight W. Determine the tension developed in each cord for equilibrium. Given: W = 20 lb a = 2 ft b = 2 ft c = 8 ft d = 7 ft e = 3 ft f = a B A
-
Divide as indicated. 6x + 10 x-4 9x + 15 2 x 16 X
-
Briefly describe the test statistic.
-
A young engineer wishes to become a millionaire by the time he is 60 years old. He believes that by careful investment he can obtain a 15% rate of return. He plans to add a uniform sum of money to...
-
Selected current year-end financial statements of Cabot Corporation follow. (All sales were on credit; selected balance sheet amounts at December 31 of the prior year were inventory, $50,900; total...
-
Read the case study "Southwest Airlines," found in Part 2 of your textbook. Review the "Guide to Case Analysis" found on pp. CA1 - CA11 of your textbook. (This guide follows the last case in the...
-
1 Let T be a lincar operator on R' defined by T(1,, 2) = (r +3,2r - v, - =), Dres there exist a linear operator S on R such that the composition operator So T Lurns out to be an onto linear operator...
-
What is the difference between burnout and work engagement? What can organizations do to prevent burnout and facilitate work engagement?
-
What are some of the problems with job enrichment and how can they be managed?
-
How do groups handle risk? What is a risky shift? What is a conservative shift?
-
Describe empowering leadership and explain how it differs from other theories of leadership.
-
Describe servant leadership and explain how it differs from other theories of leadership.
-
60) A control system maintains the control variable at a changing set point. A) overdamped B) regulator C) critically damped D) follow-up E) underdamped 61) Negative feedback is: A) A system that...
-
Aztec Furnishings makes hand-crafted furniture for sale in its retail stores. The furniture maker has recently installed a new assembly process, including a new sander and polisher. With this new...
-
What three things must a use case always describe?
-
What are three-dimensional Web pages?
-
Define the term function code.
-
Describe how partial and circular reasoning can be helpful or harmful in resolving ethical dilemmas.
-
Describe the various legal risks for nurses.
-
Describe the various roles of advanced practice nurses.
Study smarter with the SolutionInn App