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

  Write a pl/sql block and declare a variable v_sal

Write a PL/SQL block and declare a variable  v_sal  of the type NUMBER. Include the following statement in the Execution section:

  Trigger named products_insert

Create a trigger named Products_INSERT that inserts the current date for the DateAdded column of the Products table if the value for that column is null. Test this trigger with an appropriate INSERT statement.

  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 perl subroutine for temperature conversion

Write a perl subroutine for temperature conversion named 'convert_temp'. It should be able to handle both Fahrenheit to Celsius conversions as well as Celsius to Fahrenheit conversions.

  Create report to display scr courses in alphabetical order

Create the detail report which will display all SCR courses in alphabetical order, with a course name and instructor name in the group header.

  Can we offer an example of a query

Can we offer an example of a Query in which we can use a parentheses to affect the order of execution in which the WHERE Clause has both AND and OR Logical Operators?

  Create program to enter first and second number

Create a program that enters first and a second number. The first and second number that will be entered should be computed in halves, quarter, double, and square.

  Draw an entity-relationship diagram

Draw an Entity-Relationship Diagram (ERD) for the data storage requirements of a business described in the case study and Data Model Transformation.

  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

  Write select statement to return those rows with due balance

Write SELECT statement which returns those rows with the balance due greater than 1000. Sort result set by InvoiceTotal, with largest invoice first.

  Trigger named products_update

Create a trigger named Products_UPDATE. This trigger should insert the old data about the product into the ProductsAudit table after the row is updated. Then, test this trigger with an appropriate UPDATE statement.

  Create a view named customer addresses

Create a view named CustomerAddresses that shows the shipping and billing

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