| | |
retrieval of unique data
Please support our MS SQL advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Mar 2008
Posts: 324
Reputation:
Solved Threads: 7
sql Syntax (Toggle Plain Text)
CREATE TABLE student9(roll INT) INSERT INTO student9 VALUES(1) INSERT INTO student9 VALUES(1) INSERT INTO student9 VALUES(2) INSERT INTO student9 VALUES(3) SELECT DISTINCT * FROM student9
Last edited by peter_budo; Apr 10th, 2008 at 5:25 pm. Reason: Keep It Organized - please use [code] tags
•
•
Join Date: Jul 2005
Posts: 7
Reputation:
Solved Threads: 0
•
•
•
•
sql Syntax (Toggle Plain Text)
CREATE TABLE student9(roll INT) INSERT INTO student9 VALUES(1) INSERT INTO student9 VALUES(1) INSERT INTO student9 VALUES(2) INSERT INTO student9 VALUES(3) SELECT DISTINCT * FROM student9
•
•
•
•
It is retrieval of unique records from table but I want retrieval of those records which are unique on some coloumns eg if table have 5 coloumns I want to retrieve only those records which are unique on 3 coloumns suppose a student table stores details of all college students I want to retrieve those records which are unique on name and address
![]() |
Other Threads in the MS SQL Forum
- Previous Thread: Rangevalidator Problem.. Urgent..
- Next Thread: How to add not null column in SQL Server 2005
| Thread Tools | Search this Thread |





