May 23, 2014 at 11:20 am
SQLRNNR (5/23/2014)
I disagree that this is an easy question. There may be two obviously correct options but there is a third option that is correct.Temp tables can be partitioned. With three correct answers and the question requesting a pick 2, it makes it hard to decided which 2 of 3 to pick.
Here is a rundown of the three options that are correct.
This is really awesome, sql wise. Thank you for the link.
(actually the correct people are wrong and some selected wrong people are actually right)
ww; Raghu
--
The first and the hardest SQL statement I have wrote- "select * from customers" - and I was happy and felt smart.
May 23, 2014 at 11:25 am
Raghavendra Mudugal (5/23/2014)
SQLRNNR (5/23/2014)
I disagree that this is an easy question. There may be two obviously correct options but there is a third option that is correct.Temp tables can be partitioned. With three correct answers and the question requesting a pick 2, it makes it hard to decided which 2 of 3 to pick.
Here is a rundown of the three options that are correct.
This is really awesome, sql wise. Thank you for the link.
You're welcome.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
May 23, 2014 at 12:56 pm
SQLRNNR (5/23/2014)
I disagree that this is an easy question. There may be two obviously correct options but there is a third option that is correct.Temp tables can be partitioned. With three correct answers and the question requesting a pick 2, it makes it hard to decided which 2 of 3 to pick.
Here is a rundown of the three options that are correct.
Wow. I'm surprised. I can't imagine what I would use it for, but it seems eminently reasonable for the feature to be available even tough until now I believed it wasn't.
Tom
May 23, 2014 at 12:57 pm
TomThomson (5/23/2014)
SQLRNNR (5/23/2014)
I disagree that this is an easy question. There may be two obviously correct options but there is a third option that is correct.Temp tables can be partitioned. With three correct answers and the question requesting a pick 2, it makes it hard to decided which 2 of 3 to pick.
Here is a rundown of the three options that are correct.
Wow. I'm surprised. I can't imagine what I would use it for, but it seems eminently reasonable for the feature to be available even tough until now I believed it wasn't.
Yeah it is kinda hard to figure out a possible use-case. But it is kinda cool and fun to play with at least. 😎
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
May 23, 2014 at 2:33 pm
SQLRNNR (5/23/2014)
TomThomson (5/23/2014)
SQLRNNR (5/23/2014)
I disagree that this is an easy question. There may be two obviously correct options but there is a third option that is correct.Temp tables can be partitioned. With three correct answers and the question requesting a pick 2, it makes it hard to decided which 2 of 3 to pick.
Here is a rundown of the three options that are correct.
Wow. I'm surprised. I can't imagine what I would use it for, but it seems eminently reasonable for the feature to be available even tough until now I believed it wasn't.
Yeah it is kinda hard to figure out a possible use-case. But it is kinda cool and fun to play with at least. 😎
Very nice post Jason. That script clearly demonstrates partitioning on a temp table. Saved that link to my favorites!:-D
I've been trying to think of why you would ever need to partition a temp table for the past few minutes....Nope. I have no idea why that would be useful.
May 23, 2014 at 2:43 pm
KWymore (5/23/2014)
SQLRNNR (5/23/2014)
TomThomson (5/23/2014)
SQLRNNR (5/23/2014)
I disagree that this is an easy question. There may be two obviously correct options but there is a third option that is correct.Temp tables can be partitioned. With three correct answers and the question requesting a pick 2, it makes it hard to decided which 2 of 3 to pick.
Here is a rundown of the three options that are correct.
Wow. I'm surprised. I can't imagine what I would use it for, but it seems eminently reasonable for the feature to be available even tough until now I believed it wasn't.
Yeah it is kinda hard to figure out a possible use-case. But it is kinda cool and fun to play with at least. 😎
Very nice post Jason. That script clearly demonstrates partitioning on a temp table. Saved that link to my favorites!:-D
I've been trying to think of why you would ever need to partition a temp table for the past few minutes....Nope. I have no idea why that would be useful.
Thanks, glad you enjoyed it.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
May 23, 2014 at 4:27 pm
Since Jason just proved that you can partition a temporary table, let's have a sub-Q0TD (no QoTD points for this):
Can you partition a table variable?
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
May 23, 2014 at 4:48 pm
Question changed and points awarded back as you can apparently partition a temp table: http://www.sqlservercentral.com/blogs/sqlrnnr/2014/05/23/can-you-partition-a-temporary-table/
May 23, 2014 at 5:31 pm
I was surprised to see so many people claim that this is an easy question, since there is a very glaring error - there is only one error.
But after reading the discussion I understand that the question was changed. Not for the better, though.
Local temporary tables are not visible to all sessions, only to the current session. Global temporary tables are visible to all sessions.
May 23, 2014 at 11:58 pm
Steve Jones - SSC Editor (5/23/2014)
Question changed and points awarded back as you can apparently partition a temp table: http://www.sqlservercentral.com/blogs/sqlrnnr/2014/05/23/can-you-partition-a-temporary-table/
Thanks Steve.
And by the way - thanks for continuing this feature and providing questions for us.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
May 24, 2014 at 7:54 am
TomThomson (5/23/2014)
Nice easy question. I was quite surprised to see that more than twice as many thought constraints were not allowed as thought indexes were not allowed, and also quite surprised that 30% got it wrong although. Maybe people don't much use temp tables?
might be that & now it`s 33% wrong answers :w00t:
Thanks & Best Regards,
Hany Helmy
SQL Server Database Consultant
May 24, 2014 at 8:06 am
SQLRNNR (5/23/2014)
I disagree that this is an easy question. There may be two obviously correct options but there is a third option that is correct.Temp tables can be partitioned. With three correct answers and the question requesting a pick 2, it makes it hard to decided which 2 of 3 to pick.
Here is a rundown of the three options that are correct.
+1 that third option has been removed already from the question when I first read it, obviously after Steve corrected it 🙂
Thanks & Best Regards,
Hany Helmy
SQL Server Database Consultant
May 24, 2014 at 8:15 am
SQLRNNR (5/23/2014)
Steve Jones - SSC Editor (5/23/2014)
Question changed and points awarded back as you can apparently partition a temp table: http://www.sqlservercentral.com/blogs/sqlrnnr/2014/05/23/can-you-partition-a-temporary-table/Thanks Steve.
And by the way - thanks for continuing this feature and providing questions for us.
And thank u Jason for correcting the question, also for the useful link, although I never experienced (or even heard about) a production case for partitioning temp tables.
Thanks & Best Regards,
Hany Helmy
SQL Server Database Consultant
May 24, 2014 at 9:42 am
Hany Helmy (5/24/2014)
SQLRNNR (5/23/2014)
Steve Jones - SSC Editor (5/23/2014)
Question changed and points awarded back as you can apparently partition a temp table: http://www.sqlservercentral.com/blogs/sqlrnnr/2014/05/23/can-you-partition-a-temporary-table/Thanks Steve.
And by the way - thanks for continuing this feature and providing questions for us.
And thank u Jason for correcting the question, also for the useful link, although I never experienced (or even heard about) a production case for partitioning temp tables.
Not sure there is one. I suspect this is a bug, and that the design was that this wouldn't be allowed.
May 24, 2014 at 10:18 am
Hany Helmy (5/24/2014)
SQLRNNR (5/23/2014)
Steve Jones - SSC Editor (5/23/2014)
Question changed and points awarded back as you can apparently partition a temp table: http://www.sqlservercentral.com/blogs/sqlrnnr/2014/05/23/can-you-partition-a-temporary-table/Thanks Steve.
And by the way - thanks for continuing this feature and providing questions for us.
And thank u Jason for correcting the question, also for the useful link, although I never experienced (or even heard about) a production case for partitioning temp tables.
Thanks
I'm not real sure there is a production use case.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
Viewing 15 posts - 16 through 30 (of 40 total)
You must be logged in to reply to this topic. Login to reply