Re: Time syntax question for calculating a set of values
Is this what you mean?
SELECT
100*year(paymentdate)+month(paymentdate) as YearMonth,
Avg(PaymentAmt) AS 'Average Payment'
FROM Payments
WHERE 100*year(paymentdate)+month(paymentdate) IN( 201207, 201209 );
PB
http://www.artfulsoftware.com
Subject
Written By
Posted
Re: Time syntax question for calculating a set of values
April 09, 2012 11:35AM
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.