How to use SQL to output latest info with multiple col
Posted
by
TGU
on Stack Overflow
See other posts from Stack Overflow
or by TGU
Published on 2011-01-04T03:52:22Z
Indexed on
2011/01/04
3:53 UTC
Read the original article
Hit count: 358
Hi,
I have a "weather" table below with 3 cols:
City Temperature Date New York 22 C 10/10/2005 Seattle 21 C 10/10/2005 New York 18 C 10/09/2005 Seattle 20 C 10/09/2005 Washington 17 C 10/09/2005 New York 21 C 10/08/2005 Washington 20 C 10/08/2005
I want to find out the latest info on the City and Temperature in 3 cols as well (see example):
City Temperature Date New York 22 C 10/10/2005 Seattle 21 C 10/10/2005 Washington 17 C 10/09/2005
Can anyone help?
Thanks Rgds
© Stack Overflow or respective owner