![]() |
|
|
|
#11 |
|
Yuan, You could put the keyword "distinct" after your select and before your columns in your SQL statement. This will remove all the duplicated rows. Bill Gregg *** Sent via Developersdex http://www.developersdex.com *** Bill Gregg |
|
|
|
|
#12 |
|
Posts: n/a
|
Can you show an example of that Bill?
J "Bill Gregg" <> wrote in message news:... > > Yuan, > You could put the keyword "distinct" after your select and before > your columns in your SQL statement. This will remove all the duplicated > rows. > > Bill Gregg > > > *** Sent via Developersdex http://www.developersdex.com *** |
|
|
|
#13 |
|
Posts: n/a
|
Hi J,
Thanks for your reply! First of all, thanks for Bill's reminder. Since I don't use the SQL Server with a long time, I forget there is the "distinct" keyword is more appropriate at the current stage. For example, there is a table likes below: num name 1 a 1 a 2 a 2 b 2 b So, if you use the statement below: select distinct * from tblduplicated You will get the result: 1 a 2 a 2 b Thanks for your understanding! Regards, Yuan Ren [MSFT] Microsoft Online Support Yuan Ren[MSFT] |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Gridview row information disappearing after selectedIndexChanged | Ry99 | General Help Related Topics | 0 | 07-13-2009 03:35 PM |
| duplicate files | -D- | A+ Certification | 0 | 02-22-2004 01:02 AM |
| Re: Looking for Virus Removal Info | MJP | A+ Certification | 0 | 07-26-2003 01:57 PM |
| Re: Looking for Virus Removal Info | havinfun69nospam@yahoo.com | A+ Certification | 0 | 07-26-2003 01:57 AM |
| Re: Looking for Virus Removal Info | Ghost | A+ Certification | 0 | 07-25-2003 11:33 PM |