Compare and contrast the three phases of database design

Assignment Help PL-SQL Programming
Reference no: EM13328914

1- Compare and contrast the three phases of database design.

2- Write an SQL select statement to list all double or family rooms with a price less than $255 per night in ascending order of price. If you have not successfully constructed the full tables Hotel, Room,Guest and Booking and fill the relevant date as required in the previous practical, you could replace your table construction and data via this SQL script.

Students may try out these two simplified queries first if they wish:

o List all rooms with a price less than $255 per night.
o List all double or family rooms with a price less than $255 per night.

3- What is the possible maximum total revenue per night from all double rooms?

NOTE: We recall that aggregate functions such as COUNT(), SUM() are applied to each group if theGROUP BY clause is present, or applied to the whole set of records if GROUP BY clause is absent.

4- List the price and type of all rooms at the Marriott hotel in London.

HINT: Use JOIN for tables Hotel and Room.

5- List the number of rooms in each hotel.

HINT: Use aggregate function COUNT(), and also make use of the GROUP BY clause.

6- Write an SQL query to update the price of all rooms by 5%.

NOTE: We recall from last week's practical that the syntax for using UPDATE can be found

a. https://www.w3schools.com/sql/sql_update.asp

b. https://www.techonthenet.com/sql/update.php

Tutorial 7: Q1, Q6, Q8-Q9 (with screenshots for the output results of the SQL).

7- Describe the purpose of normalizing data.

8- Read prac7script1.sql and draw a logical data model to illustrate the design. This file can be found under the prac link on vUWS. It may be helpful to refer to the sample data used in prac7script2.sql.

9- Write an SQL query to show the average customer balance for each area code.

Reference no: EM13328914

Questions Cloud

Can you explain how they got this : If the price elasticity of demand is 2 in absolute value, then when the price of a good x rises 25% the correct answer is the greater demand of good falls by 50%. Can you explain how they got this?
Calculate balance sheet-based accruals and cash flow-based : 1. Using Wal-Mart (publicly traded company), calculate the balance sheet-based accruals and cash flow-based accruals ratios. 2. Analyze the ratios and other information,of Wal -Mart and write an assessment of financial reportin..
What happened to the price of cancun vacation packages : If the elasticity of demand for spring break packages to cancun is -5 and if you notice that this year in cancun the quantity packages demanded increased by 10% then what happened to the price of cancun vacation packages?
The value of a home depends in part on how attractive other : The value of a home depends in part on how attractive other homes and yards in the neighborhood are. How do local zoning ordinances try to promote land uses that generate external benefits for neighbors?
Compare and contrast the three phases of database design : Write an SQL select statement to list all double or family rooms with a price less than $255 per night in ascending order of price.
How to prepare journal entries to record the events : During April, $79,000 of raw materials were requisitioned from the storeroom for use in production. These raw materials included both direct and indirect materials.
What would the cash flow diagram look like : If an alternative has monthly payments of $10,000 a month for three years with a purchase price of $75,000 at the end of year three, what would the cash flow diagram look like?
Suppose the price of the good is initially $100 : Suppose the price of the good is initially $100. What is the price elasticity of demand at this point? (Hint: What happens to the quantity demanded when the price drops by 10%?)
What is the capacitance after the slab is introduced : A slab of copper of thickness b = 2.273 mm is thrust into a parallel-plate capacitor of C = 1.00×10-11 F of gap d = 10.0 mm, What is the capacitance after the slab is introduced

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Provide sql statements to create the database

Provide SQL statements to create the database and populate it with sample data (at least four rows per table).

  Create a new database in sql server and run

Create a new database in SQL Server and run the following CREATE TABLE commands. Note that you must run the CREATE TABLE statements in the order presented (and load the data in the order presented) to avoid conflicts resulting from foreign key con..

  Create a text file called yourstudentid

Create a text file called YourStudentId-Create.sql (format xxxxxxx-Create.sql) for example 2225991- Create.sql that will.

  Give me a list of all the proposed prices

Give me a list of all the proposed prices for the next year from the l_foods table.  Sort your results by proposed_price.  (Note that proposed price, is price + price_increase.)

  Pretend that you are on the boards

Pretend that you are on the boards of the American National Standards Institute (ANSI) and the International Organization for Standards (ISO), two of the organizations who standardized SQL

  Create tables using sql ddl

Write the SQL DDL to create the database that contains each of the relations shown in the above ERD. You will need to provide - Your DDL code for each table that you create and a screenshot showing each table that is created.

  Sql statement which select names and owners of great danes

Write SQL statement which would select each of the following: names and owners of all Great Danes and all attributes of poodles whose balance is no greater than $50.

  Convert requirement to logic and then to sql

Prepare the SQL query for each of given requirements. Convert requirement to logic, then to SQL. Illustrate the names of all products which have been sold.

  Indicate the changes

Indicate the changes (using the shorthand representation) that you would need to make to the original Premiere Products database design to support the following requirements. There is no relationship between customers and sales reps.  When a custo..

  If the value for the listprice column is a negative number

If the value for the ListPrice column is a negative number, the stored procedure should raise an error that indicates that this column doesn't accept negative numbers. Similarly, the procedure should raise an error if the value for the DiscountPer..

  Write a sql query for each of the following requirement

MIS 4300 / ACCT 4300 Database Fundamentals Spring 2014. How many times the vendor has placed an order for the item ID = 1 (rename it as NUMORD)?

  An er diagram for the system

An ER diagram for the system. Show all entities, relationships, cardinalities and optionalities. Also, include all intersection entities. You must use the Finkelstein methodology as per the study book and tutorials.

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