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

SQl Query Problem

Scheduled Pinned Locked Moved Database
databasehelp
5 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.
  • D Offline
    D Offline
    Devkranth Kishore Vanja
    wrote on last edited by
    #1

    hi to all My name is Devkranth .. i need help in sql.... i have 3 tables to retrieve data and display it.. there is no Primary key in any table.. but there is a common column , so if i join the tables i am getting rows duplicated... plz help me.. thanks in advance

    J P 2 Replies Last reply
    0
    • D Devkranth Kishore Vanja

      hi to all My name is Devkranth .. i need help in sql.... i have 3 tables to retrieve data and display it.. there is no Primary key in any table.. but there is a common column , so if i join the tables i am getting rows duplicated... plz help me.. thanks in advance

      J Offline
      J Offline
      jijoaresseriljose
      wrote on last edited by
      #2

      hi, you can add identity column for these tables and join with this column. regards

      jijo jose

      D 1 Reply Last reply
      0
      • D Devkranth Kishore Vanja

        hi to all My name is Devkranth .. i need help in sql.... i have 3 tables to retrieve data and display it.. there is no Primary key in any table.. but there is a common column , so if i join the tables i am getting rows duplicated... plz help me.. thanks in advance

        P Offline
        P Offline
        pradeep shukla
        wrote on last edited by
        #3

        after joining all tables use one of them and put a criteria like this --where fielname in ( select distinct fieldname from table1)-- this may solve the of duplicacy. Pradeep Shukla

        D 1 Reply Last reply
        0
        • J jijoaresseriljose

          hi, you can add identity column for these tables and join with this column. regards

          jijo jose

          D Offline
          D Offline
          Devkranth Kishore Vanja
          wrote on last edited by
          #4

          hi jojo Thanks 4 ur reply.. i will just try it and come back to u..

          1 Reply Last reply
          0
          • P pradeep shukla

            after joining all tables use one of them and put a criteria like this --where fielname in ( select distinct fieldname from table1)-- this may solve the of duplicacy. Pradeep Shukla

            D Offline
            D Offline
            Devkranth Kishore Vanja
            wrote on last edited by
            #5

            thanks Pradeeop well will try it and get back soon..

            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