Creating sql script queries

Assignment Help PL-SQL Programming
Reference no: EM13241106

Creating SQL script queries. Need help creating script queries. 

Make sure that you run "viewer" and "movie" before you run "rating", since "rating" has foreign keys referencing the other two tables

QUERIES:

1. Get the reviewers' ID and their occupations

2. Get the movie title for all movies that are comedy or horror, rename the output attribute name to be "Happily Scared"

3. Get the reviewer ID for male students or students older than 30.

4. What are the occupations that are NOT student, lawyer or educator? List them in descending alphabetical order

5. List all movies released in 1982 , sorted by alphabetical order

6. List all "mean" reviewers and their average rating scores - mean reviewers are reviewers whose average rating score is less than 2

7. List the oldest age of reviewers for each profession

8. List number of reviewers for each profession, not including students or educators

9. List the average student reviewers' age by gender

10. List all occupations in which the female reviewers have an average age above 40

Reference no: EM13241106

Questions Cloud

Determine a sample size with confidence level : A central university has a student population of 60,000. The university is interested in determining what proportion of them is in favour of a new grading system.
Find the 99% confidence interval of the mean math test score : A sample of the math test scores of 35 fourth-graders has a mean of 82 with a standard deviation of 15.
A researcher is interested in estimating the average salary : A researcher is interested in estimating the average salary of fire fighters in a large city. He wants to be 95% confident that his estimate is correct.
Provide a 96% confidence interval for the average number of : A random sample of n=64 children of working mothers showed that they were absent from school an average of 5.3 days per term, with a standard deviation of 1.8 days
Creating sql script queries : Get the movie title for all movies that are comedy or horror, rename the output attribute name to be "Happily Scared"
Demonstretes a characteristic of the baroque style : Describe a specific aspect of a painting by Caravaggio that demonstretes a characteristic of the Baroque style.
Analyze the main events of the korean war : Identify and analyze the main events of the Korean War and Cuban Missile Crisis. Then assess how these events affected the relationship between the United States and the Soviet Union. Make sure you use enough details to support your answer.
Assume that the standard deviation is 1500 and the variable : If the average price of a new home is 145,000 what is the minimum and maximum prices of the houses a contractor will need to build to include the middle 80% of the market.
Analyze how the solidarity movement : Analyze how the Solidarity (Solidarnosc) movement in Poland led to the collapse of communism in Poland. Point out what events led to the growth of the Solidarity movement, and then identify and analyze the events that followed Gorbachev's policy of p..

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