Enhancing SQL Skills

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

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

  • Read books, articles, etc., from/by Itzik Ben-Gan. Excellent!

    SQL DBA,SQL Server MVP(07, 08, 09) A socialist is someone who will give you the shirt off *someone else's* back.

  • 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[/url]
    Learn Extended Events

  • 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) A socialist is someone who will give you the shirt off *someone else's* back.

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

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

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