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. Mobile Development
  3. Mobile
  4. Problem with SELECT DISTINCT Queries

Problem with SELECT DISTINCT Queries

Scheduled Pinned Locked Moved Mobile
helpdatabasetutorial
4 Posts 2 Posters 6 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.
  • M Offline
    M Offline
    Mahesh Varma
    wrote on last edited by
    #1

    Hi all, How to select distinct rows from a table in eVB.I tried this using SELECT DISTINCT Query but it shows error. Can any one help me please... Thanks in Advance Mahesh

    J 1 Reply Last reply
    0
    • M Mahesh Varma

      Hi all, How to select distinct rows from a table in eVB.I tried this using SELECT DISTINCT Query but it shows error. Can any one help me please... Thanks in Advance Mahesh

      J Offline
      J Offline
      Joao Paulo Figueira
      wrote on last edited by
      #2

      What DB are you using? Pocket Access does not support SELECT DISTINCT!

      M 1 Reply Last reply
      0
      • J Joao Paulo Figueira

        What DB are you using? Pocket Access does not support SELECT DISTINCT!

        M Offline
        M Offline
        Mahesh Varma
        wrote on last edited by
        #3

        hi Paulo, I am using MS Access as database. Can you suggest a solution for this problem. My table contains 5000-10,000 rows of data,out of which i have to select a few distinct rows. regards Mahesh

        J 1 Reply Last reply
        0
        • M Mahesh Varma

          hi Paulo, I am using MS Access as database. Can you suggest a solution for this problem. My table contains 5000-10,000 rows of data,out of which i have to select a few distinct rows. regards Mahesh

          J Offline
          J Offline
          Joao Paulo Figueira
          wrote on last edited by
          #4

          You can try working around this problem by creating a separate table, possibly with the same structure, but with an index on the field(s) of your UNIQUE clause. Then copy all the rows from the first table to the second table, making sure that the UNIQUE field(s) does(do) not exist. The index is there to speed up your search. At the end of the procedure, you will have the UNIQUE records. You might want to use this without a separate table, but you would have to create an in-memory array where the UNIQUE fields would be stored, and compared against. If you don't want to do nothing of this, you will have to upgrade to a better database engine, like SQL Server CE 2.0. Good luck! João Paulo

          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