Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Given the following statements that declare a local variable and set its value, which of the following will cause an error? DECLARE @Example1 varchar(128); SET
Given the following statements that declare a local variable and set its value, which of the following will cause an error?
DECLARE @Example1 varchar(128);
SET @Example1 = 'Invoices';
a) PRINT 'Table name is: ' + @Example1;
b)IF @Example1 = 'Invoices'
SELECT * FROM Invoices;
(c) SELECT *
FROM sys.tables
WHERE name = @Example1;
(d) SELECT *
FROM @Example1;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started