Write sql ddl corresponding to the given schema

Assignment Help PL-SQL Programming
Reference no: EM131765163

Assignment: Fundamentals of Databases

Question One

Normalize the following schema, with given constraints, to BCNF.

books(accessionno, isbn, title, author, publisher)
users(userid, name, deptid, deptname)

accessionno isbn
isbn → title
isbn → publisher
isbn → author
userid → name
userid → deptid
deptid → deptname

Question Two

1. Write SQL DDL corresponding to the following schema. Make any reasonable assumptions about data types, and be sure to declare primary and foreign keys.

2. Find the number of accidents in which the cars belonging to "John Smith" were involved.

3. Update the damage amount for the car with license number "AABB2000" in the accident with report number "AR2197" to $3000.
person (driver_id, name, address)

car (license, model, year)
accident (report_number, date, location)
owns (driver_id, license)
participated (report_number, license, driver id, damage amount).

Reference no: EM131765163

Questions Cloud

Environmental factors to assess operational risk : Can we look at environmental factors to assess operational risk? need some feedback to explain the pros and cons associated with this question.
Calculate the amount of the asset and liability : Timothy Company signs a lease agreement dated January 1, 2016 with Jasper Company for equipment. The lease terms, provisions, and related events are as follows.
Decision to post the coffee-break notice : List the pros and cons of Mr. Jackson’s decision to post the coffee-break notice. List the pros and cons of Mr. Jackson’s decision to post the coffee-break noti
Forecast next year cost of goods sold : You forecast sales to increase to $110,000 next year. Using the percent of sales method, forecast next year's cost of goods sold.
Write sql ddl corresponding to the given schema : Write SQL DDL corresponding to the following schema. Make any reasonable assumptions about data types, and be sure to declare primary and foreign keys.
Prepare and incremental analysis for the special order : Gruner and Company produces golf disks which it normally sells to retailers for 7 dollars each. Prepare and incremental analysis for the special order
What are the robin prime costs : Robin Company has the following balances for the current month: Direct materials used $14,500 Direct Labor $23,750 Sales salaries $13,600.
Preferred stock issued for company : What is the cost of equity for Company DD, if there's no preferred stock issued for this company?
Compute current net income for nichols company : Nichols Company makes three models of phases. Compute current net income for Nichols Company

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Calculate the tax on an order

CSD 4204 Project Part - calculate the tax on an order. The BB_TAX table contains the states that require taxes to be submitted for Internet sales

  Display all product columns for products

Display all product columns for products that are red and black and have a list price greater than or equal to $400 and less than or equal to $800. Use the keywords BETWEEN and IN.

  Create a plsql block to achieve the following using the hr

create a plsql block to achieve the following using the hr schemaselect the name salary and department of the employee

  Write sql to correction create the beach table

Write SQL to correction create the BEACH table, Write SQL to inset the data into the BEACH table

  Create database of customers table

1) Add 10 customers to the database using the Customers table. Show the table, including the SQL Code.2) Using SQL query, update more than one element in a customer record. Show before and after data, including the SQL code.

  What owner is serviced by what office manager

What Owner is serviced by what Office Manager? You have to build your query and take a screenshots of the query result and command.

  Find the most classes taken by students

Find the students by student ID who have taken the most class (counted by enrolled students) and not counting where an ‘F' was the grade - Find the facility by facility id who teach math class.

  Write sql expression

Write SQL expression for the following questions about the security aspects of above database. Student can view all the information in the course and instructor tables except for InstructorId.

  Write sql statements for the ten queries

Write SQL statements for the ten queries - find the names of all Tracks that are more than 10 minutes (600,000 ms) long. Result: (name: varchar(255))

  Define one data cube only using sql server data tools

The board of XYZ expects the data warehousing system to provide some functions to analyse their customers in order to improve their management and services.

  Convert the er/eer model

To represent a problem description given in natural language as an (Enhanced) Entity -Relationship model; to convert the ER/EER model into a relational data model;

  Execute queries to confirm that the basket order status

Execute queries to confirm that the basket order status and product stock levels have been appropriately modified by the trigger.

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