Lab 8-1: KimTay Pet Supplies 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...


Lab 8-1: KimTay Pet Supplies





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.


IN SQL CODE.


CUSTOMER














































































































































































CUST_IDFIRST_NAMELAST_NAMEADDRESSCITYSTATEPOSTALEMAILBALANCECREDIT_LIMITREP_ID
125JoeySmith17 Fourth StCodyWY82414[email protected]80.68500.0005
182BillyRufton21 Simple CirGarlandWY82435[email protected]43.13750.0010
227SandraPincher53 Verde LnPowellWY82440[email protected]156.38500.0015
294SamanthaSmith14 Rock LnRalstonWY82440[email protected]58.60500.0010
314TomRascal1 Rascal Farm RdCodyWY82414[email protected]17.25250.0015
375MelanieJackson42 Blackwater WayElk ButteWY82433[email protected]252.25250.0005
435JamesGonzalez16 Rockway RdWapitiWY82450[email protected]230.401000.0015
492ElmerJackson22 Jackson Farm RdGarlandWY82435[email protected]45.20500.0010
543AngieHendricks27 Locklear LnPowellWY82440[email protected]315.00750.0005
616SallyCruz199 18th AveRalstonWY82440[email protected]8.33500.0015
721LeslieSmith123 Sheepland RdElk ButteWY82433[email protected]166.651000.0010
795RandyBlacksmith75 Stream RdCodyWY82414[email protected]61.50500.0005




INVOICES

















































INVOICE_NUMINVOICE_DATECUST_ID
142162021-11-15125
142192021-11-15227
142222021-11-16294
142242021-11-16182
142282021-11-18435
142312021-11-18125
142332021-11-18435
142372021-11-19616

Test Query


CALL GET_INVOICE_DATE('14219')


Expected Results















I_CUST_IDI_CUST_NAMEI_INVOICE_DATE
227Sandra Pincher2021-11-15



Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here