Problems to learn...

  • 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.

  • 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.

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • 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.

    --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.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • 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.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • 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".

  • 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 Loop

    Tally OH! An Improved SQL 8K “CSV Splitter” Function

    Splitting Strings Based on Patterns

    These will change the way you look at data. They'll also change your expectations you have for performance. Enjoy!

  • Here's a link to get you started on Gaps and Islands.

    The SQL of Gaps and Islands in Sequences [/url]

    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![/I]

    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?[/url]
    Since random numbers are too important to be left to chance, let's generate some![/url]
    Learn to understand recursive CTEs by example.[/url]
    [url url=http://www.sqlservercentral.com/articles/St

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply