Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. A small Twist in career

A small Twist in career

Scheduled Pinned Locked Moved The Lounge
databasetoolsperformancequestioncareer
19 Posts 9 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C CodeWraith

    Repeat after me:

    SELECT * FROM
    someting AS st INNER JOIN
    somethingelse AS se ON se.SomethingId = st.Id

    Shirley this already brought it all back, right? :-)

    I have lived with several Zen masters - all of them were cats.

    OriginalGriffO Offline
    OriginalGriffO Offline
    OriginalGriff
    wrote on last edited by
    #4

    Arrrgh! NOOOOO!

    SELECT st.TingOne, st.TingTwo, se.TingThree FROM
    someting AS st INNER JOIN
    somethingelse AS se ON se.SomethingId = st.Id

    :laugh:

    Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

    "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
    "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

    1 Reply Last reply
    0
    • S super

      As a never ending twist and turns in my career, I have been asked to work on Sql queries ( only Select to populate data and copy in excel). I worked on it like 15 years back and never touched sql script. So any links or online resource to brush up my memory?

      cheers,

      Super

      ------------------------------------------ Too much of good is bad,mix some evil in it

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #5

      W3Schools cover it all, but can be a bit "brick wall" from time to time. This is OK: SQL Tutorial - Learn SQL Query Programming Language[^] And there are some very handy bits added in the last 15 years such as LEAD and LAG which give you access to the next and previous row in a dataset.

      Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      L 1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        W3Schools cover it all, but can be a bit "brick wall" from time to time. This is OK: SQL Tutorial - Learn SQL Query Programming Language[^] And there are some very handy bits added in the last 15 years such as LEAD and LAG which give you access to the next and previous row in a dataset.

        Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #6

        OriginalGriff wrote:

        And there are some very handy bits added in the last 15 years such as LEAD and LAG

        be careful though, some people haven't upgraded for even longer, others, dare I say it, use access

        Installing Signature... Do not switch off your computer.

        L 1 Reply Last reply
        0
        • L Lost User

          OriginalGriff wrote:

          And there are some very handy bits added in the last 15 years such as LEAD and LAG

          be careful though, some people haven't upgraded for even longer, others, dare I say it, use access

          Installing Signature... Do not switch off your computer.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #7

          Some of us happen to like the SQL92 standard, as it is available for most databases. Makes your queries a bit more portable :)

          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

          L 1 Reply Last reply
          0
          • L Lost User

            Try typing "SQL SELECT" into Google.

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #8

            select * from google

            ... About 1,040,000,000 results (0.50 seconds)

            pfffft, is that all they have? disappointing!

            Installing Signature... Do not switch off your computer.

            1 Reply Last reply
            0
            • L Lost User

              Some of us happen to like the SQL92 standard, as it is available for most databases. Makes your queries a bit more portable :)

              Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #9

              Eddy Vluggen wrote:

              ome of us happen to like the SQL92 standard, as it is available for most databases. Makes your queries a bit more portable :)

              yup, I'm one of those too, standard, portable, readable. ...in fact didn't know what LEAD and LAG was till OG mentioned it in this thread - had to google it, and 90% of my work involves SQL databases - a lot lately on FireBird 1.5 which is old, has almost no extensions, but it is SQL92, and that's all that matters.

              Installing Signature... Do not switch off your computer.

              OriginalGriffO L 2 Replies Last reply
              0
              • S super

                As a never ending twist and turns in my career, I have been asked to work on Sql queries ( only Select to populate data and copy in excel). I worked on it like 15 years back and never touched sql script. So any links or online resource to brush up my memory?

                cheers,

                Super

                ------------------------------------------ Too much of good is bad,mix some evil in it

                E Offline
                E Offline
                Eytukan
                wrote on last edited by
                #10

                SQL Tutorial[^]

                Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy Falcon.

                1 Reply Last reply
                0
                • S super

                  As a never ending twist and turns in my career, I have been asked to work on Sql queries ( only Select to populate data and copy in excel). I worked on it like 15 years back and never touched sql script. So any links or online resource to brush up my memory?

                  cheers,

                  Super

                  ------------------------------------------ Too much of good is bad,mix some evil in it

                  J Offline
                  J Offline
                  Jorgen Andersson
                  wrote on last edited by
                  #11

                  Assuming SQL Server, SQL Server Tutorial[^]

                  Wrong is evil and must be defeated. - Jeff Ello

                  1 Reply Last reply
                  0
                  • L Lost User

                    Eddy Vluggen wrote:

                    ome of us happen to like the SQL92 standard, as it is available for most databases. Makes your queries a bit more portable :)

                    yup, I'm one of those too, standard, portable, readable. ...in fact didn't know what LEAD and LAG was till OG mentioned it in this thread - had to google it, and 90% of my work involves SQL databases - a lot lately on FireBird 1.5 which is old, has almost no extensions, but it is SQL92, and that's all that matters.

                    Installing Signature... Do not switch off your computer.

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #12

                    Lopatir wrote:

                    yup, I'm one of those too, standard, portable, readable.

                    Not as sexy as the cloud, but plain and boring - which is a good thing sometimes :)

                    Lopatir wrote:

                    it is SQL92, and that's all that matters

                    Not all, but most; if you're programming directly against a specific database-provider you'd still have a lot of database-specific code. If you program against the interfaces and you use SQL92, then changing the type of database should not be much of a problem. In that case, any database that has a database-provider in .NET and is SQL92-compliant will work. It's the difference between telling the customer that you use "database X, version Y" and telling the customer "any SQL92 DB you like or have".

                    Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

                    1 Reply Last reply
                    0
                    • L Lost User

                      Eddy Vluggen wrote:

                      ome of us happen to like the SQL92 standard, as it is available for most databases. Makes your queries a bit more portable :)

                      yup, I'm one of those too, standard, portable, readable. ...in fact didn't know what LEAD and LAG was till OG mentioned it in this thread - had to google it, and 90% of my work involves SQL databases - a lot lately on FireBird 1.5 which is old, has almost no extensions, but it is SQL92, and that's all that matters.

                      Installing Signature... Do not switch off your computer.

                      OriginalGriffO Offline
                      OriginalGriffO Offline
                      OriginalGriff
                      wrote on last edited by
                      #13

                      I don't worry too much about portable - I just make sure I develop using the same version of SQL as the target production system: so currently SQL 2012 SP1.

                      Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

                      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                      L 1 Reply Last reply
                      0
                      • OriginalGriffO OriginalGriff

                        I don't worry too much about portable - I just make sure I develop using the same version of SQL as the target production system: so currently SQL 2012 SP1.

                        Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #14

                        It is hardly a worry; but as good as MSSQL 2012 is, it still is a vendor lock in. Not a vendor that is likely to go bankrupt, but stranger things have happened. For using a bit less fewer new features, you get flexibility in return.

                        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

                        OriginalGriffO 1 Reply Last reply
                        0
                        • L Lost User

                          It is hardly a worry; but as good as MSSQL 2012 is, it still is a vendor lock in. Not a vendor that is likely to go bankrupt, but stranger things have happened. For using a bit less fewer new features, you get flexibility in return.

                          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

                          OriginalGriffO Offline
                          OriginalGriffO Offline
                          OriginalGriff
                          wrote on last edited by
                          #15

                          This is true, but ... even if MS went bust tomorrow, SQL server will keep on working - and there would be much more pressing matters than replacing it in a hurry! :laugh:

                          Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

                          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                          L 1 Reply Last reply
                          0
                          • S super

                            As a never ending twist and turns in my career, I have been asked to work on Sql queries ( only Select to populate data and copy in excel). I worked on it like 15 years back and never touched sql script. So any links or online resource to brush up my memory?

                            cheers,

                            Super

                            ------------------------------------------ Too much of good is bad,mix some evil in it

                            K Offline
                            K Offline
                            KarstenK
                            wrote on last edited by
                            #16

                            A nice and informative article about SQL. Print out the last picture for framing :rolleyes:

                            Press F1 for help or google it. Greetings from Germany

                            1 Reply Last reply
                            0
                            • OriginalGriffO OriginalGriff

                              This is true, but ... even if MS went bust tomorrow, SQL server will keep on working - and there would be much more pressing matters than replacing it in a hurry! :laugh:

                              Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

                              L Offline
                              L Offline
                              Lost User
                              wrote on last edited by
                              #17

                              it's not so much ms going bust as compared to if they keep doing what they do... they do have a history of changing the way things work, for instance ie, once upon a time css had to test for ff vs ie, but then ms upped the ante by changing their own difference, so then there were tests not only for ie, but which version of ie. What this means if you use their non standard features: you've put a bunch of code out to clients, along comes a new version of whatever you're using from ms, some clients upgrade, some don't - your code breaks in some places but not others. in fact it'd almost be a good thing if ms went bust, at least they would no longer be changing stuff depending on which way nads farts are blowing, including still breaking their own staff regardless it works or not.

                              Installing Signature... Do not switch off your computer.

                              1 Reply Last reply
                              0
                              • S super

                                As a never ending twist and turns in my career, I have been asked to work on Sql queries ( only Select to populate data and copy in excel). I worked on it like 15 years back and never touched sql script. So any links or online resource to brush up my memory?

                                cheers,

                                Super

                                ------------------------------------------ Too much of good is bad,mix some evil in it

                                K Offline
                                K Offline
                                kmoorevs
                                wrote on last edited by
                                #18

                                Check out some of Sander's articles. Very good for brushing up. :) Sorry, I don't have links, but assume you know who I'm referring to.

                                "Go forth into the source" - Neal Morse

                                1 Reply Last reply
                                0
                                • S super

                                  As a never ending twist and turns in my career, I have been asked to work on Sql queries ( only Select to populate data and copy in excel). I worked on it like 15 years back and never touched sql script. So any links or online resource to brush up my memory?

                                  cheers,

                                  Super

                                  ------------------------------------------ Too much of good is bad,mix some evil in it

                                  J Offline
                                  J Offline
                                  JChrisCompton
                                  wrote on last edited by
                                  #19

                                  In general SQL Server Central [^] no matter what your expertise / level. They have a log of good 'stairways' you can start with the Stairway to T-SQL DML – a SQL Server tutorial[^] DML == Data Manipulation Language (the aspect of the language dealing with the data: SELECT, INSERT, UPDATE and DELETE) I'd recommend you review all of DML, not just select... but that's my opinion. HTH, -Chris C.

                                  1 Reply Last reply
                                  0
                                  Reply
                                  • Reply as topic
                                  Log in to reply
                                  • Oldest to Newest
                                  • Newest to Oldest
                                  • Most Votes


                                  • Login

                                  • Don't have an account? Register

                                  • Login or register to search.
                                  • First post
                                    Last post
                                  0
                                  • Categories
                                  • Recent
                                  • Tags
                                  • Popular
                                  • World
                                  • Users
                                  • Groups