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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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