Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

[6 points] Create and display the following table. Let the name of the table be products_tbl Table 1: products_tbl PROD_ID PROD_DESC COST ---------------------------------------------------------------------------- 11235 WITCH

  1. [6 points] Create and display the following table. Let the name of the table be products_tbl

Table 1: products_tbl

PROD_ID PROD_DESC COST

----------------------------------------------------------------------------

11235 WITCH COSTUME 29.99

222 PLASTIC PUMPKIN 18 INCH 7.75

13 FALSE PARAFFIN TEETH 1.1

90 LIGHTED LANTERNS 14.5

15 ASSORTED COSTUMES 10

9 CANDY CORN 1.35

6 PUMPKIN CANDY 1.45

87 PLASTIC SPIDERS 1.05

119 ASSORTED MASKS 4.95

  1. [10 points] Refer to Table 1. Write the statements which can provide the
  1. average cost of all the products
  2. count the number of items whose cost is greater than one and less than two
  3. Count the number of items whose cost is either between 10 and 15 (both inclusive) or between 3 and 8 (both inclusive).
  4. Count the number of items whose cost is either less than 5 or greater than 10.
  5. Maximum cost of all the products.
  6. Minimum cost of all the products.
  7. Sum cost of all the products.
  8. Nearest integer to the cost provided on the 3rd column.
  9. Truncate the value in the 3rd column.
  10. Find product IDs which are either 5 digits long or 3 digits long.

  1. [4 points] Add a fourth column on Table 1 and name it as STORES. Under this column, you can have the following list of entries stored.

PARTY CITY

TOYS R US

WALGREENS

WALMART

COSTCO

SAFEWAY

TRADER JOES

DOLLAR TREE

TARGET

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

Students also viewed these Databases questions