Click here to Skip to main content
15,893,663 members
Home / Discussions / Database
   

Database

 
Questionselecting MAX date records Pin
Joshua Lunsford20-Feb-06 11:32
Joshua Lunsford20-Feb-06 11:32 
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 
I am having a simular problem as posted above but I want to Min/Max data other than a date field and i'm getting mixed data.

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


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


Any clue?
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 
GeneralRe: Date problem Pin
sebastian yeok19-Feb-06 1:53
sebastian yeok19-Feb-06 1:53 
GeneralRe: Date problem Pin
Colin Angus Mackay19-Feb-06 2:19
Colin Angus Mackay19-Feb-06 2:19 
GeneralRe: Date problem Pin
sebastian yeok19-Feb-06 2:37
sebastian yeok19-Feb-06 2:37 
GeneralRe: Date problem Pin
Colin Angus Mackay19-Feb-06 2:43
Colin Angus Mackay19-Feb-06 2:43 
QuestionHow to indent SQL statements? Pin
sacoskun18-Feb-06 21:19
sacoskun18-Feb-06 21:19 
AnswerRe: How to indent SQL statements? Pin
Colin Angus Mackay19-Feb-06 0:26
Colin Angus Mackay19-Feb-06 0:26 
GeneralRe: How to indent SQL statements? Pin
CWIZO19-Feb-06 1:40
CWIZO19-Feb-06 1:40 

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.