|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
MySQL: a minor group and max() question
Hello there.
I have a tiny problem with a query, and I realy hope some of you guys can sort this out for me. table_1 |id|member_id|thread|date| table_2 |id|username| What I want for my query is: The row with date = MAX(date) and thread = 1. and the username of the member. I would realy appreciate help here.. thank you! ![]() |
|
#2
|
||||
|
||||
|
I think something close to this might accomplish what you're working toward:
Code:
select * from table_1, username from table_2 WHERE date=MAX(date) and table_1.member_id=table_2.id |
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > MySQL: a minor group and max() question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|