Sale!

DBS311 Lab 6 solution

$30.00 $18.00

Original Work ?

Download Details:

  • Name: Lab-06-ymq9k9.zip
  • Type: zip
  • Size: 265.79 KB

Category: You will Instantly receive a download link upon Payment||Click Original Work Button for Custom work

Description

5/5 - (4 votes)
  1. Write a stored procedure that processes the CUSTOMER table reporting on the number of customers in each country that exceed the number passed to the procedure. For the example below, Australia with a count of 5 customers is not included in the output. Your procedure should include a COUNTRYIN CHAR(15) and a TOTALCUST NUMBER variable that is loaded with the appropriate country and country total for each line of output. Use %Rowcount to determine the number of rows returned. (5 marks)

 

  1. Use two while loops in a procedure with the following results. If anything else is passed, do not execute the loops.

(5 marks)

EXECUTE MYWHILELOOPS(‘E’)

 

EXECUTE MYWHILELOOPS(‘O’)

 

 

EXECUTE MYWHILELOOPS(‘W’)