Recent PostsRecent Posts Popular TopicsPopular Topics
 Home Search Members Calendar Who's On

 Problems to learn... Rate Topic Display Mode Topic Options
Author
 Message
 Posted Saturday, December 21, 2013 3:25 AM
 SSC-Enthusiastic Group: General Forum Members Last Login: Monday, July 6, 2015 1:28 AM Points: 188, Visits: 516
 Hi Guys...In my earlier post I have come to know about GROUPS AND ISLANDS problem.. Can you guys assist me some more problems & solutions like that to learn? that will be really helpful to handle circumstances .Thanks in advance.
Post #1525255
 Posted Saturday, December 21, 2013 8:41 AM
 SSCertifiable Group: General Forum Members Last Login: Sunday, January 4, 2015 7:55 AM Points: 5,333, Visits: 25,280
Post #1525263
 Posted Saturday, December 21, 2013 9:40 PM
 SSC-Forever Group: General Forum Members Last Login: Today @ 8:45 AM Points: 42,066, Visits: 39,447
Post #1525313
 Posted Saturday, December 21, 2013 10:01 PM
 SSC-Forever Group: General Forum Members Last Login: Today @ 8:45 AM Points: 42,066, Visits: 39,447
 vignesh.ms (12/21/2013)Hi Guys...In my earlier post I have come to know about GROUPS AND ISLANDS problem.. Can you guys assist me some more problems & solutions like that to learn? that will be really helpful to handle circumstances .Thanks in advance.It's called the "GAPS and ISLANDS" problem. I thought I'd tell you that because if "all" you want is problems with solutions to study from, then just lookup the term I just gave you and you'll find dozens if not hundreds of articles on the subject. Anything by Itzik Ben-Gan that you find will be incredibly rewarding. --Jeff Moden"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".First step towards the paradigm shift of writing Set Based code: Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column." Helpful Links:How to post code problemsHow to post performance problems
Post #1525314
 Posted Monday, December 23, 2013 6:04 AM
 SSC-Enthusiastic Group: General Forum Members Last Login: Monday, July 6, 2015 1:28 AM Points: 188, Visits: 516
 Jeff Moden (12/21/2013)bitbucket-25253 (12/21/2013)In the left most column of a this page, as you read my response click on the word Stairways and you will be rewarded with a series of links that can/will teach you a great deal about SQL Server.Unfortunately, there's very little advanced stuff on T-SQL itself in those series. I'm actually disappointed in how little the bread'n'butter of SQL Server has been covered there.I'm a newbie to the sql, so its some thing new to me even it may bread'n'butter to you.. I'm looking for something to study from you guys... the core is expectation is " Examples to train my mind to think in the T-SQL language".
Post #1525506
 Posted Monday, December 23, 2013 6:56 AM
 SSCrazy Eights Group: General Forum Members Last Login: Today @ 8:36 AM Points: 9,940, Visits: 9,338
 vignesh.ms (12/23/2013)Jeff Moden (12/21/2013)bitbucket-25253 (12/21/2013)In the left most column of a this page, as you read my response click on the word Stairways and you will be rewarded with a series of links that can/will teach you a great deal about SQL Server.Unfortunately, there's very little advanced stuff on T-SQL itself in those series. I'm actually disappointed in how little the bread'n'butter of SQL Server has been covered there.I'm a newbie to the sql, so its some thing new to me even it may bread'n'butter to you.. I'm looking for something to study from you guys... the core is expectation is " Examples to train my mind to think in the T-SQL language".If you have the basics down, then my recommendation would be to check out the following:The Tally Table and How it Replaces a LoopTally OH! An Improved SQL 8K “CSV Splitter” FunctionSplitting Strings Based on PatternsThese will change the way you look at data. They'll also change your expectations you have for performance. Enjoy!
Post #1525524
 Posted Monday, December 23, 2013 5:30 PM
 Hall of Fame Group: General Forum Members Last Login: Wednesday, February 24, 2016 6:28 AM Points: 3,977, Visits: 6,431
 Here's a link to get you started on Gaps and Islands.The SQL of Gaps and Islands in Sequences It's a pretty advanced topic though so some of the links provided earlier may serve you better, even though they have little to do with this topic. All of Itzik Ben-Gan's books are great help to beginners trying their hands on advanced topics. My mantra: No loops! No CURSORs! No RBAR! Hoo-uh!My thought question: Have you ever been told that your query runs too fast?My advice:INDEXing a poor-performing query is like putting sugar on cat food. Yeah, it probably tastes better but are you sure you want to eat it?The path of least resistance can be a slippery slope. Take care that fixing your fixes of fixes doesn't snowball and end up costing you more than fixing the root cause would have in the first place.Need to UNPIVOT? Why not CROSS APPLY VALUES instead?Since random numbers are too important to be left to chance, let's generate some!Learn to understand recursive CTEs by example.Splitting strings based on patterns can be fast!My temporal SQL musings: Calendar Tables, an Easter SQL, Time Slots and Self-maintaining, Contiguous Effective Dates in Temporal Tables
Post #1525659

 Permissions