Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

List the item ID as ITEM_ID and description as ITEM_DESC for all items. The descriptions should appear in uppercase letters. Task 2: List the customer

List the item ID as ITEM_ID and description as ITEM_DESC for all items. The descriptions should appear in uppercase letters.

Task 2: List the customer ID and first and last names for all customers located in the city of Cody. Your query should ignore case. For example, a customer with the city Cody should be included, as should customers whose city is CODY, cody, cOdY, and so on.


Task 3: List the customer ID, first and last names, and balance for all customers. The balance should be rounded to the nearest dollar.

Task 4: KimTay Pet Supplies is running a promotion that is valid for up to 20 days after an order is placed. List the INVOICE_NUM, CUST_ID, FIRST_NAME, LAST_NAME, INVOICE_DATE, and the promotion date for each invoice as PROMOTION_DATE. The promotion date is 20 days after the INVOICE_DATE was placed.

Task 5: Create the GET_CREDIT_LIMIT procedure to obtain the full name and credit limit of the customer whose ID currently is stored in I_CUST_ID. Place these values in the variables I_CUSTOMER_NAME and I_CREDIT_LIMIT, respectively. When the procedure is called it should output the contents of I_CUSTOMER_NAME and I_CREDIT_LIMIT.


Task 6: Create the GET_INVOICE_DATE procedure to obtain the customer ID, first and last names of the customer, and the invoice date for the invoice whose number currently is stored in I_INVOICE_NUM. Place these values in the variables I_CUST_ID, I_CUST_NAME, and I_INVOICE_DATE respectively. When the procedure is called it should output the contents of I_CUST_ID, I_CUST_NAME, and I_INVOICE_DATE.

Step by Step Solution

3.39 Rating (155 Votes )

There are 3 Steps involved in it

Step: 1

Task 1 To list the item ID as ITEMID and the description as ITEMDESC for all items with the descriptions in uppercase letters you can use SQL syntax Assuming you have a table named items with columns ... 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_2

Step: 3

blur-text-image_3

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

Systems Analysis And Design

Authors: Alan Dennis, Barbara Haley Wixom, Roberta M. Roth

6th Edition

1118897846, 978-1118897843

More Books

Students explore these related Databases questions

Question

What are the role of supervisors ?

Answered: 3 weeks ago