The AskTOM team is taking a break over the holiday season, so we're not taking questions or responding to comments. Please have a happy and safe festive season and as always, thanks for being a member of the AskTOM community.
Thanks for the question, Raja.
Asked: August 01, 2016 - 7:27 am UTC
Last updated: August 02, 2016 - 9:46 am UTC
Version: 10g
Viewed 1000+ times
create table prices ( price_date date primary key check (price_date = trunc(price_date)), unit_cost number );
select sum(unit_cost) from prices where price_date between date'2016-01-01' and date'2016-01-31';
update prices set unit_cost = 4 where price_date = date'2016-07-01';
Check out more PL/SQL tutorials on our LiveSQL tool.
PL/SQL reference manual from the Oracle documentation library