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


Enhancing SQL Skills


Enhancing SQL Skills

Author
Message
npatel 17252
npatel 17252
SSC Rookie
SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)

Group: General Forum Members
Points: 29 Visits: 65
So I feel that I can write in general now any query for a report that my company would require of me.

However I would like to be able to write better and faster queries. And just overall be able to know all the nuances of SQL.

How would I go about that?
podmate
podmate
SSC Veteran
SSC Veteran (264 reputation)SSC Veteran (264 reputation)SSC Veteran (264 reputation)SSC Veteran (264 reputation)SSC Veteran (264 reputation)SSC Veteran (264 reputation)SSC Veteran (264 reputation)SSC Veteran (264 reputation)

Group: General Forum Members
Points: 264 Visits: 946
I would start by reading many of the old posts/articles/stairways on this site.
I have been a DBD/artichect for ~ 15 years and I still manage to learn some new trick/syntax/way of thinking from one or more of the posters on this site at least weekly.

I also try and go to a few of the blogs/sites from some of the top posters (or at least the posters that I learn the most from) a few times per month to see if they posted anything interesting.

It sounds like you are a developer. If so, it would do you worlds of good to read up about what DBA's do.
IMHO, having a good understanding of what your teammates (DBA's, artichect's, developers) do will help you write more efficient code for your system.

Finally, pick an area of SQL that you don't have much knowledge in and work to understand and master it.
ScottPletcher
ScottPletcher
SSCrazy Eights
SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)

Group: General Forum Members
Points: 8022 Visits: 7163
Read books, articles, etc., from/by Itzik Ben-Gan. Excellent!

SQL DBA,SQL Server MVP(07, 08, 09)[size=2]Prosecutor James Blackburn, in closing argument in the Fatal Vision murders trial: If in the future, you should cry a tear, cry one for them [the murder victims]. If in the future, you should say a prayer, say one for them. And if in the future, you should light a candle, light one for them.[/size]
SQLRNNR
SQLRNNR
SSC-Dedicated
SSC-Dedicated (32K reputation)SSC-Dedicated (32K reputation)SSC-Dedicated (32K reputation)SSC-Dedicated (32K reputation)SSC-Dedicated (32K reputation)SSC-Dedicated (32K reputation)SSC-Dedicated (32K reputation)SSC-Dedicated (32K reputation)

Group: General Forum Members
Points: 32888 Visits: 18560
ScottPletcher (7/18/2014)
Read books, articles, etc., from/by Itzik Ben-Gan. Excellent!


That is a good idea there.


Another good source of material is the SQL Saturday events. There is good material with all sorts of gems from different presenters at those events.



Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server, MVP


SQL RNNR

Posting Performance Based Questions - Gail Shaw

ScottPletcher
ScottPletcher
SSCrazy Eights
SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)SSCrazy Eights (8K reputation)

Group: General Forum Members
Points: 8022 Visits: 7163
One very specific no-no that I still see all the time:

Never use ISNULL() or NULLIF() in a WHERE clause or JOIN.

You should avoid any functions against columns whenever possible (because of "SARGability"), but on rare occasions it's not possible. However, you can always avoid using ISNULL(), and you should.

SQL DBA,SQL Server MVP(07, 08, 09)[size=2]Prosecutor James Blackburn, in closing argument in the Fatal Vision murders trial: If in the future, you should cry a tear, cry one for them [the murder victims]. If in the future, you should say a prayer, say one for them. And if in the future, you should light a candle, light one for them.[/size]
Ed Wagner
Ed Wagner
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16832 Visits: 10084
This site has a lost of forum posts you can learn from. Reading them yields different approaches to a problem you might not think of yourself. SQL Saturday events are a great free events. The schedule is at http://www.sqlsaturday.com/. I don't know where you're located, but you may have a local PASS chapter near you where you can attend presentations.

Of particular interest to me:

Strings, Splits and Such
If you haven't done so yet, check out Jeff Moden's article on Tally Tables at http://www.sqlservercentral.com/articles/T-SQL/62867/. You'll find new uses for it constantly.
The next one to check out is the DelimitedSplit8K article at http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Dwain Camps has an article on Pattern-Based splitting at http://www.sqlservercentral.com/articles/String+Manipulation/94365/.

Books
For a wide variety of topics, check out the SQL Server MVP Deep Dives. There are two of them and you can find them on Amazon.
Grant Fritchey's book on Execution Plans is excellent and is available for free at http://www.sqlservercentral.com/articles/books/65831/.
In fact, there are a lot of good books listed at http://www.sqlservercentral.com/Books/.

I could go on an on about different authors, but there are an awful lot of them.


Tally Tables - Performance Personified
String Splitting with True Performance
Best practices on how to ask questions
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