Search Postgresql Archives

Re: How I can get the real data type result instead of

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2006-03-20 at 21:10, Wei Wei wrote:
> In a query, there is something like 
> 
> order by count(id)/age
> 
> where both id and age are the integer data type. 
> 
> >From a query result, I believe the operation count(id)/age yields a integer. I need it in real data type. After searching the online document, I haven't found any related information. Can someone help me out on this problem, please.
> 
> Thanks,
> 
> w

Try:

order by count(id)/age::float

regards,
Sig.Gunn



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux