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. Database & SysAdmin
  3. Database
  4. Complex SQL queries

Complex SQL queries

Scheduled Pinned Locked Moved Database
databasetutorialquestioncode-review
9 Posts 5 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.
  • D Offline
    D Offline
    data modeling guy
    wrote on last edited by
    #1

    Hello- can you give me any example scenarios/questions for writing a complex SELECT statements? My intention is to improve my SQL skills.

    L P J 4 Replies Last reply
    0
    • D data modeling guy

      Hello- can you give me any example scenarios/questions for writing a complex SELECT statements? My intention is to improve my SQL skills.

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

      Start at http://www.w3schools.com/sql/[^].

      D 1 Reply Last reply
      0
      • D data modeling guy

        Hello- can you give me any example scenarios/questions for writing a complex SELECT statements? My intention is to improve my SQL skills.

        P Online
        P Online
        PIEBALDconsult
        wrote on last edited by
        #3

        Sure, try implementing a Turing Machine in SQL.

        You'll never get very far if all you do is follow instructions.

        D 1 Reply Last reply
        0
        • D data modeling guy

          Hello- can you give me any example scenarios/questions for writing a complex SELECT statements? My intention is to improve my SQL skills.

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

          data modeling guy wrote:

          Hello- can you give me any example scenarios/questions for writing a complex SELECT statements? My intention is to improve my SQL skills.

          • Calculate reputation points of a user.
          • Fetch the contibutions-section for a user (see the section on your user-page; it contains some statistics)
          • Fetch the ten members from the database that answered most questions last month.
          • Fetch the voting-percentages for the straw-poll result for all possible answers.
          • Fetch any low-repuation member that posts the same message in multiple places, ordered by the amount of similar messages.
          • Fetch the data to show the forum-content for page 3 of this forum, in threaded view, with 50 posts per page.

          :rolleyes:

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

          M D 2 Replies Last reply
          0
          • L Lost User

            data modeling guy wrote:

            Hello- can you give me any example scenarios/questions for writing a complex SELECT statements? My intention is to improve my SQL skills.

            • Calculate reputation points of a user.
            • Fetch the contibutions-section for a user (see the section on your user-page; it contains some statistics)
            • Fetch the ten members from the database that answered most questions last month.
            • Fetch the voting-percentages for the straw-poll result for all possible answers.
            • Fetch any low-repuation member that posts the same message in multiple places, ordered by the amount of similar messages.
            • Fetch the data to show the forum-content for page 3 of this forum, in threaded view, with 50 posts per page.

            :rolleyes:

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

            M Offline
            M Offline
            Mycroft Holmes
            wrote on last edited by
            #5

            No no no these suggestions expect him to do the work and write the queries, it sounds like he wants YOU to write the queries and he will study them. Good luck getting CM to lend out the database and schema :laugh:

            Never underestimate the power of human stupidity RAH

            1 Reply Last reply
            0
            • L Lost User

              Start at http://www.w3schools.com/sql/[^].

              D Offline
              D Offline
              data modeling guy
              wrote on last edited by
              #6

              Thanks

              1 Reply Last reply
              0
              • P PIEBALDconsult

                Sure, try implementing a Turing Machine in SQL.

                You'll never get very far if all you do is follow instructions.

                D Offline
                D Offline
                data modeling guy
                wrote on last edited by
                #7

                Thanks

                1 Reply Last reply
                0
                • L Lost User

                  data modeling guy wrote:

                  Hello- can you give me any example scenarios/questions for writing a complex SELECT statements? My intention is to improve my SQL skills.

                  • Calculate reputation points of a user.
                  • Fetch the contibutions-section for a user (see the section on your user-page; it contains some statistics)
                  • Fetch the ten members from the database that answered most questions last month.
                  • Fetch the voting-percentages for the straw-poll result for all possible answers.
                  • Fetch any low-repuation member that posts the same message in multiple places, ordered by the amount of similar messages.
                  • Fetch the data to show the forum-content for page 3 of this forum, in threaded view, with 50 posts per page.

                  :rolleyes:

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

                  D Offline
                  D Offline
                  data modeling guy
                  wrote on last edited by
                  #8

                  Thanks Eddy. I Did some more google search and found some more. Cheers!

                  1 Reply Last reply
                  0
                  • D data modeling guy

                    Hello- can you give me any example scenarios/questions for writing a complex SELECT statements? My intention is to improve my SQL skills.

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

                    Get Joe Celko's Puzzles and Answers[^]

                    Wrong is evil and must be defeated. - Jeff Ello[^]

                    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