•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MS SQL section within the Web Development category of DaniWeb, a massive community of 375,199 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,050 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS SQL advertiser:
Views: 538 | Replies: 3
![]() |
•
•
Join Date: Mar 2008
Posts: 115
Reputation:
Rep Power: 1
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
Last edited by peter_budo : Apr 10th, 2008 at 4:25 pm. Reason: Keep It Organized - please use [code] tags
•
•
Join Date: Jul 2005
Posts: 7
Reputation:
Rep Power: 0
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
•
•
•
•
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
just replace the * with the column names...
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb MS SQL Marketplace
•
•
•
•
access advice breach broadband business classification code combo crime cult of the dead cow daniweb data data protection data transfer database drive dropdownlist encryption europe forensic forensics fun google government hacking hard hardware help hitachi hp industrial espionage information internet it mobile module net news payment services privacy protection reuse search security storage terabyte tutorials and more tv web wikipedia
- Previous Thread: Rangevalidator Problem.. Urgent..
- Next Thread: How to add not null column in SQL Server 2005


Linear Mode