Create function dept count(dept_name varchar(20)) begin declare d count integer; select count(*) into d count from instructor where instructor.dept_name= dept_name return d count; end
Return type missing
Dept_name is mismatched
Reference relation is not mentioned
All of the mentioned
For the function created in Question 1 ,which of the following is a proper select statement ?
SELECT dept name, budget FROM instructor WHERE dept COUNT() > 12;
SELECT dept name, budget FROM instructor WHERE dept COUNT(dept name) > 12;
SELECT dept name, budget WHERE dept COUNT(dept name) > 12;
SELECT dept name, budget FROM instructor WHERE dept COUNT(budget) > 12;
Which of he following is used to input the entry and give the result in a variable in a procedure ?
Put and get
Get and put
Out and In
In and out
Create procedure dept_count proc(in dept name varchar(20), out d count integer) begin select count(*) into d count from instructor where instructor.dept name= dept count proc.dept name end
Repeat sequence of statements; __________________ end repeat
While Condition
Until variable
Until boolean expression
Until 0
Which of the following is the correct format for if statement ?
If boolean expression then statement or compound statement elseif boolean expression then statement or compound statement else statement or compound statement end if
If boolean expression then statement or compound statement elsif boolean expression then statement or compound statement else statement or compound statement end if
If boolean expression then statement or compound statement elif boolean expression then statement or compound statement else statement or compound statement end if
If boolean expression then statement or compound statement else statement or compound statement else statement or compound statement end if
A stored procedure in SQL is a___________
Block of functions
Group of Transact-SQL statements compiled into a single execution plan.
Group of distinct SQL statements.
None of the mentioned
Temporary stored procedures are stored in _________ database.
Master
Model
User specific
Tempdb
DECLARE exit handler FOR OUT OF classroom seats BEGIN SEQUENCE OF statements END