Question:Analyze the following code which uses the TOP clause of SQL Server 2008:
USE Person
GO
DECLARE @p AS int
SELECT @p=10
SELECT TOP(@p)
FROM Employee
GO
What Will be the output of the above code? 

A No output is displayed. 

B A list of first 10 employees is displayed from the Person database. 

C An incorrect syntax error is displayed. 

D None of these. 

+ Answer
+ Report
Total Preview: 448

Copyright © 2024. Powered by Intellect Software Ltd