Click here to Skip to main content
15,902,189 members
Home / Discussions / Database
   

Database

 
QuestionSql Record Select Pin
sivaprakas11-Feb-08 16:07
sivaprakas11-Feb-08 16:07 
GeneralRe: Sql Record Select Pin
Elina Blank1-Mar-08 11:45
sitebuilderElina Blank1-Mar-08 11:45 
GeneralSql Select [modified] Pin
NewToAspDotNet11-Feb-08 7:19
NewToAspDotNet11-Feb-08 7:19 
AnswerRe: Sql Select Pin
Ashfield11-Feb-08 7:45
Ashfield11-Feb-08 7:45 
GeneralRe: Sql Select Pin
NewToAspDotNet11-Feb-08 7:57
NewToAspDotNet11-Feb-08 7:57 
GeneralRe: Sql Select Pin
Ashfield11-Feb-08 22:34
Ashfield11-Feb-08 22:34 
GeneralRe: Sql Select Pin
Krish - KP11-Feb-08 17:34
Krish - KP11-Feb-08 17:34 
GeneralRe: Sql Select Pin
Ashfield14-Feb-08 8:18
Ashfield14-Feb-08 8:18 
GeneralAgain Crystal Report Pin
simworld11-Feb-08 4:36
simworld11-Feb-08 4:36 
GeneralPDF Problem Pin
simworld11-Feb-08 4:29
simworld11-Feb-08 4:29 
GeneralReporting in MS Accesss Pin
Vimalsoft(Pty) Ltd11-Feb-08 0:54
professionalVimalsoft(Pty) Ltd11-Feb-08 0:54 
Questionenable remote connection for sql server 2000? Pin
eyeseetee11-Feb-08 0:09
eyeseetee11-Feb-08 0:09 
Generaldifference Pin
trilokharry10-Feb-08 23:03
trilokharry10-Feb-08 23:03 
GeneralRe: difference Pin
Giorgi Dalakishvili11-Feb-08 0:28
mentorGiorgi Dalakishvili11-Feb-08 0:28 
GeneralRe: difference Pin
trilokharry11-Feb-08 2:23
trilokharry11-Feb-08 2:23 
GeneralFind data that does not match between two tables [modified] Pin
fuhaizah10-Feb-08 19:11
fuhaizah10-Feb-08 19:11 
GeneralRe: Find data that does not match between two tables Pin
pmarfleet10-Feb-08 19:30
pmarfleet10-Feb-08 19:30 
GeneralRe: Find data that does not match between two tables Pin
fuhaizah10-Feb-08 19:32
fuhaizah10-Feb-08 19:32 
GeneralRe: Find data that does not match between two tables Pin
pmarfleet10-Feb-08 19:37
pmarfleet10-Feb-08 19:37 
GeneralRe: Find data that does not match between two tables Pin
fuhaizah10-Feb-08 19:41
fuhaizah10-Feb-08 19:41 
GeneralRe: Find data that does not match between two tables Pin
Joe10-Feb-08 19:34
Joe10-Feb-08 19:34 
Generalgroup by, max and another column Pin
swjam10-Feb-08 2:25
swjam10-Feb-08 2:25 
Hi,

Say I have the table below:

Tabl1

PKey ColA ColB ColC
1 a1 b1 c1
2 a1 b2 c2
3 a1 b3 c3
... a2 ...
...
... a3 ...
...

If I group by ColA with the select statement as follows:

SELECT<br />
     ColA, MAX(ColB), <br />
FROM<br />
     Tabl1<br />
GROUP BY<br />
      ColA


If for example for a1 the MAX(ColB) is b2, THEN I would like to include ColC in the select statement such that for a1 the resulting row would be:

ColA ColB ColC
a1 b2 c2

What is the best way to do this?
TIA!

I am a SysAdmin, I battle my own daemons.

GeneralRe: group by, max and another column Pin
andyharman10-Feb-08 22:41
professionalandyharman10-Feb-08 22:41 
QuestionCan I modify specified text from set of rows [modified] Pin
kimo code9-Feb-08 22:27
kimo code9-Feb-08 22:27 
AnswerRe: Can I modify specified text from set of rows Pin
pmarfleet9-Feb-08 22:53
pmarfleet9-Feb-08 22:53 

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.