SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Problems to learn...


Problems to learn...

Author
Message
vignesh.ms
vignesh.ms
SSC Eights!
SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)

Group: General Forum Members
Points: 824 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.
bitbucket-25253
bitbucket-25253
SSCoach
SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)

Group: General Forum Members
Points: 15543 Visits: 25280
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
Jeff Moden
Jeff Moden
SSC Guru
SSC Guru (212K reputation)SSC Guru (212K reputation)SSC Guru (212K reputation)SSC Guru (212K reputation)SSC Guru (212K reputation)SSC Guru (212K reputation)SSC Guru (212K reputation)SSC Guru (212K reputation)

Group: General Forum Members
Points: 212285 Visits: 41977
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.
If you think its expensive to hire a professional to do the job, wait until you hire an amateur. -- Red Adair

Helpful Links:
How to post code problems
How to post performance problems
Forum FAQs
Jeff Moden
Jeff Moden
SSC Guru
SSC Guru (212K reputation)SSC Guru (212K reputation)SSC Guru (212K reputation)SSC Guru (212K reputation)SSC Guru (212K reputation)SSC Guru (212K reputation)SSC Guru (212K reputation)SSC Guru (212K reputation)

Group: General Forum Members
Points: 212285 Visits: 41977
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.
If you think its expensive to hire a professional to do the job, wait until you hire an amateur. -- Red Adair

Helpful Links:
How to post code problems
How to post performance problems
Forum FAQs
vignesh.ms
vignesh.ms
SSC Eights!
SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)SSC Eights! (824 reputation)

Group: General Forum Members
Points: 824 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".
Ed Wagner
Ed Wagner
SSC-Forever
SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)

Group: General Forum Members
Points: 47901 Visits: 10844
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
dwain.c
dwain.c
SSCoach
SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)

Group: General Forum Members
Points: 17529 Visits: 6431
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search