lesson4 premiere assignment

Upload: carlos-vallejos

Post on 04-Apr-2018

223 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/31/2019 Lesson4 Premiere Assignment

    1/7

    1

    Answer the 16 questions in the case study, Premiere Products Exercises: QBE, Page 68.

    Answer 1:

    We create a query (Query 1) by selecting the Customer table, and the columns CustmerNum and

    CustomerName. After saving the query we can run it, and the result is shown in the figure below:

    Query1

    CustomerNum CustomerName

    842 All Season

    148 Al's Appliance and Sport

    462 Bargains Galore

    282 Brookings Direct725 Deerfield's Four Seasons

    356 Ferguson's

    608 Johnson's Department Store

    524 Kline's

    687 Lee's Sport and Appliance

    408 The Everything Shop

    Answer2:

    Here we create a new query (Query 2) and we pick the Part table. We can now select all the

    columns from the Part table without specifying any criteria, so in this way, we will be able to see

    in the query all the data contained in the table Part as requested in this question.

    The result is shown in the figure below:

    Query2

    PartNum Description OnHandClassWarehouse Price

    AT94 Iron 50HW 3 $24.95

    BV06 Home Gym 45SG 2 $794.95

    CD52 Microwave Oven 32AP 1 $165.00

  • 7/31/2019 Lesson4 Premiere Assignment

    2/7

    2

    Query2

    PartNum Description OnHandClassWarehouse Price

    DL71 Cordless Drill 21HW 3 $129.95

    DR93 Gas Range 8AP 2 $495.00

    DW11 Washer 12AP 3 $399.99FD21 Stand Mixer 22HW 3 $159.95

    KL62 Dryer 12AP 1 $349.95

    KT03 Dishwasher 8AP 3 $595.00

    KV29 Treadmill 9SG 2 $1,390.00

    Answer 3:

    Here we create a new query (Query 3) and we select the Rep and Customer tables. From the Rep

    table we select the RepNum column and from the Customer table we select the CustomerNum

    and CustomerName columns. After running the query the result is shown in the figure below:

    Query3

    RepNumCustomerNum CustomerName

    35 282 Brookings Direct

    35 408 The Everything Shop

    35 687 Lee's Sport and Appliance

    35 725 Deerfield's Four Seasons

    Answer 4:

    Here we create a new query (Query 4) and we select the Rep and Customer tables. In the criteria

    we type 35 under RepNum column and 10000 under the CreditLimit column. The result is

    shown below:

  • 7/31/2019 Lesson4 Premiere Assignment

    3/7

    3

    Query3

    RepNumCustomerNumCustomerNameCreditLimit

    35 282 BrookingsDirect

    $10,000.00

    Answer 5:

    The result of this query is shown in the figure below:

    Query5

    RepNum CustomerNum CustomerName CreditLimit

    35 282 Brookings Direct $10,000.00

    35 408 The Everything Shop $5,000.00

    35 687 Lee's Sport and Appliance $5,000.00

    35 725 Deerfield's Four Seasons $7,500.00

    65 462 Bargains Galore $10,000.00

    65 608 Johnson's Department Store $10,000.00

    Answers 6:

    For this query we select the Orders table and the Customer table. From these two tables we select

    all the columns from the Orders table and the CustomerName column from the Customer table.

    After saving and running the query, the report is shown in the figure below:

  • 7/31/2019 Lesson4 Premiere Assignment

    4/7

    4

    Query 6

    OrderNum OrderDate CustomerNum CustomerName

    21608 10/20/2013148 Al's Appliance and Sport

    21619 10/23/2013148 Al's Appliance and Sport

    21614 10/21/2013282 Brookings Direct21610 10/20/2013356 Ferguson's

    21613 10/21/2013408 The Everything Shop

    21617 10/23/2013608 Johnson's Department Store

    21623 10/23/2013608 Johnson's Department Store

    Answers 7:

    For this query we select the Rep table and the Customer table. From the Rep table we select

    FirstName and LastName columns, and from the Customer table we select the CustmerNum and

    CustomerName columns. After saving and running the query, the report is shown in the figure

    below:

    Query 7

    FirstNameLastNameCustomerNum CustomerName

    Juan Perez 356 Ferguson's

    Juan Perez 462 Bargains Galore

    Juan Perez 608 Johnson's Department Store

    Answers 8:

    There are three customers with a credit limit of $10,000.

    Query 8

    CustomerNum CustomerName CreditLimit

    282 Brookings Direct $10,000.00

    462 Bargains Galore $10,000.00

    608 Johnson's Department Store$10,000.00

  • 7/31/2019 Lesson4 Premiere Assignment

    5/7

    5

    Answers 9:

    The total outstanding balance for all customers represented by Rep 35 is $8,815.75 as shown in

    the figure below:

    RepNum CustomerName Balance

    35 Brookings Direct $431.50

    35 The Everything Shop $5,285.25

    35Lee's Sport and

    Appliance$2,851.00

    35 Deerfield's Four Seasons $248.00

    Total Balances: $8,815.75

    Answers 10:

    The result of this query is shown in the figure below:

    Query 10

    PartNum Description OnHandClass Price

    AT94 Iron 50HW $24.95

    DL71 Cordless Drill 21HW $129.95

    FD21 Stand Mixer 22HW $159.95

    Answers 11:

    The result of this query is shown in the figure below:

    Query 11

    PartNum Description OnHandClassWarehouse Price

    DL71 Cordless Drill 21HW 3 $129.95

    KT03 Dishwasher 8AP 3 $595.00

    KL62 Dryer 12AP 1 $349.95

    DR93 Gas Range 8AP 2 $495.00BV06 Home Gym 45SG 2 $794.95

    AT94 Iron 50HW 3 $24.95

    CD52 Microwave Oven 32AP 1 $165.00

    FD21 Stand Mixer 22HW 3 $159.95

    KV29 Treadmill 9SG 2 $1,390.00

    DW11 Washer 12AP 3 $399.99

  • 7/31/2019 Lesson4 Premiere Assignment

    6/7

    6

    Answers 12:

    The result of this query is shown in the figure below:

    Query 12

    PartNum Description OnHandClassWarehouse PriceAT94 Iron 50HW 3 $24.95

    BV06 Home Gym 45SG 2 $794.95

    CD52 Microwave Oven 32AP 1 $165.00

    DL71 Cordless Drill 21HW 3 $129.95

    DR93 Gas Range 8AP 2 $495.00

    DW11 Washer 12AP 3 $399.99

    FD21 Stand Mixer 22HW 3 $159.95

    KL62 Dryer 12AP 1 $349.95

    KT03 Dishwasher 8AP 3 $595.00KV29 Treadmill 9SG 2 $1,390.00

    Answers 13:

    The result of this query is shown in the figure below:

    Class OnHand

    AP 8

    AP 12

    AP 12

    AP 8

    AP 32

    HW 22

    HW 21

    HW 50

    SG 9

    SG 45

    Total = 219

    Answers 14:

    To create this new table, we can create a copy of the Part table, and delete the all records except

    the ones for class SG. The result of this task is shown in the figure below:

  • 7/31/2019 Lesson4 Premiere Assignment

    7/7

    7

    SportinGoods

    PartNumDescriptionOnHandClassWarehouse Price

    KV29 Treadmill 9SG 2 $1,390.00

    BV06 Home Gym 45SG 2 $794.95

    Answers 15:

    The result of this task is shown in the figure below:

    SportinGoods

    PartNumDescriptionOnHandClassWarehouse Price

    KV29 Treadmill 9SG 2 $1,390.00

    BV06 Fitness Gym 45SG 2 $794.95

    Answers 16:

    The result of this task is shown in the figure below:

    SportinGoods

    PartNumDescriptionOnHandClassWarehouse Price

    BV06 Fitness Gym 45SG 2 $794.95