SQL Language (MOSC)

MOSC Banner

Newbie: How to select from two dates and see the difference between allocated storage?

edited May 13, 2013 3:11AM in SQL Language (MOSC) 1 commentAnswered ✓
Hi,

I have  a table where we store the tablespace sizes each day. I would like to see how much the tablespaces have grown over 2012.

select tablespace_name, allocated from dbsnmp.TBS_SIZES_HISTORY where collection_Date= TO_DATE('1-1-2012','dd-mm-yyyy') order by 1;MINUSselect tablespace_name, allocated from dbsnmp.TBS_SIZES_HISTORY where collection_Date= TO_DATE('31-12-2012','dd-mm-yyyy') order by 1;

I get a value, but its not a "subtracted" value.

Well, that did not work. How do fix it?

Regards

S

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center