Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DBMS Expert


Home >> DBMS

Question 1. Use any technique to write or generate the Oracle DDL commands necessary to create thetables, primary keys and referential integrity constraintsfor the tables and attributes listed in Table 1 and Figure 1.

It is not required to name non-key attributes the exactly same the name shown on the relational model.

I will execute the SQL commands to verify that they execute correctly.

• Show evidence that you successfully created the tables - show screenshots

• Submit a copy of the Oracle DDL as a separate file with the name DDL_part1.SQL..

Question 2.  Populate the tables you created in question 1 with the data set provided. Query each table to verify that you populated the tables with the data provided - use any combination of techniques using COUNT and other functions. Finally, export the database.

• Describe the process you followed to populate the database.

• Describe the process you used to verify that you populated the tables successfully.

• Show evidence that you successfully populated your database - show screenshots.

• Show evidence that you successfully verify that you populated the tables with the data provided - show screenshots.

• Submit a copy of the Oracle commands that you used to verify that you populated the tables with the data provided as a separate file with the name TEST_Part2.SQL.

• Submit a copy of the exported entire databaseas a separate file with the name EXPORT_Part2.txt.

Place Question 2 answers and documentation here

Question 3.  Test the primary keys and referential integrity constraints. Write the Oracle DML statements to INSERT duplicate primary key values and foreign key values with no matching primary key for each table where primary keys and foreign keys are defined.

Write Oracle DML statements to DROP primary key values when matching foreign key values exist.

A successful test will generate an error message from Oracle informing you of the constraint violation. Capture screenshots or error logs of these messages. I will execute the SQL commands to verify that they reasonably test the constraints of the database. I will execute the SQL commands to verify that they execute correctly.

• For each test, describe the test, the test data and the expected result of the test.

• Show evidence that you successfully tested the constraints of your database - show screenshots.

• Described any changes you would make to your database as result of your testing.

• Submit a copy of the Oracle SQL test commands with INSERT and DROP commands as a separate file with the name Test_Constraints_Part3.SQL.

• Place Question 3 answers and documentation here.

Question 4.

4.a Write the following queries with comments to identify the queries:

• Determine the state that has the most number of occurrences where Compared to National has the value "Number of Cases Too Small".

• For the state with the most number of occurrences where the Compared to National has the value "Number of Cases Too Small", list the Measure ID and Measure Name.

• For the state with the most number of occurrences where the Compared to National has the value "Number of Cases Too Small", obtain the name and type of the hospital sorted by Measure Name. Include the full state name, the hospital type description and the Measure ID Name in the result set.

• Combine one or more of the previous queries to create one or more queries illustrating the construction of a subquery.

• Show evidence that you successfully executed the queries - show screenshots below of the result of the queries.

4.b Add an index to your database that would benefit the query containing the subquery in part 3.a

4.c Evaluate the impact of your index generating and interpreting SQL execution plans on the query without the index as compared to the query with the index.

 Do not create an index on a primary key

• Explain why the index is beneficial.

• Show evidence that you successfully created the index - show screenshots.

• Show evidence that you successfullyevaluated the impact of your index - show screenshots.

• Submit one file that contains the SQL commands for the queries and the index from question 4 a b. Name the file Part4.SQL.

Attachment:- Excel Project .rar

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M92719422

Have any Question?


Related Questions in DBMS

Sql assignmentin these exercises youll enter and run your

SQL Assignment In these exercises, you'll enter and run your own SELECT statements. You will use the MyGuitarShop database for these queries. If you do not already have the MyGuitarShop database, the SQL script and the i ...

Quesiton 1 what is data-manipulation language dml there are

Quesiton: 1. What is Data-Manipulation Language (DML)? There are four types of access in DML, explain each one. 2. Assume we have a Library Database consists of the following relations: author(author_id, first_name, last ...

Question a suppose you are a marathon runner that can run a

Question : a) Suppose you are a marathon runner that can run a maximum of n miles on a single bottle of water. You are given a map of your marathon route with all the water stations marked. Design an efficient algorithm ...

Question 1 a- consider that you are asked to design an

Question: 1. (a)- Consider that you are asked to design an entity relationship diagram based on the below scenario: A university consists of a number of departments (id, d_name) and each department offers some courses. A ...

The relation memberstudentid organizationid roleid stores

The relation Member(StudentId, OrganizationId, RoleId) stores the membership information of student joining organization. For example, ('S1', 'O2', 'R3') indicates that student with Id 'S1' joined the organization with i ...

Question team project submission - submit to the unit 4

Question: Team Project Submission - Submit to the Unit 4 Group Project Area This version of the capstone project assignment is FOR GRADING this week. Submit to the group area the document containing completed Sections On ...

Assignmentqueries functions and triggersdatabase

Assignment Queries, Functions and Triggers Database Systems Aims The aims of this assignment are to: formulate SQL queries; populate an RDBMS with a real dataset, and analyse the data; design test data for testing SQL qu ...

Question 1 describe 1nf 2nf 3nf2 explain why 4nf is a

Question: 1: Describe 1NF, 2NF, 3NF. 2: Explain why 4NF is a normal form more desirable than BCNF. The response must be typed, single spaced, must be in times new roman font (size 12) and must follow the APA format.

Question create an erd for the following scenario once you

Question: Create an ERD for the following scenario. Once you submit you will get access to the correct way to create the ERD. Please watch the video and correct any errors in your submission and resubmit. A small company ...

Sql query assignment -for this assignment you are to write

SQL Query Assignment - For this assignment you are to write your answers in a word document. This assignment is in three parts: Part A (reporting queries), Part B (query performance), Part C (query design). For this assi ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As