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 server group

sql server group

Scheduled Pinned Locked Moved Database
databasesql-serversysadmintoolshelp
2 Posts 2 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.
  • N Offline
    N Offline
    Nath
    wrote on last edited by
    #1

    Hi To ALL, getting a problem when i was joined two tables and specified distinction but the rows are repeating could anyone give me the suggestion Thanks & Regards, Nath. dt_messageDate str_messge str_constituencyName 2009-01-20 00:00:00.000 Second Test Ichapuram 2009-01-20 00:00:00.000 Second Test Ichchapuram 2009-01-20 00:00:00.000 The last script Ichapuram 2009-01-20 00:00:00.000 The last script Ichchapuram 2009-01-21 00:00:00.000 Test1 Ichapuram 2009-01-21 00:00:00.000 Test1 Ichchapuram 2009-01-21 00:00:00.000 Test2 Ichapuram 2009-01-21 00:00:00.000 Test2 Ichchapuram 2009-01-23 00:00:00.000 asdf sdaaaas Ichapuram 2009-01-23 00:00:00.000 asdf sdaaaas Ichchapuram 2009-01-25 00:00:00.000 Second test Tekkali 2009-01-25 00:00:00.000 test Tekkali 2009-01-26 00:00:00.000 Godavari Anaparthy

    W 1 Reply Last reply
    0
    • N Nath

      Hi To ALL, getting a problem when i was joined two tables and specified distinction but the rows are repeating could anyone give me the suggestion Thanks & Regards, Nath. dt_messageDate str_messge str_constituencyName 2009-01-20 00:00:00.000 Second Test Ichapuram 2009-01-20 00:00:00.000 Second Test Ichchapuram 2009-01-20 00:00:00.000 The last script Ichapuram 2009-01-20 00:00:00.000 The last script Ichchapuram 2009-01-21 00:00:00.000 Test1 Ichapuram 2009-01-21 00:00:00.000 Test1 Ichchapuram 2009-01-21 00:00:00.000 Test2 Ichapuram 2009-01-21 00:00:00.000 Test2 Ichchapuram 2009-01-23 00:00:00.000 asdf sdaaaas Ichapuram 2009-01-23 00:00:00.000 asdf sdaaaas Ichchapuram 2009-01-25 00:00:00.000 Second test Tekkali 2009-01-25 00:00:00.000 test Tekkali 2009-01-26 00:00:00.000 Godavari Anaparthy

      W Offline
      W Offline
      Wendelius
      wrote on last edited by
      #2

      Based on the data on your post the rows are not repeating since always at least one column is having a different value. Distnct removes only rows where every column has the same value. Could you post a sample of the original data and info, what kind of result you're trying to get.

      The need to optimize rises from a bad design.My articles[^]

      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