Question: Considering the table below, please answer the following questions below. CREATE TABLE [dbo].[Vehicle_Registration]( [Registration_No] [varchar](20) NOT NULL, [Engine_No] [varchar](20) NULL, [Make] [varchar](20) NULL, [Owner_Name] [varchar](20)
Considering the table below, please answer the following questions below.
CREATE TABLE [dbo].[Vehicle_Registration](
[Registration_No] [varchar](20) NOT NULL,
[Engine_No] [varchar](20) NULL,
[Make] [varchar](20) NULL,
[Owner_Name] [varchar](20) NULL,
[Register_Amount] [numeric](18, 0) NULL,
[Date_Of_Registration] [date] NULL,
[Place_Of_Registration] [varchar](50) NULL,
CONSTRAINT [PK_Vehicle_Registration] PRIMARY KEY CLUSTERED
(
[Registration_No] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
Write a statement to create a procedure which accepts a location as input. The procedure should have two conditions. Firstly if the location is Windhoek, the registration amount should be increased with 50 and the increased value is printed, secondly if the location is Tsumeb the registration amount should be increased with 25 and the increased value is printed. Write a statement to invoke the procedure.
CAN I PLEASE GET THIS IN UNDER 20MINS I'LL REALLY APPRICIATE IT!!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
