Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Problems to learn... Expand / Collapse
Author
Message
Posted Saturday, December 21, 2013 3:25 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Thursday, September 18, 2014 10:49 PM
Points: 138, Visits: 389
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

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Thursday, September 18, 2014 7:50 PM
Points: 5,322, Visits: 25,235
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

Before posting a performance problem please read
Post #1525263
Posted Saturday, December 21, 2013 9:40 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 7:36 AM
Points: 35,218, Visits: 31,677
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."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #1525313
Posted Saturday, December 21, 2013 10:01 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 7:36 AM
Points: 35,218, Visits: 31,677
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."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #1525314
Posted Monday, December 23, 2013 6:04 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Thursday, September 18, 2014 10:49 PM
Points: 138, Visits: 389
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
Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Today @ 1:51 PM
Points: 3,999, Visits: 3,434
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!



Tally Tables - Performance Personified
String Splitting with True Performance
Best practices on how to ask questions
Post #1525524
Posted Monday, December 23, 2013 5:30 PM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Today @ 6:47 AM
Points: 3,418, Visits: 5,334
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!
Post #1525659
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse