• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

T-SQL question

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    Originally posted by k2p2 View Post
    Way back in the olden days, programmers designed queries, not DBAs.
    some of us are dedicated database developers, having said that, after a certain point knowledge of how to be a DBA is important as you need to know what is happening under the hood to really get the most out of a database.

    Originally posted by k2p2 View Post
    It is a different skill to designing code.
    Indeed, writing good SQL requires being able to think in terms of interacting sets of data rather than repeatable actions.
    Many a time I've rewritten other peoples code to remove cursor loops which although functionally correct are very inefficient and go against the whole ethos of SQL query writing. Typically a stored procedure which uses a cursor and takes 10 minutes to run can be rewritten as a single query which will run in a fraction of a second.

    Originally posted by k2p2 View Post
    Do they still teach students stuff like 3NF at college?
    I should hope so!

    Originally posted by k2p2 View Post
    It really is worth learning the basics of how indexes work and how to read a query execution plan - it will make a huge difference to how your queries run.
    Coffee's for closers

    Comment


      #32
      Originally posted by lightng View Post
      In the old SSADM days you had the luxury of designing up front. SSADM - I think I read about that in an old computer studies history e-book. :-P

      Most of my work involves changing requirements in an agile environment with dynamic requirements. Its not always ideal but thats the world we young 'uns who have just come out of college operate. The way the data is consumed and populated can change from iteration to iteration.

      Joking aside, the assumptions you make about my age are WILDLY inaccurate. If I wasn't such a cool and hip oldie, I would have probably found your comments mildly offensive, at least briefly, and then, I would have dismissed them as a product of senile dementia.
      The success of projects run using agile methodologies is predicated on having a team of highly skilled individuals who can not only gather requirements and design applications, but who will re-write code where they find it to be deficient. Dynamic requirements are no excuse young man.
      +50 Xeno Geek Points
      Come back Toolpusher, scotspine, Voodooflux. Pogle
      As for the rest of you - DILLIGAF

      Purveyor of fine quality smut since 2005

      CUK Olympic University Challenge Champions 2010/2012

      Comment


        #33
        Originally posted by Zippy View Post
        The success of projects run using agile methodologies is predicated on having a team of highly skilled individuals who can not only gather requirements and design applications, but who will re-write code where they find it to be deficient. Dynamic requirements are no excuse young man.
        Duly noted. Jeez I can't wait till I'm 23, so you lot will stop bullying me

        Comment


          #34
          Originally posted by lightng View Post
          Duly noted. Jeez I can't wait till I'm 23, so you lot will stop bullying me
          Oh stop blubbing lightng minor!
          +50 Xeno Geek Points
          Come back Toolpusher, scotspine, Voodooflux. Pogle
          As for the rest of you - DILLIGAF

          Purveyor of fine quality smut since 2005

          CUK Olympic University Challenge Champions 2010/2012

          Comment


            #35
            Originally posted by lightng View Post
            Joking aside, the assumptions you make about my age are WILDLY inaccurate. If I wasn't such a cool and hip oldie, I would have probably found your comments mildly offensive, at least briefly, and then, I would have dismissed them as a product of senile dementia.
            Sorry grandad (or grandma - no gender assumptions!) No offence meant. I wasn't making assumptions about your age, merely lamenting my own!

            Comment


              #36
              I find execution plans can be a bit hit and miss unless your really careful/clever with how you structure your SQL Statements.

              Comment


                #37
                Originally posted by k2p2 View Post
                Sorry grandad (or grandma - no gender assumptions!) No offence meant. I wasn't making assumptions about your age, merely lamenting my own!
                Eh up! By calling me a grandad or grandma, you are also making sexual orientation assumptions.

                Comment


                  #38
                  No great sql genius but using views is BAAD.

                  Works fine then the owner of the view asks for the view to be changed to restrict xyz data then your beautiful sql is broken and you have no idea how to fix it. You wrote it two years ago.

                  Indexing is your friend 10 times speed improvements very normal.

                  Take as little data as you need then work with it, the first cut is the deepest.
                  Always forgive your enemies; nothing annoys them so much.

                  Comment


                    #39
                    Originally posted by lightng View Post
                    Eh up! By calling me a grandad or grandma, you are also making sexual orientation assumptions.

                    You can be gay and still a grandparent (a few years marriage as a when you were young that resulted in children before you realised that men/women were not for you, or the same again for your partner)

                    HTH

                    Comment


                      #40
                      Originally posted by Ardesco View Post
                      You can be gay and still a grandparent (a few years marriage as a when you were young that resulted in children before you realised that men/women were not for you, or the same again for your partner)
                      OK, so there was a tiny hole in my statement. I just hope nobody brings up the turkey baster flaw too.

                      Comment

                      Working...
                      X