Click here to Skip to main content
15,901,368 members
Home / Discussions / Database
   

Database

 
AnswerRe: Can ADO be used in C (not C++) Pin
Rob Graham3-Dec-05 15:24
Rob Graham3-Dec-05 15:24 
AnswerRe: Can ADO be used in C (not C++) Pin
Matt Gullett3-Dec-05 17:18
Matt Gullett3-Dec-05 17:18 
GeneralRe: Can ADO be used in C (not C++) Pin
FFKONG4-Dec-05 22:01
FFKONG4-Dec-05 22:01 
GeneralRe: Can ADO be used in C (not C++) Pin
Farhan Noor Qureshi5-Dec-05 10:28
Farhan Noor Qureshi5-Dec-05 10:28 
QuestionDateTime Updating Problem in sql2000? Pin
majidbhutta3-Dec-05 0:08
majidbhutta3-Dec-05 0:08 
AnswerRe: DateTime Updating Problem in sql2000? Pin
Chris Meech5-Dec-05 3:41
Chris Meech5-Dec-05 3:41 
QuestionSQL Server 2005 Report Builder Pin
su772-Dec-05 12:40
su772-Dec-05 12:40 
QuestionRemove duplicates from result set Pin
jszpila2-Dec-05 4:48
jszpila2-Dec-05 4:48 
Hey everybody,
I know this a pretty silly question but I totally blanked. I'm looking to remove duplicate results from the results set (NOT the table).

Say I have a query like so:
SELECT SomeNumber FROM MyTable ORDER BY SomeNumber ASC
returns the following set:
1
1
1
2
2
3
4

But I want it to return:
1
2
3
4

What extra criteria would I add to the query?

Thanks in advance for your help.

-------------------
abort, retry, fail?
AnswerRe: Remove duplicates from result set Pin
sreejith ss nair2-Dec-05 6:10
sreejith ss nair2-Dec-05 6:10 
GeneralRe: Remove duplicates from result set Pin
jszpila2-Dec-05 6:22
jszpila2-Dec-05 6:22 
GeneralRe: Remove duplicates from result set Pin
sreejith ss nair2-Dec-05 6:24
sreejith ss nair2-Dec-05 6:24 
GeneralRe: Remove duplicates from result set Pin
jszpila2-Dec-05 6:27
jszpila2-Dec-05 6:27 
QuestionHelp Me plz abt this dateTime UDF_Function? Pin
majidbhutta1-Dec-05 15:32
majidbhutta1-Dec-05 15:32 
AnswerRe: Help Me plz abt this dateTime UDF_Function? Pin
sreejith ss nair2-Dec-05 6:47
sreejith ss nair2-Dec-05 6:47 
QuestionOLEDB data source issue Pin
Joshua Lunsford1-Dec-05 13:06
Joshua Lunsford1-Dec-05 13:06 
QuestionDatabase sample Pin
sasan561-Dec-05 9:44
sasan561-Dec-05 9:44 
AnswerRe: Database sample Pin
Raj Lal1-Dec-05 10:56
professionalRaj Lal1-Dec-05 10:56 
GeneralRe: Database sample Pin
sasan561-Dec-05 10:59
sasan561-Dec-05 10:59 
GeneralRe: Database sample Pin
Raj Lal1-Dec-05 11:16
professionalRaj Lal1-Dec-05 11:16 
Questioncrystal report problem Pin
sasan561-Dec-05 9:41
sasan561-Dec-05 9:41 
Questiondatagrid updation Pin
smdbt1-Dec-05 6:46
smdbt1-Dec-05 6:46 
QuestionTransfer local sql database to web-server Pin
Rama Sharma1-Dec-05 5:46
Rama Sharma1-Dec-05 5:46 
AnswerRe: Transfer local sql database to web-server Pin
Farhan Noor Qureshi1-Dec-05 7:15
Farhan Noor Qureshi1-Dec-05 7:15 
GeneralRe: Transfer local sql database to web-server Pin
Rama Sharma1-Dec-05 14:39
Rama Sharma1-Dec-05 14:39 
GeneralRe: Transfer local sql database to web-server Pin
Farhan Noor Qureshi2-Dec-05 6:24
Farhan Noor Qureshi2-Dec-05 6:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.