Subject Computer Science Database Development

Question

Problem 1. Please write ONE SQL statement for each of the following tasks using tables created in Problem 1.

Task 1: Return the total number of reviews
Task 2: Return all reviews submitted after 2016-5-1.
Task 3: Return product names under the category TV.
Task 4: Return the product name and average score.
Task 5: Return the names of product under the category TV and with average rating above 4.0
Task 6: Return names of products under the same category as Apple iPhone 6 Plus
Task 7: Return the name of user whose minimal review score is at least 4.5.
Task 8: Return the name of the laptop with the lowest weight (Hint: using subquery in where clause)

Solution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.


-- Task 1: Return the total number of reviews

select count(*) from review;...

This is only a preview of the solution. Please use the purchase button to see the entire solution

Assisting Tutor

Related Homework Solutions

SQL Server for Business Intelligence
Homework Solution
$23.00
SQL
Server
Business
Intelligence
SSAS
Data
Mining
MDX
DAX
Role
Named
Multidimensional
Model
Analysis
Services
Holdout
Set
Lift
Chart
Prediction
Query
Named
KPI
Calculated
Column
Measure
Tabular
Row
Filter
Context
BI
Database Management Systems
Homework Solution
$20.00
Databases
Computer Science
SQL
Keys
Farmers
Cows
Physicians
Patients
Records
Tables
Car Dealer
Prices
Sales
Profit
Students
Data Structures
Database-Related Technology (2070 words)
Homework Solution
$75.00
Database
Technology
Review
Paper
Technical
Peer
Journal
Original
Theory
Practice
Topic
Analysis
Decision
Support
System
DSS
Method
ORDB
Object
Relational
Get help from a qualified tutor
Live Chats