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. Problem in Query

Problem in Query

Scheduled Pinned Locked Moved Database
databasehelpquestioncareer
4 Posts 3 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 Offline
    C Offline
    Care Career
    wrote on last edited by
    #1

    Hi I have 3 tables e.g A,B,C. I am joining table A and table B on the bases of id Select A.id,B.Name from A,B where A.id=B.id . Now i want get records from table C basis on calculated A.id. These all I want in One Query. Is tht Possible? Thanks Care Career

    R U 2 Replies Last reply
    0
    • C Care Career

      Hi I have 3 tables e.g A,B,C. I am joining table A and table B on the bases of id Select A.id,B.Name from A,B where A.id=B.id . Now i want get records from table C basis on calculated A.id. These all I want in One Query. Is tht Possible? Thanks Care Career

      R Offline
      R Offline
      Raviii_1983
      wrote on last edited by
      #2

      U can use the following code Select * from C where id in (Select A.id from A,B where A.id=B.id)

      C 1 Reply Last reply
      0
      • C Care Career

        Hi I have 3 tables e.g A,B,C. I am joining table A and table B on the bases of id Select A.id,B.Name from A,B where A.id=B.id . Now i want get records from table C basis on calculated A.id. These all I want in One Query. Is tht Possible? Thanks Care Career

        U Offline
        U Offline
        Usharva
        wrote on last edited by
        #3

        Hi try this query Select A.id,B.Name,C.Calc From A,B,C Where A.id = B.id And A.id = C.Id Or Select A.Id, Name, Calc From A Inner Join B On B.Id = A.Id Inner Join C On C.Id = A.Id Hope this will work but there should be relation between these tables

        1 Reply Last reply
        0
        • R Raviii_1983

          U can use the following code Select * from C where id in (Select A.id from A,B where A.id=B.id)

          C Offline
          C Offline
          Care Career
          wrote on last edited by
          #4

          I want all the fields from 3 tables. This query solves fethes data from C table only i want data From a or b also SO can u help? thnx care career

          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