Click here to Skip to main content
15,888,610 members
Home / Discussions / Database
   

Database

 
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 
GeneralRe: Can I modify specified text from set of rows Pin
kimo code9-Feb-08 23:20
kimo code9-Feb-08 23:20 
GeneralRe: Can I modify specified text from set of rows Pin
kimo code10-Feb-08 0:00
kimo code10-Feb-08 0:00 
Questionhow to get file from internet by using the webclient Pin
Shaik Haneef9-Feb-08 20:39
Shaik Haneef9-Feb-08 20:39 
AnswerDouble post Pin
pmarfleet9-Feb-08 22:49
pmarfleet9-Feb-08 22:49 
AnswerRe: how to get file from internet by using the webclient Pin
Dave Kreskowiak11-Feb-08 4:37
mveDave Kreskowiak11-Feb-08 4:37 
QuestionSQL Database deveopment Pin
Pallab_GT9-Feb-08 7:43
Pallab_GT9-Feb-08 7:43 
GeneralRe: SQL Database deveopment Pin
pmarfleet9-Feb-08 10:11
pmarfleet9-Feb-08 10:11 
GeneralSql database conflict [modified] Pin
Cory Kimble9-Feb-08 5:28
Cory Kimble9-Feb-08 5:28 
GeneralSQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information. Pin
Sujit Gupta8-Feb-08 23:28
Sujit Gupta8-Feb-08 23:28 
GeneralRe: SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information. Pin
That's Aragon9-Feb-08 0:02
That's Aragon9-Feb-08 0:02 
GeneralRe: SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information. Pin
Sujit Gupta10-Feb-08 6:40
Sujit Gupta10-Feb-08 6:40 
GeneralQuery to find last 10 records Pin
sirisha guttikonda8-Feb-08 20:58
sirisha guttikonda8-Feb-08 20:58 
GeneralRe: Query to find last 10 records Pin
pmarfleet8-Feb-08 21:23
pmarfleet8-Feb-08 21:23 
GeneralRe: Query to find last 10 records Pin
sirisha guttikonda8-Feb-08 21:27
sirisha guttikonda8-Feb-08 21:27 

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.