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

  Describe a dbms and its functions

Describe a DBMS and its functions. Name some of the popular DBMS software? You should search the Internet for the updated DBMS technology.

  Explaining method effective in cracking web passwords

More people are utilizing online shopping and banking. Explain one method that you believe is most effective in cracking Web passwords.

  Write fields to use as control break fields to make report

Write down fields that you want to use as control break fields to make a report which lists all inventory items in grocery store? Create a sample report.

  Design and implement a graphical user interface

Design and implement a graphical user interface (GUI) that let user draw geometrical object such as rectangles, circles. squares, and triangles. Create UML class diagram for your classes. Add JavaDoc comments to your classes.

  Locate a hosted distributed database service

Locate a hosted, distributed database service. Explore its features and talk about your experiences. In what situations would an organization consider using it?

  Find all the information for the homework

Have to write a small program that prompts the user to enter a temperature in degrees Fahrenheit and then prints a massage as to whether Attached you will find all the information for the homework.

  Create a set of instructions

Provide a private address to be used for the AS and a public address to be used to connect to an ISP router connected to a border router.Create a set of instructions for the lab that would have students create a basic configuration and test connecti..

  Design a good device interface standard

Discuss why it is so difficult to design a good device interface standard. Provide a detailed example to support your findings. Include a question that responding students can reply to within your initial post

  Understand the concepts relating to issues

Understand the concepts relating to issues

  Write a program that accepts as input the mass

Write a program that accepts as input the mass,in grams, and density, in grams per cubic centimeters, and outputs the volume of the object using the formula: volume=mass/density. format your output to two decimal places

  Find prime numbersless than or equal natural numbers

Find the prime numbersless than or equal to the following natural numbers.

  Design an application to take and process a pizza order

Design an application to take and process a pizza order. The user should be able to make pizza order choices from listboxes, and the application should display the order price.

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