Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Cape Codd Database Table Structure: (Tables & Fields) Catalog_SKU_2016 Catalog_SKU_2017 CatalogID (PK, int, not null) SKU (int, not null) SKU_Description (char(35), not null) Department (char(30),

image text in transcribed

image text in transcribed

Cape Codd Database Table Structure: (Tables & Fields) Catalog_SKU_2016 Catalog_SKU_2017 CatalogID (PK, int, not null) SKU (int, not null) SKU_Description (char(35), not null) Department (char(30), not null) CatalogPage (int, null) DateOn Web Site (date, null) CatalogID (PK, int, not null) SKU (int, not null) SKU_Description (char(35), not null) Department (char(30), not null) CatalogPage (int, null) DateOnWebSite (date, null) Catalog_SKU_2018 CatalogID (PK, int, not null) SKU (int, not null) SKU_Description (char(35), not null) Department (char(30), not null) CatalogPage (int, null) DateOnWebSite (date, null) ORDER_ITEM RETAIL_ORDER INVENTORY WarehouseID (PK, FK, int, not null) ? SKU FK, int, not null) SKU_Description (char(35), not null) QuantityOnHand (int, null) QuantityOnOrder (int, null) OrderNumber (PK, FK, int, not null) SKU (PK, FK, int, not null) Quantity (int, not null) Price (money, not null) ExtendedPrice (money, not null) ? OrderNumber (PK, int, not null) StoreNumber (int, null) Store Zip (char(9), null) Order Month (char(12), not null) OrderYear (int, not null) OrderTotal (money, null) SKU_DATA WAREHOUSE ? SKU (PK, int, not null) SKU_Description (char(35), not null) Department (char(30), not null) Buyer (char(35), null) WarehouseID (PK, int, not null) WarehouseCity (char(30), not null) WarehouseState (char(2), not null) Manager (char(35), null) Square Feet (int, null) Pirate Toy Store Tables (Tables & Fields) CUSTOMER INVOICE INVOICE_ITEM CustomerID (PK, int, not null) FirstName (char(25), not null) LastName (char(25), not null) Phone (char(12), not null) Email (char(100), null) InvoiceNumber (PK, int, not null) CustomerNumber (FK, int, not null) SaleDate (datetime, not null) TotalAmount (numeric(8,2), null) InvoiceNumber (PK, FK, int, not null) Item Number (PK, int, not null) Item (char(50), not null) Quantity (int, not null) UnitPrice (numeric(8,2), null) 6. Write an SQL statement to display the Order Number and the sum of Extendederice, grouped and sorted by Order Number: Name the sum of ExtendedPrice as TotalOrdered, 1 2 3 Order Number TotalOrdered 1000 430.00 2000 300.00 3000 450.00

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

Advances In Databases And Information Systems 14th East European Conference Adbis 2010 Novi Sad Serbia September 2010 Proceedings Lncs 6295

Authors: Barbara Catania ,Mirjana Ivanovic ,Bernhard Thalheim

2010th Edition

3642155758, 978-3642155758

More Books

Students also viewed these Databases questions