Create a stored procure and execution part also needed. Stored Procedure Name Brief Description Input Parameters Output
Fantastic news! We've Found the answer you've been seeking!
Question:
Create a stored procure and execution part also needed.
Transcribed Image Text:
Stored Procedure Name Brief Description Input Parameters Output Parameters Functionality Return Values usp_RegisterUser This procedure is used to insert the details of a customer into the table 'tbl_User' by performing the necessary validations based on the business requirements UserId UserName, User Password, Gender, Emailld, DateOfBirth, Address Error Number, ErrorMessage Check if all the input parameters except address are not null Check if the User Id contains minimum of 4 and maximum 40 characters Check if the length of the password contains minimum 8 and maximum 15 characters . . . Check if the age of customer is at least 18 years . If all the validations are successful, fetch the RoleID for the role 'Customer' Insert a record into the table 'tbl_User' with the appropriate values • • In case of any exception, return the error number and the error message ● 1 in case of successful insertion Check if the gender is 'F' or 'M' Check if the date of birth is less than current date ● -1 if UserId is null ● . . -2 if UserName is null -3 if UserPassword is null -4 if Gender is null -5 if DateofBirth is null -6 if the length of User Id is invalid -7 if the length of password is invalid -8 if gender is invalid -9 if date of birth is not less than current date + 140 % Stored Procedure Name Brief Description Input Parameters Output Parameters Functionality Return Values usp_RegisterUser This procedure is used to insert the details of a customer into the table 'tbl_User' by performing the necessary validations based on the business requirements UserId UserName, User Password, Gender, Emailld, DateOfBirth, Address Error Number, ErrorMessage Check if all the input parameters except address are not null Check if the User Id contains minimum of 4 and maximum 40 characters Check if the length of the password contains minimum 8 and maximum 15 characters . . . Check if the age of customer is at least 18 years . If all the validations are successful, fetch the RoleID for the role 'Customer' Insert a record into the table 'tbl_User' with the appropriate values • • In case of any exception, return the error number and the error message ● 1 in case of successful insertion Check if the gender is 'F' or 'M' Check if the date of birth is less than current date ● -1 if UserId is null ● . . -2 if UserName is null -3 if UserPassword is null -4 if Gender is null -5 if DateofBirth is null -6 if the length of User Id is invalid -7 if the length of password is invalid -8 if gender is invalid -9 if date of birth is not less than current date + 140 %
Expert Answer:
Answer rating: 100% (QA)
The image provided appears to show a set of requirements for a stored procedure named uspRegisterUser This stored procedure is intended to insert the details of a customer into a table named tblUser a... View the full answer
Related Book For
Principles Of Information Security
ISBN: 9780357506431
7th Edition
Authors: Michael E. Whitman, Herbert J. Mattord
Posted Date:
Students also viewed these databases questions
-
2. There are two kinds of people, who are those with college degrees and those without college degrees. Assume that they are all white-collar workers. The wage status is described in Table 1. Table...
-
Emerson Electric Company was founded in 1890 as a manufacturer of motors and fans. In 1993, Emerson marked its thirty-sixth consecutive year of improved earnings per share. On $8.2 billion sales, the...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
Preparing and interpreting a statement of cash flows using a T-account work sheet. Financial statement data for Dickerson Manufacturing Company for the current year appear in Exhibit 5.29. Additional...
-
In a manufacturing process, a long coated plastic rod (p = 2200 kg/m J c = 800 J/kg K, k =1 W/m K) of diameter D = 20 mm is initially at a uniform temperature of 25C and is suddenly exposed to a...
-
Anthem Co. has 100,000 shares authorized, 90,000 shares issued, and 20,000 shares of treasury stock. Determine the number of shares outstanding.
-
Height, Weight, and BodyFat Figure 2.87 shows a bubble plot of height, weight, and body fat percentage for a sample of $100 \mathrm{men}$, from the dataset BodyFat. The body fat percentage is...
-
Josh Borke recorded the following transactions during the month of April. Post these entries to the Cash T-account of the general ledger to determine the ending balance in cash. The beginning balance...
-
What strategies does Lean Management employ to empower employees through skill development, cross-functional training, and collaborative problem-solving initiatives? Explain
-
John and Nina Hartwick, married 17 years, have a 13-year-old daughter. Eight years ago, they purchased a home on which they owe about $240,000. They also owe $6,000 on a two-year-old automobile. All...
-
Use the geometric mean, not the arithmetic mean in calculating the average return. Perform analysis for all relevant variables, unless the assets / series are specified. 1. Using the total returns,...
-
Use estimation to select the best response in Problems 7-24. Do not calculate. A reasonable APR to pay for a 3 -year installment loan is A. \(1 \%\) B. \(12 \%\) C. \(32 \%\)
-
Find the present value of the ordinary annuities in Problems 21-32. Amount of Deposit m 28. $400 Frequency n quarterly Rate r 11% Time t 20 yr
-
Use a calculator to evaluate an ordinary annuity formula \[A=m\left[\frac{\left(1+\frac{r}{n}ight)^{n t}-1}{\frac{r}{n}}ight]\] for \(m, r\), and \(t\) (respectively) given in Problems 7-22. Assume...
-
Explain summation notation.
-
a. Find the first three terms of the sequences whose nth terms are given. b. Classify the sequence as arithmetic (give d), geometric (give r), both, or neither. \(s_{n}=\frac{2}{3}\)
-
2POCl3(g)?2PCl3(g)+O2(g), ? H ?=572 kJ,? S ?=179 J/K At what temperature (if any) would the decomposition of POCl3become spontaneous?
-
l ask this second time correnct answer is 38,01 can we look pls Consider a non-conducting rod of length 8.8 m having a uniform charge density 4.5 nC/m. Find the electric potential at P, a...
-
I. Compose a monitoring, escalation, and incident response process with information provided in the text. Understand that the basic function of the external monitoring process is to monitor activity,...
-
I. Define the concept of Wired Equivalent Privacy (WEP) and how it applies to information security systems and cryptography. WEP was an early attempt to provide security with the 8002.11 network...
-
Explain that this is a new practice in the workplace, which can assist with some of the busywork policy managers have to deal with. Outline that automation streamlines the repetitive steps of writing...
-
a. Suppose that General Hospital has a current ratio of 0.5. Which of the following actions would improve (increase) this ratio? Use cash to pay off current liabilities. Collect some of the current...
-
What is the role of internal control in an organization?
-
What are the elements and principles of the COSO framework?
Study smarter with the SolutionInn App