Jump to content

Howto combine 3 queries in 1


CodingJoe

Recommended Posts

I have 2 tables,

CLOTHES

id

sort_id

owner_id

 

LOG

clothes_id

datetime

action - enum(new,washed,removed)

 

I want the last washed of each sort, so the result should be

 

clothes.id

clothes.sort_id

log.datetime

 

I can't think of a way to do this in 1 query, does anybody had an idea?

 

Link to comment
https://forums.phpfreaks.com/topic/41546-howto-combine-3-queries-in-1/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.