Click here to Skip to main content
15,913,027 members
Home / Discussions / Database
   

Database

 
QuestionMessage Closed Pin
23-Feb-12 6:23
craig trombly @ infobright23-Feb-12 6:23 
AnswerRe: Infobright and Analytics Pin
Eddy Vluggen23-Feb-12 7:00
professionalEddy Vluggen23-Feb-12 7:00 
GeneralRe: Infobright and Analytics Pin
craig trombly @ infobright23-Feb-12 7:02
craig trombly @ infobright23-Feb-12 7:02 
GeneralRe: Infobright and Analytics Pin
Chris Maunder23-Feb-12 16:45
cofounderChris Maunder23-Feb-12 16:45 
GeneralRe: Infobright and Analytics Pin
Shameel23-Feb-12 17:20
professionalShameel23-Feb-12 17:20 
AnswerRe: Infobright and Analytics PinPopular
R. Giskard Reventlov23-Feb-12 7:23
R. Giskard Reventlov23-Feb-12 7:23 
GeneralRe: Infobright and Analytics Pin
Dan Mos25-Feb-12 5:35
Dan Mos25-Feb-12 5:35 
QuestionGet Just The Latest Pin
GenJerDan23-Feb-12 3:46
GenJerDan23-Feb-12 3:46 
There is a badly designed Caché database I have to grab data from via ODBC. Rather than updating a table, they decided to just append the new records. (Won't they be surprised, eventually. :p)

Anyway, is there a simple-ish way to get just the latest row for each set of records? Some sort of cool groupy join or something?

"ID" is an autoincrememnt int
Col2 is a varchar that identifies the set of records
Col3 is the data I'm ultimately interested in.
(There are other columns, of course, but probably irrelevant for this question...I hope)

Looks sorta like this:

ID	Col2	Col3
1	A	23
2	A	23
3	A	23
4	A	24
5	B	17
6	B	18
7	B	19
8	C	01
9	C	01


What I want to end up with is

4	A	24
7	B	19
9	C	01

No dogs or cats are in the classroom.

My Mu[sic]
My Films
My Windows Programs, etc.

AnswerRe: Get Just The Latest Pin
Chris Meech23-Feb-12 4:35
Chris Meech23-Feb-12 4:35 
GeneralRe: Get Just The Latest Pin
GenJerDan23-Feb-12 4:45
GenJerDan23-Feb-12 4:45 
GeneralRe: Get Just The Latest Pin
Chris Meech23-Feb-12 4:48
Chris Meech23-Feb-12 4:48 
GeneralRe: Get Just The Latest Pin
GenJerDan23-Feb-12 9:45
GenJerDan23-Feb-12 9:45 
AnswerRe: Get Just The Latest Pin
David Mujica23-Feb-12 5:15
David Mujica23-Feb-12 5:15 
QuestionOrder of tables in an Inner Join Pin
dbrenth22-Feb-12 3:25
dbrenth22-Feb-12 3:25 
AnswerRe: Order of tables in an Inner Join Pin
Shameel22-Feb-12 3:36
professionalShameel22-Feb-12 3:36 
Questiontrouble in connecting to Postgre SQL from web server. Pin
hellono121-Feb-12 20:43
hellono121-Feb-12 20:43 
AnswerRe: trouble in connecting to Postgre SQL from web server. Pin
Pete O'Hanlon22-Feb-12 2:50
mvePete O'Hanlon22-Feb-12 2:50 
GeneralRe: trouble in connecting to Postgre SQL from web server. Pin
hellono122-Feb-12 4:05
hellono122-Feb-12 4:05 
AnswerRe: trouble in connecting to Postgre SQL from web server. Pin
Luc Pattyn22-Feb-12 2:56
sitebuilderLuc Pattyn22-Feb-12 2:56 
GeneralRe: trouble in connecting to Postgre SQL from web server. Pin
hellono122-Feb-12 4:06
hellono122-Feb-12 4:06 
Questiondesign a database Pin
messages19-Feb-12 5:06
messages19-Feb-12 5:06 
AnswerRe: design a database Pin
Eddy Vluggen19-Feb-12 5:39
professionalEddy Vluggen19-Feb-12 5:39 
GeneralRe: design a database Pin
Hamid_RT19-Feb-12 5:53
Hamid_RT19-Feb-12 5:53 
AnswerRe: design a database Pin
Eddy Vluggen19-Feb-12 6:09
professionalEddy Vluggen19-Feb-12 6:09 
AnswerRe: design a database Pin
Luc Pattyn19-Feb-12 6:55
sitebuilderLuc Pattyn19-Feb-12 6:55 

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.