Sale!

DBS 311 Lab 6 solution

Original price was: $35.00.Current price is: $30.00. $25.50

Category:

Description

5/5 - (11 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’)