Write a sql join query using two or more basetables

Assignment Help PL-SQL Programming
Reference no: EM131903862

Project Assignment

Description

Note that this project must be unique in its design (E-R diagram) and implementation (SQL queries). You are not to copy or use any part of a database project that was previously submitted or appears on the Web, in a textbook, or otherwise made available via an external source. Contact your instructor if you have any questions regarding this requirement.

PART 1

(1) ProjectDescription.

Provide an overview of your project identifying the major components as part of a database design. The format is an executive summary to be presented to management for review.

(2) Entity-RelationshipDiagram.

Use the entity-relationship diagram (crow's foot) notation to design your database system. Be sure to:

(1) identify entity types; (2) describe relationships between or among entity types; (3) identify modality and cardinality for each relationship; (4) identify associative entities and intersection data; and (5) label primary and foreign key attributes.

Your entity-relationship diagram will have a minimum of six (6) entity types of which at least two (2) are associative entities with intersection data. The ERD is accompanied by a brief explanation of each component in the entity-relationship model.

Note: You can use Microsoft Visio, Word, PowerPoint, or Access as a diagramming tool. Please obtain approval from your instructor regarding the use of other diagramming tools.

PART 2

1. SQL Data DefinitionLanguage (DDL) and Base Tables with Data/Views.

1.1. Create a base table. Write the SQL to create a table based on one of your entities. Be sure to identify the primary key as part of your SQLsyntax.

1.2. Create a view. Write the SQL to create a view on the basetable.

1.3. Show the base tables with data. Show a base table along with six rows containing data for three entities in your entity-relationship diagram. (Display each table in the form of an MS Wordtable.)

2. SQL Insert/Update/Delete Manipulation.

2.1. Insert a row. Write a SQL query to insert a row into one of your basetables.
2.2. Update a row. Write a SQL query to change a data value in the insertedrow.
2.3. Delete a row. Write a SQL query to delete the row from your basetable.

3. SQL Data Queries. For 3.1 through 3.7, write the SQL query AND show the output using the data in your basetables.

3.1. Write a SQL query using a comparison operator (e.g., =, >,<).
3.2. Write a SQL query using the "AND" or "OR"operator.
3.3. Write a SQL query using the "BETWEEN" or "LIKE"operator.
3.4. Write a SQL query using a built-infunction.
3.5. Write a SQL query using the "GROUP BY"clause.
3.6. Write a SQL join query using two or more basetables.
3.7. Write a SQL subquery using two or more basetables.

PART 3

1. For the database concept you have chosen for Parts 1 and 2, provide thefollowing:

• Display your entities/tables in first normalform
• Display your entities/tables in second normalform
• Display your entities/tables in third normalform

You may need to rework your relationships to achieve this. For each form, provide the tables and the defining associations.

2. Next, define three business processes that will access a particular table and attribute. For example, "A customer login process will require accessing the CUSTOMER table and retrieving the CustomerID and CustomerPassword attributes". Provide detail on what the business process is and who is involved. For each business process, provide the SQL that would need to run to access it in the first, second, and third normal forms you provided in the previoussection.

3. Finally, choose a database optimization strategy, whether physical or logical, and describe how it could potentially benefit any or all of your normal form examples. Provide a comparison between a use case with and without this strategyimplemented.

Reference no: EM131903862

Questions Cloud

Write merge script to correct the missing calorie count info : Merge - Write MERGE script to correct the missing calorie count information. Use the cals.txt document provided.
Give some examples of expansion or growth opportunities : What actions do you think J&J and the other three firms should have taken when they received the stolen property from Stegora?
Write a c program to implement the function interface : Write a C program to implement the function interface below as an External function. Test your solution using the stub program shown below.
How much money do you expect to have at the end : How much money do you expect to have at the end of your investment horizon if you invest in the mutual fund?
Write a sql join query using two or more basetables : Write a SQL query using a built-infunction. Write a SQL query using the GROUP BYclause. Write a SQL join query using two or more basetables.
Create a linux server environment running apache web server : Create a Linux server environment, running an apache web server. Create five users on the server. One user will have administrative privileges.
Write a complete class for an object called a box : Write a complete Class for an object called a Box. The Box should have three integer instance variables, one for the length, one for the width and one for Box.
How much less can the borrower with a mortgage borrow : How much less can the borrower with a 6% mortgage borrow to keep the same monthly mortgage payment as the borrower with a 5%.
Implement all of the functions in bits c file : Your task is to implement all of the functions in bits.c. All instructions regarding individual functions are in the comments above each function.

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Create a database model

Create a database model and Submit the table creation statements for the Database Model.

  Write pl-sql procedures and functions

Write PL/SQL procedures and functions to populate and query that database

  Sql questions

Write a query to display using the employees table the EMPLOYEE_ID, FIRST_NAME, LAST_NAME and HIRE_DATE of every employee who was hired after to 1 January, 1995.

  Run the lab_03_01.sql script

Run the lab_03_01.sql script in the attached file to create the SAL_HISTORY table. Display the structure of the SAL_HISTORY table.

  Write sql queries

Write a query to display the last name, department number, and salary of any employee whose department number and salary both match the department number and salary of any employee who earns a commission.

  Explaining sql insert statement to insert new row in cds

Write down a SQL insert statement to insert new row in "CDS" table.

  Write down name of actors in ascending order

Write down actors (or actress, your choice, but not both) who have won at least two (2) Academy Awards for best actor/actress. Provide the actor name, movie title & year. Order the result by actor name."

  What is an sql injection attack

What is an SQL injection attack? Explain how it works, and what precautions must be taken to prevent SQL injection attacks.What are two advantages of encrypting data stored in the database?

  Determine resonant frequency in series rlc resonant circuit

Given the series RLC resonant circuit in the figure, operating at variable frequency, determine: The resonant frequency ω o ,  The circuit’s quality factor Q , The cut-off frequencies, f 1  & f 2  and the bandwidth BW

  Query that uses cube operator to return lineitemsum

Write summary query which uses CUBE operator to return LineItemSum (which is the sum of InvoiceLineItemAmount) group by Account(an alias for AccountDesciption).

  Query to show customers were missing for existing orders

As DBA, your manager called a meeting and asked why there are so many orders for customers that don't exist in the customer table. Write query which would shows which customers were missing for existing orders. Use a join or a subquery.

  Sql query into a relational algebra statement

Turn this SQL query into a relational algebra statement? SELECT Request.reqfor, Ordering.invamt, Ordering.invnbr, Ordering.invdat

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