Modern Database Management
Modern Database Management
13th Edition
ISBN: 9780134773650
Author: Hoffer
Publisher: PEARSON
Question
Book Icon
Chapter 1, Problem 1.47PAE

(a)

Program Plan Intro

The way Sales to Date calculated in the given SQL query.

(b)

Program Plan Intro

The change in the given query if Helen Jarvis wanted to see result for all product line and not for only Home office Product Line.

(c)

Program Plan Intro

Explain how the two types of conditions with the WHERE clause is different from each other?

Blurred answer
Students have asked these similar questions
Consider the star schemas from Figure 11.2. Suppose an analyst finds that monthly total sales (sum of the price values of all sales tuples) have decreased, instead of growing, from April 2018 to May 2018. The analyst wishes to check if there are specific item categories, stores, or customer countries that are responsible for the decrease. What are the aggregates that the analyst would start with, and what are the relevant drill-down operations that the analyst would need to execute? Write an SQL query that shows the item categories that were responsible for the decrease in sales, ordered by the impact of the category on the sales decrease, with categories that had the highest impact sorted first.
Using SQL data definition language, write the SQL statements to create each of the following relations. i. customer(cust id, lname, fname, initial, area code, phone, balance)ii. product(prod id, vendor id, description, expiry date, quantity, reorder level, price, discount)iii. vendor(vendor id, name, contact, area code, phone, state)iv. invoice(inv number, cust id, date, subtotal, tax, grand total)Note: Use primary key, foreign key and not null constraints where necessary.
Using SQL data definition language, write the SQL statements to create each of the following relations. i. student(student id, name, dept id, total credits)ii. department(dept id, building, budget)iii. lecture_hall(hall id, campus, capacity)iv. course(course id, title, dept id, credits) v. takes(student id, course id, semester, year, grade)
Knowledge Booster
Background pattern image
Similar questions
Recommended textbooks for you
  • Text book image
    A Guide to SQL
    Computer Science
    ISBN:9781111527273
    Author:Philip J. Pratt
    Publisher:Course Technology Ptr
Text book image
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr