Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
Ali.M.Habib
Yak Posting Veteran
54 Posts |
Posted - 2009-08-25 : 06:01:45
|
I have this tableCREATE TABLE [Test] ( [Branch] [binary] (3) NOT NULL , [Order_YYYYMMDD] [binary] (8) NOT NULL , [delivery_YYYYMMDD] [binary] (8) NOT NULL , [delivery_HHMMSSHS] [binary] (8) NOT NULL , [OrderNo] [binary] (8) NULL , CONSTRAINT [PK_Test] PRIMARY KEY CLUSTERED ( [Branch] [Order_YYYYMMDD], [delivery_YYYYMMDD], [delivery_HHMMSSHS] ) ON [PRIMARY] ) ON [PRIMARY]GOby mistake the user enter two orders to be delievered at the same day and the same time for examle[Branch] [Order_YYYYMMDD] [delivery_YYYYMMDD] [delivery_HHMMSSHS]1 1/1/2009 1/5/2009 12:10:231 2/1/2009 1/5/2009 12:10:23I want to update [delivery_HHMMSSHS] such that no repeated times per day any help please |
|
bklr
Master Smack Fu Yak Hacker
1693 Posts |
Posted - 2009-08-25 : 07:16:15
|
u want to delete the duplicate recordor update the duplicate record then with which value u want to update |
|
|
|
|
|