Click here to Skip to main content
15,894,343 members
Home / Discussions / Database
   

Database

 
GeneralRe: Replace SELECT result before datagrid. Pin
Alomgir Miah22-Feb-06 7:38
Alomgir Miah22-Feb-06 7:38 
Questionhow to connect with Oracle with c# Pin
nauty20-Feb-06 18:57
nauty20-Feb-06 18:57 
AnswerRe: how to connect with Oracle with c# Pin
Colin Angus Mackay21-Feb-06 1:46
Colin Angus Mackay21-Feb-06 1:46 
QuestionSecurity: Scanning for SQL Server Pin
devvvy20-Feb-06 17:24
devvvy20-Feb-06 17:24 
QuestionCombining two SELECT statements Pin
myNameIsRon20-Feb-06 13:00
myNameIsRon20-Feb-06 13:00 
AnswerRe: Combining two SELECT statements Pin
Mike Ellison20-Feb-06 16:27
Mike Ellison20-Feb-06 16:27 
GeneralRe: Combining two SELECT statements Pin
myNameIsRon22-Feb-06 5:25
myNameIsRon22-Feb-06 5:25 
Questionselecting MAX date records Pin
Joshua Lunsford20-Feb-06 11:32
Joshua Lunsford20-Feb-06 11:32 
What am I doing wrong?


select username AS UserID, domainname AS Domain, dt AS Date from testtable

gives me:

UserID, Domain, Date
kt001, c_domain, 2/20/2006
kt001, p_domain, 2/15/2006
kt001, p_domain, 2/19/2006

which is normal.

SELECT username AS UserID, MAX(domainname) AS Domain, MAX(dt) AS Date
FROM testtable
GROUP BY username

gives me:

UserID, Domain, Date
kt001, p_domain, 2/20/2006

which i would want the domain of whatever the MAX date was... any clues?
AnswerRe: selecting MAX date records Pin
Mike Ellison20-Feb-06 12:29
Mike Ellison20-Feb-06 12:29 
QuestionA simple query Pin
sacoskun20-Feb-06 9:18
sacoskun20-Feb-06 9:18 
AnswerRe: A simple query Pin
Mike Ellison20-Feb-06 18:21
Mike Ellison20-Feb-06 18:21 
Questiondistinct columns? Pin
nixter99920-Feb-06 3:42
nixter99920-Feb-06 3:42 
AnswerRe: distinct columns? Pin
Chris Meech20-Feb-06 4:02
Chris Meech20-Feb-06 4:02 
GeneralRe: distinct columns? Pin
nixter99920-Feb-06 4:15
nixter99920-Feb-06 4:15 
GeneralRe: distinct columns? Pin
Joshua Lunsford20-Feb-06 12:01
Joshua Lunsford20-Feb-06 12:01 
GeneralRe: distinct columns? Pin
Chris Meech21-Feb-06 3:53
Chris Meech21-Feb-06 3:53 
QuestionTyped dataset and ReadXml Pin
slappe20-Feb-06 2:37
slappe20-Feb-06 2:37 
QuestioncomboBox1.ValueMember = "column1" Pin
myNameIsRon19-Feb-06 11:51
myNameIsRon19-Feb-06 11:51 
AnswerRe: comboBox1.ValueMember = "column1" Pin
Ritesh123419-Feb-06 18:37
Ritesh123419-Feb-06 18:37 
GeneralRe: comboBox1.ValueMember = "column1" Pin
myNameIsRon20-Feb-06 12:50
myNameIsRon20-Feb-06 12:50 
AnswerRe: comboBox1.ValueMember = "column1" Pin
AlexeiXX320-Feb-06 7:18
AlexeiXX320-Feb-06 7:18 
GeneralRe: comboBox1.ValueMember = "column1" Pin
myNameIsRon20-Feb-06 12:45
myNameIsRon20-Feb-06 12:45 
GeneralRe: comboBox1.ValueMember = "column1" Pin
AlexeiXX320-Feb-06 13:41
AlexeiXX320-Feb-06 13:41 
QuestionDate problem Pin
sebastian yeok18-Feb-06 22:41
sebastian yeok18-Feb-06 22:41 
AnswerRe: Date problem Pin
Colin Angus Mackay19-Feb-06 0:41
Colin Angus Mackay19-Feb-06 0:41 

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.