ADSM-L

Re: [ADSM-L] SQL help

2009-10-21 16:40:03
Subject: Re: [ADSM-L] SQL help
From: Remco Post <r.post AT PLCS DOT NL>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Wed, 21 Oct 2009 22:39:24 +0200
On 21 okt 2009, at 21:25, Fred Johanson wrote:

Management want to count the number of nodes added in the last 2
months.  I think this is what they want, but it returns 0

select count(node_name) from nodes where (cast((date(reg_time)-
current_date)days as decimal) <= 60)


select count(*) from nodes where reg_time >current_timestamp - 60 days

does that sound better to you?


What did I do wrong?

--
Met vriendelijke groeten,

Remco Post
r.post AT plcs DOT nl
+31 6 248 21 622

<Prev in Thread] Current Thread [Next in Thread>