Sql statements to create tables using sql ddl statements

Assignment Help PL-SQL Programming
Reference no: EM1352136

Q1) Given the following schema and the supporting information complete the questions that follow:
Movies(Title, Year, filmType, DirectedBy)
Stars(Title, Year, StarName, Salary)
Oscars(Title, Year, OscarAwardType, AwardedTo)
BoxOffice(Title, Year, City, GrossSales)
Ratings(Title, Year, Reviewer, Score)

The Movies relation contains the list of all movies. The value of the filmType attribute may be 'horror', 'romance', 'thriller' etc. (Title, Year) form a key in the Movies relation. The Salary attribute in the Stars relation is the amount paid to StarName for working in the movie: (Title, Year). The Oscars relation has a tuple for each Oscar awarded to a movie. The only awards of interest to us are the Best Actor, Best Actress, and Best Director awards. A typical record in the Oscars relation would look like
(Cleopatra, 1963, Best Actor, Rex Harrison).

The BoxOffice relation records for each movie its gross sales at the box office for each city. Also, each movie is rated at a scale of 1-10 by many reviewers. The rating information is kept in the relation Ratings.

1. Write SQL statements to create the above tables using SQL DDL statements.

2. Write an INSERT statement to add two new records to each table.

Reference no: EM1352136

Questions Cloud

Moraliaty and moral issues : Developmental psychologists have studied children's moral behavior in a number of different situations.
Listed the main existing strengths weaknesses : Listed the main existing strengths (S), weaknesses (W), opportunities (O) & threats (T). S & W's are internal to the business and O & T's are external.
Explain how the two companies respond to the macroeconomic : Analyze the current macroeconomic situation and its impact on Walmart and Starbucks. Explore in particular explain how the two companies' respond to the macroeconomic conditions in terms of their.
Vygotsky sociocultural theory : To revisit Vygotsky's sociocultural theory, children advance cognitively through social interactions with adults or children who's cognitive level is ahead of their own, a concept known as scaffolding.
Sql statements to create tables using sql ddl statements : Write SQL statements to create the above tables using SQL DDL statements. Write an INSERT statement to add two new records to each table.
Response of verdict : What are your thoughts on this case? Do you agree or disagree with the verdict? What would you do?
Certain return without any risk : Many potential investors feel CD's are safe investments as well. Certificates of Deposit provides varying interest rates based on a time period of investment.
Organizational behavior - leadership : Leadership. Given a situation where a manager has not been successful using a particular leadership approach, analyze the situation and identify
Explain the firm and tell us why it isn''t responsive : Explain the firm and tell us why it isn't responsive and What are the consequences if a firm chooses to ignore such stakeholder groups

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  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

  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.

  Select statement to return one row

Write a SELECT statement that returns one row for each general ledger account number which contains three columns.

  Create a database model

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

  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).

  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

  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.

  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?

  Writing and execuinge sql command

The table name will be METALS and will be used to store description of various metals. Following offers some additional direction on how table must be created.

  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."

  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.

  Explaining sql insert statement to insert new row in cds

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

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