Hi all,
I have a table with
Date | Hour | Stock | Price
1/1/07 10:00 NOK 20$
1/1/07 10:00 DELL 24$
1/1/07 10:30 DELL 23$
1/1/07 11:00 DELL 22$
1/1/07 11:15 DELL 20$
1/1/07 11:15 NOK 22$
1/1/07 12:00 NOK 19$
1/1/07 12:15 NOK 16$
The "GROUPBY MAX MIN "query results I have now are:
Date | Stock | MAX | MIN |
1/1/07 DELL 24 20
1/1/07 NOK 22 16
The results I want are:
Date | Stock | MAX | Max HOUR | MIN | MinHour |
1/1/07 DELL 24 10:00 20 11:15
1/1/07 NOK 22 11:15 16 12:15
in other words I need my query to give me the times the Max $ and Min $ has been reached. any idea??
thanks guys
I have a table with
Date | Hour | Stock | Price
1/1/07 10:00 NOK 20$
1/1/07 10:00 DELL 24$
1/1/07 10:30 DELL 23$
1/1/07 11:00 DELL 22$
1/1/07 11:15 DELL 20$
1/1/07 11:15 NOK 22$
1/1/07 12:00 NOK 19$
1/1/07 12:15 NOK 16$
The "GROUPBY MAX MIN "query results I have now are:
Date | Stock | MAX | MIN |
1/1/07 DELL 24 20
1/1/07 NOK 22 16
The results I want are:
Date | Stock | MAX | Max HOUR | MIN | MinHour |
1/1/07 DELL 24 10:00 20 11:15
1/1/07 NOK 22 11:15 16 12:15
in other words I need my query to give me the times the Max $ and Min $ has been reached. any idea??
thanks guys