Click here to Skip to main content
15,890,527 members
Home / Discussions / C#
   

C#

 
AnswerRe: select query proble Pin
GuyThiebaut31-Jul-11 3:12
professionalGuyThiebaut31-Jul-11 3:12 
GeneralRe: select query proble Pin
Not Active31-Jul-11 5:25
mentorNot Active31-Jul-11 5:25 
GeneralRe: select query proble Pin
jschell1-Aug-11 8:20
jschell1-Aug-11 8:20 
GeneralRe: select query proble Pin
GuyThiebaut1-Aug-11 8:25
professionalGuyThiebaut1-Aug-11 8:25 
GeneralRe: select query proble Pin
jschell2-Aug-11 9:19
jschell2-Aug-11 9:19 
GeneralRe: select query proble Pin
GuyThiebaut2-Aug-11 9:23
professionalGuyThiebaut2-Aug-11 9:23 
GeneralRe: select query proble Pin
jschell3-Aug-11 9:49
jschell3-Aug-11 9:49 
AnswerRe: select query proble [modified] Pin
Shameel31-Jul-11 5:16
professionalShameel31-Jul-11 5:16 
The easiest way is to use the DISTINCT clause.

EDIT: I do not know who downvoted my answer and why. But let me explain to you why I suggested DISTINCT and not TOP as suggested by other posters. A part of the question is
love yadav wrote:
where many records of same types exist
That means the OP wants to return one record from each type (each set of distinct values) and not just the first row. TOP 1 will return just the first row not matter how many distinct values are there in the result set.

modified on Sunday, July 31, 2011 11:42 PM

AnswerRe: select query proble Pin
Richard Andrew x6431-Jul-11 6:33
professionalRichard Andrew x6431-Jul-11 6:33 
AnswerRe: select query proble Pin
dan!sh 31-Jul-11 6:59
professional dan!sh 31-Jul-11 6:59 
Questiondatabase releted question Pin
love yadav30-Jul-11 19:45
love yadav30-Jul-11 19:45 
AnswerRe: database releted question Pin
PIEBALDconsult30-Jul-11 20:12
mvePIEBALDconsult30-Jul-11 20:12 
AnswerRe: database releted question Pin
Dave Kreskowiak31-Jul-11 4:26
mveDave Kreskowiak31-Jul-11 4:26 
AnswerRe: database releted question Pin
Abhinav S31-Jul-11 5:35
Abhinav S31-Jul-11 5:35 
AnswerRe: database releted question Pin
Shameel31-Jul-11 7:28
professionalShameel31-Jul-11 7:28 
QuestionMP3 Trimming Pin
gmhanna30-Jul-11 4:51
gmhanna30-Jul-11 4:51 
AnswerRe: MP3 Trimming [modified] Pin
GuyThiebaut30-Jul-11 7:34
professionalGuyThiebaut30-Jul-11 7:34 
AnswerRe: MP3 Trimming Pin
Ravi Bhavnani31-Jul-11 5:11
professionalRavi Bhavnani31-Jul-11 5:11 
QuestionWeb Get Requests Pin
gmhanna30-Jul-11 4:47
gmhanna30-Jul-11 4:47 
AnswerRe: Web Get Requests Pin
Keith Barrow30-Jul-11 8:13
professionalKeith Barrow30-Jul-11 8:13 
Questionc# project issue on 64-bit vista system Pin
Aisha sharma30-Jul-11 2:22
Aisha sharma30-Jul-11 2:22 
AnswerRe: c# project issue on 64-bit vista system Pin
Dave Kreskowiak30-Jul-11 3:59
mveDave Kreskowiak30-Jul-11 3:59 
GeneralRe: c# project issue on 64-bit vista system Pin
Aisha sharma31-Jul-11 19:21
Aisha sharma31-Jul-11 19:21 
GeneralRe: c# project issue on 64-bit vista system Pin
Dave Kreskowiak1-Aug-11 1:29
mveDave Kreskowiak1-Aug-11 1:29 
GeneralRe: c# project issue on 64-bit vista system [modified] Pin
Aisha sharma1-Aug-11 2:10
Aisha sharma1-Aug-11 2:10 

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.