Viewing 15 posts - 136 through 150 (of 210 total)
thava (4/25/2014)
DECLARE @test-2 AS TABLE (Code nvarchar (2),Amt numeric(18, 0))
INSERT INTO @test-2
VALUES
('09',1000), ('09',12000), ('09',1300), ('09',1400), ('09',1500),
('10',2000), ('10',2100), ('10',2200), ('10',2300), ('10',2400),...
April 25, 2014 at 6:17 am
My solution as follows.
SELECT 'Type' Type
, col1 = [09]
, col2 = [10]
...
April 25, 2014 at 4:18 am
Hany Helmy (4/23/2014)
Had to do some quick searches to get it right, thanx.
+1
April 23, 2014 at 4:28 am
Interesting QOD. Learned today
April 11, 2014 at 6:00 am
Thank you Hugo Kornelis and TomThomson for the explanation
April 7, 2014 at 2:20 am
But i really dont understand one thing, tablesample is expecting 4 rows to return, but the result set is totally different, that too on different execution, the purpose of the...
April 3, 2014 at 11:35 pm
My point is, for the given question it returns 5 rows, so answer is 5 🙂
April 3, 2014 at 12:14 am
when we are specifying high range of rows nearing to the exact no of rows then it will return all the rows of the table
like , in the QOD
we have...
April 3, 2014 at 12:02 am
For the given example it returns exactly 5 rows, tablesample option might give different output if the table has more no of rows. :unsure:
April 2, 2014 at 11:37 pm
Please give column names in the insert statement
Like
SET IDENTITY_INSERT SecuritySettings ON
INSERT INTO SecuritySettings ( col1,col2,col3 etc.,)
SELECTSecuritySettingsId,
UserGroup,
SecurityNodesId,
Allowed,
SecurityType,
Created,
CreatedBy,
LastModified,
LastModifiedBy
FROM SecuritySettingsBAK;
March 20, 2014 at 1:04 pm
Thanks for the question.
You have given a hint in QOD to select one option out of 3.
--CLEANUP:
--use master
--drop database xSchemingFun
--drop login qodschemingfun
The above hint tells that database and login...
March 12, 2014 at 12:12 am
Viewing 15 posts - 136 through 150 (of 210 total)