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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. duplication problem [modified]

duplication problem [modified]

Scheduled Pinned Locked Moved Database
databasehelpquestion
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.
  • S Offline
    S Offline
    SreejithKumar M
    wrote on last edited by
    #1

    Hi , In my table tbldataOrg i ve data like this pk slno name addr Date 1 1 see this 5/29/2010 1 1 see this 5/29/2010 1 1 see this 5/29/2010 2 2 Hi Us 5/30/2010 3 3 Hi Us 5/28/2010 I just want only 1 orginal data in tblDataOrg and insert other (in this case Pk 2 & 3, data entered from date 5/29/2010, not before that date is needed ) in new table tbldataDup and remove the duplicated data from tblDataOrg in MS SQl. Any Idea? Known is a drop, unknown is an ocean -- Modified Thursday, June 10, 2010 11:59 PM

    M 1 Reply Last reply
    0
    • S SreejithKumar M

      Hi , In my table tbldataOrg i ve data like this pk slno name addr Date 1 1 see this 5/29/2010 1 1 see this 5/29/2010 1 1 see this 5/29/2010 2 2 Hi Us 5/30/2010 3 3 Hi Us 5/28/2010 I just want only 1 orginal data in tblDataOrg and insert other (in this case Pk 2 & 3, data entered from date 5/29/2010, not before that date is needed ) in new table tbldataDup and remove the duplicated data from tblDataOrg in MS SQl. Any Idea? Known is a drop, unknown is an ocean -- Modified Thursday, June 10, 2010 11:59 PM

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      Select distinct * into newtablename

      This will put distinct records into a new table, you then need to deal with your problem. I suggest you engage a consultant to design your data structure for you or get a book on database and data design and start learning.

      Never underestimate the power of human stupidity RAH

      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