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. Comlex Query vs Multiple Queries

Comlex Query vs Multiple Queries

Scheduled Pinned Locked Moved Database
databasevisual-studio
5 Posts 4 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.
  • I Offline
    I Offline
    iamalik
    wrote on last edited by
    #1

    Hi Everybody Is it better to apply a single complex query than multiple queries. Has Any body any idea

    C 1 Reply Last reply
    0
    • I iamalik

      Hi Everybody Is it better to apply a single complex query than multiple queries. Has Any body any idea

      C Offline
      C Offline
      Chris Meech
      wrote on last edited by
      #2

      Perhaps if you broke your complex question into multiple understandable questions, someone will provide an answer. :) Chris Meech I am Canadian. [heard in a local bar] I think people should be required to have an operator's permit to use the internet. John Simmons I have a feeling that if the millions of man hours wasted every year by geeks trying to get various video and sound cards working under Linux were put into some useful endeavor we'd have solved world hunger, we'd have peace and aids would be no more. [JOS poster]

      I 1 Reply Last reply
      0
      • C Chris Meech

        Perhaps if you broke your complex question into multiple understandable questions, someone will provide an answer. :) Chris Meech I am Canadian. [heard in a local bar] I think people should be required to have an operator's permit to use the internet. John Simmons I have a feeling that if the millions of man hours wasted every year by geeks trying to get various video and sound cards working under Linux were put into some useful endeavor we'd have solved world hunger, we'd have peace and aids would be no more. [JOS poster]

        I Offline
        I Offline
        iamalik
        wrote on last edited by
        #3

        I wanna fetch some data from a database. The data I want is lying in different tables. My Question is Is it better to use a single query containing joins than using different queries to fetch that data

        C S 2 Replies Last reply
        0
        • I iamalik

          I wanna fetch some data from a database. The data I want is lying in different tables. My Question is Is it better to use a single query containing joins than using different queries to fetch that data

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          Use the joins. Joins are not in themselves complext, however the data model can be.


          "If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!

          1 Reply Last reply
          0
          • I iamalik

            I wanna fetch some data from a database. The data I want is lying in different tables. My Question is Is it better to use a single query containing joins than using different queries to fetch that data

            S Offline
            S Offline
            Steven Campbell
            wrote on last edited by
            #5

            It is better to drink water than coffee. :confused: If you mean, "is it going to be faster to run a single query", then the answer is "yes, almost always". If you mean, "is it going to be easier to run multiple queries", then the answer to that is also "yes, almost always". If you mean, "which of the options is going to solve world hunger and remove GW Bush from office", then I would have to say "neither, unless you're progamming the bush-cheney 2004 web-site".:)


            my blog

            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