MySQL Forums
Forum List  »  Newbie

Re: Query of Queries
Posted by: Matt Genevieve
Date: July 13, 2005 07:27AM

Coldfusion, on a windows machine. MySQL 4.1.8

1st query is:
select id, cip,date,time
from weblogs

the second queries the first

select distinct(cip) as a,count(id) as t
from firstquery

the above both work fine. But when I try to use time_format in a query of queries its not happy.

I take it that maybe this is a CF problem.

How would I correctly format
select distinct(time_format( time, '%H' )) as a
from weblogs

M@)?

Options: ReplyQuote


Subject
Written By
Posted
July 13, 2005 06:22AM
July 13, 2005 07:00AM
Re: Query of Queries
July 13, 2005 07:27AM
July 13, 2005 09:13PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.