Create table department

Assignment Help Basic Computer Science
Reference no: EM13780826

Create table DEPARTMENT12 that includes columns dept_id and dept_name2. Create a table EMPLOYEE12 that includes the columns employee_id, FirstName , MiddleName,LastNarne, and social security number3. Modify the EMPLOYEE12 table to create a composite unique key on combination of firstname,middlename and lastname4. Create a sequence as below:CREATE SEQUENCE deptseqSTART WITH 1INCREMENT BY 1;5. Insert 2 records into DEPARTMENT12. Remember to use Sequence numbers for dept_id6. Modify EMPLOYEE12 table to add column dept_id (Foreign key)7. Add 2 employees into EMPLOYEE12 table with one employee should belong to dept_id 1 andanother employee should belong to dept_id 2. Remember to create and use Sequence numberfor employee_id which will start from 1000 and increment by 18. Write SQL statement to delete dept_id 1 from Department table. Explain what happens whenyou attempt the SQL statement9. To enable delete of department with dept_id 1, you need to use the ON DELETE clause inForeign Key constraint. Refer to Oracle documentation for further guidance. Drop Foreign Keyconstraint and recreate with ON DELETE clause10. Now, delete department with dept_id 1. Explain what happens11. Modify table DEPARTMENT12 to add a column DIVISION that should be constrained to checkvalues in the range of 51 and 10012. Modify DEPARTMENT12 table to add constraint on dept_name to ensure that all recordsinserted will have dept_name in UPPERCASE. Review Oracle Documentation if needed13. Test the constraint14. Write a query to display all constraints for table EMPLOYEE12 and DEPARTMENT12

 

 

Reference no: EM13780826

Questions Cloud

Order quantity that minimizes total annual cost of inventory : The Central Hydraulic Supply Company is a distributor of hydraulic supplies in the Midwest. Central handles standard fittings, tubing, and similar items. Generally Central carries an entire product line for each manufacturer it represents providing l..
Order it by faculty last name in descending order : Write a SELECT statement that will return the faculty last name, faculty first name and the room for faculty whose offices are located in the 'LIB' building. Order it by faculty last name in descending order. This is in MySQL
Develop and prototype a new interface design : Your task is to develop and prototype a new interface design for the system’s function using Graphical User Interface. Include the same functions shown on page 361 plus possible messages during user interface such as error messages, confirmation, sta..
What skills does a non-legal person need as an employee : Consider how the world of business interacts with the legal realm. What skills does a non-legal person need as an employee? What legal training do you feel a businessperson needs in order to make good decisions? Please refer to U.S. Bureau of Labor S..
Create table department : Create table DEPARTMENT12 that includes columns dept_id and dept_name2. Create a table EMPLOYEE12 that includes the columns employee_id, FirstName , MiddleName,LastNarne, and social security number3. Modify the EMPLOYEE12 table to create a composite ..
Each activity contained a series of milestones : Each activity contained a series of milestones that represented a previously agreed-upon amount of work. Once the low graffiti was erased, 35% of the activity had been completed and once the mid-level graffiti was erased, 70% of the activity had been..
About critical chain methodology is best : Which statement about critical chain methodology is best?
Cost estimation-cost control for many project organization : How has the global economy affected the importance of cost estimation and cost control for many project organizations? Please be specific and offer examples. Feel free to use your own organization if possible.
What would be the direct cost of labor for an employee : Assume that overhead is charged on a flat rate basis. Each member of the project is assigned an overhead charge of $300/week. What would be the direct cost of labor for an employee, given that she is assigned to the project for 120 hours at $10.50?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Hydrogen development project

This exercise begins with information for a Hydrogen Development Project. Working in Microsoft Project, you will create the task list, including summary tasks and their sub-tasks, create links between tasks and their predecessors, add resources, a..

  Research its management style from its inception until

Microsoft just announced they are laying off 80,000 employees; Youtube was purchased by Google in 2006 and didn't turn a profit until 2010; and JC Penney changed CEOs and marketing strategies twice in a short span in the late 2000s. You need to..

  Discuss how current or potential employers

From the e-Activity, discuss how current or potential employers might be able to use the information you found and possible steps that could be taken to help ensure your privacy. Provide specific examples to support your response.

  Suppose china begins in steady state

Suppose China begins in steady state. To keep the model simple, let us assume the sole result of these technology transfer policies is to increase the productivity factor by a large and permanent amount, one time. Answer the following questions:

  Describe in detail what is quantum entalgment

Describe in detail What is quantum computer, Describe in detail What is quantum entalgment

  Prepare a sample network diagram

Prepare a sample network diagram, and indicate your recommended options.

  Elizabeth george

Elizabeth George

  What two possible ways achieve this goal to relocate

You need to relocate the existing user and computer objects in your company to different organizational units. What are two possible ways to achieve this goal?

  Design a suitable source document for ads

Terrier News is a monthly newsletter devoted to various breeds of terriers and topics of interest to terrier owners and breeders. Design a suitable source document for ads that are telephoned or mailed in.

  Explaining components of computing environment

According to Raggad's taxonomy of information security, a computing environment is made up of ?ve continuously interacting components namely; activities, people, data, technology and networks.

  Find final contents of cache using direct-mapped cache

Suppose direct-mapped cache with 16 one-word blocks that is initially empty, label each reference in list as hit or miss and find final contents of the cache.

  Database developer for a local college

Suppose that you are the database developer for a local college. The Chief Information Officer (CIO) has asked you to provide a summary of normalizing database tables that the IT staff will use in the upcoming training session.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd