Calculate Time Series in a query

Hi there,
I got follwoing Query
SELECT ROW_NUMBER() OVER(Order by Series.Date) AS RowId, Instrument.idInstrument, Series.Date, Series.Value * Series_1.Value AS EURVal
FROM Series AS Series_1 INNER JOIN
SeriesSubscription AS SeriesSubscription_1 ON Series_1.idSerie = SeriesSubscription_1.idSerie
INNER JOIN Series INNER JOIN SeriesSubscription ON Series.idSerie = SeriesSubscription.idSerie
INNER JOIN Instrument ON SeriesSubscription.idInstrument = Instrument.idInstrument
INNER JOIN Currency ON SeriesSubscription.idCurrency = Currency.idCurrency ON SeriesSubscription_1.idInstrument = Currency.idInstrument AND Series_1.Date = Series.Date
WHERE (Instrument.idInstrument = 20610)
The reults look like this
1     20610     1998-12-31 00:00:00.000     0,725234482449
2     20610     1999-01-01 00:00:00.000     0,725234482449
3     20610     1999-01-04 00:00:00.000     0,718305405841
4     20610     1999-01-05 00:00:00.000     0,720196638736
Is it possible to calculate on the fly the value of row number 2 divided by row number 1 and row number 3 divided by row number 2 and so on in a new column.
The Result set would look like this
1     20610     1998-12-31 00:00:00.000     0,725234482449
2     20610     1999-01-01 00:00:00.000     0,725234482449 1
3     20610     1999-01-04 00:00:00.000     0,718305405841 0,9904457
4     20610     1999-01-05 00:00:00.000     0,720196638736 1,0026329
Is that possible?
Thanks a lot
Cheers,
Chris

Hi, Chirs,
The analytic LAG function is great for that:
SELECT ROW_NUMBER() OVER(Order by Series.Date) AS RowId, Instrument.idInstrument, Series.Date, Series.Value * Series_1.Value AS EURVal
,      ( Series.Value * Series1.Value
       / LAG (Series.Value * Series1.Value) OVER (ORDER BY  Series.Dt)
       )                    AS EURVal_ratio
FROM Series AS Series_1 INNER JOIN
SeriesSubscription AS SeriesSubscription_1 ON Series_1.idSerie = SeriesSubscription_1.idSerie
INNER JOIN Series INNER JOIN SeriesSubscription ON Series.idSerie = SeriesSubscription.idSerie
INNER JOIN Instrument ON SeriesSubscription.idInstrument = Instrument.idInstrument
INNER JOIN Currency ON SeriesSubscription.idCurrency = Currency.idCurrency ON SeriesSubscription_1.idInstrument = Currency.idInstrument AND Series_1.Date = Series.Date
WHERE (Instrument.idInstrument = 20610)If you'd post some sample data (CREATE TABLE and INSERT statements) then I could test this.

Similar Messages

  • Better approach time series calculations

    Hi,
    I have a technical answer. In your opinion, to improve performances, is better calculate YTD, QTD, PY.... etc., values using Time Series functions available in OBIEE (YearToDatel, AGO, PERIODROLLING...) or put them in ETL Flow so OBIEE Server only must take results without any calculations?. Using OBIEE Functions the effort is less, but perhaps they create overhead for OBIEE Server so query time responses increase dramatically?
    Have you an example showing queries to perform to calculate Time Series Functions without OBIEE functions, so I can insert them in my ETL flows?
    Thanks
    Giancarlo

    OK,
    but it's better to have only one fact table containing columns for all measures I need (e.g. first column: YTD, second column: QTD, third column: MTD)... and so on (so i would have a LTS with only one Source table) or a distinct table for each measure (e.g. Table FACT_TABLE_A_YTD, FACT_TABLE_B_QTD and so on and combining them in a LTS having multiple Sources (FACT_TABLE (monthly), FACT_TABLE_A_YTD, FACT_TABLE_B_QTD)...
    Giancarlo

  • Query to calculate time frames

    hello,
    id like to write a query that will calculate time frames ;
    my source table looks like this:
    company     category     date
    ORACLE     A     1/01/2012
    ORACLE     A     2/01/2012
    ORACLE     B     3/01/2012
    ORACLE     C     4/01/2012
    IBM     A     1/01/2012
    IBM     A     2/01/2012
    IBM     A     3/01/2012
    IBM     A     4/01/2012my desired result:
    company     category     from     to
    ORACLE     A     1/01/2012     2/01/2012
    ORACLE     B     3/01/2012     3/01/2012
    ORACLE     C     4/01/2012     31/12/2999
    IBM     A     1/01/2012     31/12/2999can you please guide me with use of which functions i can achieve that?
    id appreciate any tips
    thank you
    rgds
    Edited by: UserMB on Jan 11, 2012 5:14 PM

    One way...
    ME_XE?with t as
      2  (
      3    select 'ORACLE' col1, 'A' col2, to_date('1/01/2012', 'dd/mm/yyyy') col3
      4      from dual
      5    union all
      6    select 'ORACLE', 'A', to_date('2/01/2012', 'dd/mm/yyyy')
      7      from dual
      8    union all
      9    select 'ORACLE', 'B', to_date('3/01/2012', 'dd/mm/yyyy')
    10      from dual
    11    union all
    12    select 'ORACLE', 'C', to_date('4/01/2012', 'dd/mm/yyyy')
    13      from dual
    14    union all
    15    select 'IBM', 'A', to_date('1/01/2012', 'dd/mm/yyyy')
    16      from dual
    17    union all
    18    select 'IBM', 'A', to_date('2/01/2012', 'dd/mm/yyyy')
    19      from dual
    20    union all
    21    select 'IBM', 'A', to_date('3/01/2012', 'dd/mm/yyyy')
    22      from dual
    23    union all
    24    select 'IBM', 'A', to_date('4/01/2012', 'dd/mm/yyyy') from dual
    25  )
    26  select
    27    col1, col2, min(col3), case when max(col3) = max_company_date then to_date('31/12/2999','dd/mm/yyyy') else max(col3) end
    28  from
    29  (
    30    select col1, col2, col3, max(col3) over (partition by col1) as max_company_date
    31    from t
    32  )
    33  group by col1, col2, max_company_date;
    COL1               COL MIN(COL3)                  CASEWHENMAX(COL3)=MAX_COMP
    ORACLE             B   03-JAN-2012 12 00:00       03-JAN-2012 12 00:00
    ORACLE             A   01-JAN-2012 12 00:00       02-JAN-2012 12 00:00
    ORACLE             C   04-JAN-2012 12 00:00       31-DEC-2999 12 00:00
    IBM                A   01-JAN-2012 12 00:00       31-DEC-2999 12 00:00
    4 rows selected.
    Elapsed: 00:00:00.01
    ME_XE?

  • How prepare Query for time series algorithm?

    Hi every one, 
    i want next 6 month prediction, how prepare the Query ,
    I have Date column,Crime column,Incidents Column,I going with next 6 month so how we get date columns month wise or date wise,
    if month wise means,How split the Year and month from date colum??
    Please i need some help.....waiting for reply.....
    pandiyan

    Hi Leo,
    Thanks a lot for replay.
    but using  help of this blog also this problem not solve.
    is this problem can we  solve using  "Seasonal Decomposition of Time Series by Loess".
    Regards,
    Manish

  • Time series questions - how to do AGO function for prior year end

    Question on how to perform the following calculation in OBIEE:
    I need to create a time series calculation that will calculate a metric as of Dec prior year. For example, my users will select Mar 2010. I want to show the amount for Mar 10 as well as the amount for Dec 09. If the select Jun 10, I will show them the amount for that month as well as Dec 09.
    Is there a way to do an AGO function that will give me this value? I can't use a filter calculation on my column because filter on the period will exclude these records

    Thanks John. Your suggestions seems promising but I'm having issues when I tried it out. I am receiving the following error message:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 22046] To use AGO function, the query level ('Fiscal Period, Prior Fiscal Year End Date') must be a static level. (HY000)
    What I did was create a new level off my Fiscal Time dimension which is a child of Total. I tried creating my AGO calculation using this level but received that error message in Asnwers. Any ideas on what I may be doing wrong?

  • Fragementation with Time series calculation

    Hi,
    I have three 3 tables
    Table1 for Region 1 , Frag Logic =Region = Region 1
    Table 2 for Region 2 Frag Logic =Region = Region 2
    Table 3 for Region 3 Frag Logic =Region = Region 3
    we use fragementation to query based on the region.Now i have duplicated Table 1 to calculate the Previous date for time series
    Table1 for Region 1 , Frag Logic =Region = Region 1
    Table1 for Region 1 Prev ?
    Table 2 for Region 2 Frag Logic =Region = Region 2
    Table 2 for Region 2 Prev ?
    Table 3 for Region 3 Frag Logic =Region = Region 3
    Table 3 for Region 3 Prev ?
    After adding prev tables i am almost lost,Do i need to add the Fragmentation for Prev tables also ,else we dont need as main and Prev tables are created as Alias from the base tables.Please share your thoughts.

    To use TimeSeries on Fragmentation in OBIEE, is identified as a bug
    http://obieetalk.com/time-series-and-fragmentation

  • Balance for open periods in a time series enabled cube

    Hi,
    We have a request to calculate balance for open periods in a time series enabled cube, I don’t there is any inbuilt function for this.
    Any ideas on how to calculate this without adding new members/formulae in the time dimension. Currently we compute this in the report
    EX:
    BOY(May) = Jun+Jul + … + Dec
    Thanks,

    You will have to add a member somewhere. Suppose you add it in scenario, then you could use sumrange for the current member range offsetting the current monthe by 1 and use null for the end month wich gives you the last month in the time dim.

  • TODATE time series function in OBIEE 11g

    Hi,
    I have a problem with time series function. I have month level in time dimension hierarchy.
    I have used below expression to get month to date results in my reports.
    column
    expression----> TODATE(fact.measure, hierarchy.Month level);
    when i am using this column in my reports it is showing null values. The below error i am getting in view log files
    ----------------> Converted to null because it's grain is below query's grain
    Note: Here i have measures, year,qtr,month,day,shift,hour in single physical table in physical layer.
    Is it a problem to have measures and time columns in a single physical table?
    Please let me know if you have any solution.
    Thanks,
    Avinash

    Yes, it shud be a prob. Try using seperate tables for fact n timedim

  • Issue in new macro calculating values in time series in CVC

    Hi friends.
    I'm new in APO.
    I have a problem with a new macro in CVC which calls up a FM to calculate and store data.
    This new macro calculates the selected data in time series (TS) and e.g. we select 3 days to make calculation with this macro, the first selected day in TS is ignorated.
    We created this macro to do this calculation when user enter some manual values and want it to be calculated in the deliver points in CVC, by TS.
    This macro calls up my Z function which internally calls up a standard FM '/SAPAPO/TS_DM_SET' (Set the TS Information).
    Sometimes, this FM, raises error 6 (invalid_data_status = 6), but only when I user 'fcode_check' rotine together.
    After that, we call the FM '/SAPAPO/MSDP_GRID_REFRESH' in mode 1 and 'fcode_check' rotine in program '/sapapo/saplmsdp_sdp'.
    Firstly, I thought it could be dirty global variables in standard FM so I put it inside a program and called it by submit and return command. But now I think could not be this kind of error because it did not work. And inverted the results, and now only first line os TS get storted and change in CVC.
    It's a crazy issue. Please friends. Guide me for a solution!
    thanks.
    Glauco

    Hi friend. Issue still without a correct solution yet.
    A friend changed the macro adding another step calling the same function. Now this macro has two calls in sequence to same FM. Now it's working, but we can't understand why it's working now.
    It's seems like dirty memory in live cash.
    Nobody knows how to solve this!
    Glauco.

  • Drilldowns on measure columns based on time series functions.

    Guys,
    I am new to OBIEE and i need your Help!! I have a dashbaord report which shows the sales USD for the colums below.
    REGION , PRIOR MONTH , CURRENT MONTH PRIOR YEAR , CURRENT MONTH PRIOR YEAR MTD , CURRENT MTD , ACTUALS YTD.
    All the measures are logical columns caluculated in the RPD using the Time Series Functions. The dasboard report has a Prompt Calender Date and all the measure values are caluclated based on the date entered in the prompt.
    For example if the Calender Date on the prompt is 5/31/2011 then the value for the PRIOR MONTH will the sales for APR-2011 and the value for CURRENT MONTH PRIOR YEAR will be MAY-2010 and so on.
    The business requirement is to provide the drill down capability on these measure columns. When i click the sales number on the prior month column it should give me all the detailed transactions for the month of APR-2011 considering the prompt for calender date is 31-MAY-2011.
    I have provided drilldowns based on the Navigation using the column interatcion but i am unable to understand how to provide the drilldown on the measure columns using the time series functions to caluclate the sales for PRIOR MONTH. CURRENT MONTH PRIOR YEAR...etc.
    Please Help!!!
    Thanks,
    Sandeep.

    1. Create an alias fact table (Year Ago) to pull last year value.
    2. Extend your fact table to store another measure (last year sales)
    3. Based on volume of granular data and query pattern on year ago measures, you may create aggregate fact tables.
    hope this helps.

  • Bad performance due to the use of AGO and TO_DATE time series functions

    Hi all,
    I'm building an OBI EE Project on top of a 1TB DW, and i'm facing major performance problems due to the use of the AGO and TO_DATE time series functions in some of the Metrics included on the reports. I discovered that when a report with one of those metrics is submited to the DB, the resulting query/explain plan is just awful!... Apparently OBI EE is asking the DB to send everything it needs to do the calculations itself. The CPU cost goes to the roof!
    I've tried new indexes, updated statistics, MV's, but the result remains the same, i.e., if you happen to use AGO or TO_DATE in the report you'll get lousy query time...
    Please advise, if you have come across the same problem.
    Thanks in advance.

    Nico,
    Combining the solution to view the data in dense form (http://gerardnico.com/wiki/dat/obiee/bi_server/design/obiee_densification_design_preservation_dimension), and the use of the lag function (http://gerardnico.com/wiki/dat/obiee/presentation_service/obiee_period_to_period_lag_lead_function) appears to be the best solution for us.
    Thanks very much.

  • Scatter plot using time series function - Flash charting

    Apex 3 + XE + XP
    I am trying to build a time series scatter plot chart using flash chart component.
    Situation :
    On each scout date counts are taken within each crop. I want to order them by scout dates and display them in a time series chart. Each series represents different crop.
    I am posting the two series queries I used
    Queries:
    Series 1
    select     null LINK, "SCOUTDATES"."SCOUTDATE" LABEL, INSECTDISEASESCOUT.AVERAGECOUNT as "AVERAGE COUNT" from     "COUNTY" "COUNTY",
         "FIELD" "FIELD",
         "VARIETYLIST" "VARIETYLIST",
         "INSECTDISEASESCOUT" "INSECTDISEASESCOUT",
         "SCOUTDATES" "SCOUTDATES",
         "CROP" "CROP"
    where "SCOUTDATES"."CROPID"="CROP"."CROPID"
    and     "SCOUTDATES"."SCOUTID"="INSECTDISEASESCOUT"."SCOUTID"
    and     "CROP"."VARIETYID"="VARIETYLIST"."VARIETYLISTID"
    and     "CROP"."FIELDID"="FIELD"."FIELDID"
    and     "FIELD"."COUNTYID"="COUNTY"."COUNTYID"
    and      "INSECTDISEASESCOUT"."PESTNAME" ='APHIDS'
    and     "VARIETYLIST"."VARIETYNAME" ='SUGARSNAX'
    and     "COUNTY"."COUNTNAME" ='Kings' AND CROP.CROPID=1
    order by SCOUTDATES.SCOUTDATE' ASC
    Series 2:
    select     null LINK, "SCOUTDATES"."SCOUTDATE" LABEL, INSECTDISEASESCOUT.AVERAGECOUNT as "AVERAGE COUNT" from     "COUNTY" "COUNTY",
         "FIELD" "FIELD",
         "VARIETYLIST" "VARIETYLIST",
         "INSECTDISEASESCOUT" "INSECTDISEASESCOUT",
         "SCOUTDATES" "SCOUTDATES",
         "CROP" "CROP"
    where "SCOUTDATES"."CROPID"="CROP"."CROPID"
    and     "SCOUTDATES"."SCOUTID"="INSECTDISEASESCOUT"."SCOUTID"
    and     "CROP"."VARIETYID"="VARIETYLIST"."VARIETYLISTID"
    and     "CROP"."FIELDID"="FIELD"."FIELDID"
    and     "FIELD"."COUNTYID"="COUNTY"."COUNTYID"
    and      "INSECTDISEASESCOUT"."PESTNAME" ='APHIDS'
    and     "VARIETYLIST"."VARIETYNAME" ='SUGARSNAX'
    and     "COUNTY"."COUNTNAME" ='Kings' AND CROP.CROPID=4
    order by SCOUTDATES.SCOUTDATE' ASC
    Problem
    As you can see the observations are ordered by scout date. However when the chart appears, the dates dont appear in order. The chart displays the data from crop 1 and then followed by crop 4 data, which is not exactly a time series chart. Does flash chart support time series or they have no clue that the data type is date and it should be progressive in charting ? I tried to use to_char(date,'j') to converting them and apply the same principle however it did not help either.
    Any suggestions ?
    Message was edited by:
    tarumugam
    Message was edited by:
    aru

    Arumugam,
    All labels are treated as strings, so APEX will not compare them as dates.
    There are two workarounds to get all your data in the right order:
    1) Combine the SQL statements into single-query multi-series format, something like this:
    select null LINK,
    "SCOUTDATES"."SCOUTDATE" LABEL,
    decode(CROP.CROPID,1,INSECTDISEASESCOUT.AVERAGECOUNT) as "Crop 1",
    decode(CROP.CROPID,4,INSECTDISEASESCOUT.AVERAGECOUNT) as "Crop 4"
    from "COUNTY" "COUNTY",
    "FIELD" "FIELD",
    "VARIETYLIST" "VARIETYLIST",
    "INSECTDISEASESCOUT" "INSECTDISEASESCOUT",
    "SCOUTDATES" "SCOUTDATES",
    "CROP" "CROP"
    where "SCOUTDATES"."CROPID"="CROP"."CROPID"
    and "SCOUTDATES"."SCOUTID"="INSECTDISEASESCOUT"."SCOUTID"
    and "CROP"."VARIETYID"="VARIETYLIST"."VARIETYLISTID"
    and "CROP"."FIELDID"="FIELD"."FIELDID"
    and "FIELD"."COUNTYID"="COUNTY"."COUNTYID"
    and "INSECTDISEASESCOUT"."PESTNAME" ='APHIDS'
    and "VARIETYLIST"."VARIETYNAME" ='SUGARSNAX'
    and "COUNTY"."COUNTNAME" ='Kings'
    AND CROP.CROPID in (1,4)
    order by SCOUTDATES.SCOUTDATE ASC2) Union the full domain of labels into your first query. Then the sorting will be applied to the full list, and the values of the second series will be associated with the matching labels from the first.
    - Marco

  • Read optimization time-series data

    I am using Berkeley DB JE to store fairly high frequency (10hz) time-series data collected from ~80 sensors. The idea is to import a large number of csv files with this data, and allow quick access to time ranges of data to plot with a web front end. I have created a "sample" entity to hold these sampled metrics, indexed by the time stamp. My entity looks like this.
    @Entity
    public class Sample {
         // Unix time; seconds since Unix epoch
         @PrimaryKey
         private double time;
         private Map<String, Double> metricMap = new LinkedHashMap<String, Double>();
    as you can see, there is quite a large amount of data for each entity (~70 - 80 doubles), and I'm not sure storing them in this way is best. This is my first question.
    I am accessing the db from a web front end. I am not too worried about insertion performance, as this doesn't happen that often, and generally all at one time in bulk. For smaller ranges (~1-2 hr worth of samples) the read performance is decent enough for web calls. For larger ranges, the read operations take quite a while. What would be the best approach for configuring this application?
    Also, I want to define granularity of samples. Basically, If the number of samples returned by a query is very large, I want to only return a fraction of the samples. Is there an easy way to count the number of entities that will be iterated over with a cursor without actually iterating over them?
    Here are my current configuration params.
    environmentConfig.setAllowCreateVoid(true);
              environmentConfig.setTransactionalVoid(true);
              environmentConfig.setTxnNoSyncVoid(true);
              environmentConfig.setCacheModeVoid(CacheMode.EVICT_LN);
              environmentConfig.setCacheSizeVoid(1000000000);
              databaseConfig.setAllowCreateVoid(true);
              databaseConfig.setTransactionalVoid(true);
              databaseConfig.setCacheModeVoid(CacheMode.EVICT_LN);

    Hi Ben, sorry for the slow response.
    as you can see, there is quite a large amount of data for each entity (~70 - 80 doubles), and I'm not sure storing them in this way is best. This is my first question.That doesn't sound like a large record, so I don't see a problem. If the map keys are repeated in each record, that's wasted space that you might want to store differently.
    For larger ranges, the read operations take quite a while. What would be the best approach for configuring this application?What isolation level do you require? Do you need the keys and the data? If the amount you're reading is a significant portion of the index, have you looked at using DiskOrderedCursor?
    Also, I want to define granularity of samples. Basically, If the number of samples returned by a query is very large, I want to only return a fraction of the samples. Is there an easy way to count the number of entities that will be iterated over with a cursor without actually iterating over them?Not currently. Using the DPL, reading with a key-only cursor is the best available option. If you want to drop down to the base API, you can use Cursor.skipNext and skipPrev, which are further optimized.
    environmentConfig.setAllowCreateVoid(true);Please use the method names without the Void suffix -- those are just for bean editors.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Data Mining Blog: New post on Time Series Multi-step Forecasting

    I've posted the third part of the Time Series Forecasting series. It covers:
    - How to use the SQL MODEL clause for multi-step forecasting
    - Many example queries
    - Two applications: a classical time series dataset and a electric load forecast competition dataset
    - Accuracy comparison with a large number of other techniques
    http://oracledmt.blogspot.com/2006/05/time-series-forecasting-3-multi-step.html
    --Marcos                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Many biological databases can be queried directly via the Structure Query Language.SQL is at the heart of biological databases.Oracle Data Miner load data from flat files in the database.we would create a numeric ID for the genes while loading the data and remove some columns and rows from the data, it is better to load the data directly with SQL Loader.
    http://www.genebyte.firm.in/
    Edited by: 798168 on Sep 28, 2010 11:00 PM

  • Time Series in Oracle 11g

    Oracle 8i hase Time series for defining calendars and other functions. How does Oracle 10g/11g support Time series features. I could not find any information about Time Series in the 10g/11g documentation.

    Thanks a lot for the responses.
    I looked at the 11g Pivot operator and is altogether a new feature compared to the Time series of 8i.
    I would like to explain with an example.
    1) The following query creates a table named stockdemo_calendars and defines a calendar
    named BusinessDays. The BusinessDays calendar includes Mondays through Fridays,
    but excludes 28-Nov-1996 and 25-Dec-1996. Explanatory notes follow the example.
    CREATE TABLE stockdemo_calendars of ORDSYS.ORDTCalendar (
    name CONSTRAINT calkey PRIMARY KEY);
    INSERT INTO stockdemo_calendars VALUES(
    ORDSYS.ORDTCalendar(
    0
    ’BusinessDays’,
    4,
    ORDSYS.ORDTPattern(
    ORDSYS.ORDTPatternBits(0,1,1,1,1,1,0),
    TO_DATE(’01-JAN-1995’,’DD-MON-YYYY’)),
    TO_DATE(’01-JAN-1990’,’DD-MON-YYYY’),
    TO_DATE(’01-JAN-2001’,’DD-MON-YYYY’),
    ORDSYS.ORDTExceptions(TO_DATE(’28-NOV-1996’,’DD-MON-YYYY’),
    TO_DATE(’25-DEC-1996’,’DD-MON-YYYY’)),
    ORDSYS.ORDTExceptions()
    -------------- How can I create such calendars in 11g?
    2) For example, the following statement returns the last closing prices for stock
    SAMCO for the months of October, November, and December of 1996:
    select * from the
    (select cast(ORDSYS.TimeSeries.ExtractTable(
    ORDSYS.TimeSeries.ScaleupLast(
    ts.close,
    sc.calendar,
    to_date(’01-OCT-1996’,’DD-MON-YYYY’),
    to_date(’01-JAN-1997’,’DD-MON-YYYY’)
    ) as ORDSYS.ORDTNumTab)
    from tsdev.stockdemo_ts ts, tsdev.scale sc
    where ts.ticker=’SAMCO’ and
    sc.name =’MONTHLY’);
    This example might produce the following output:
    TSTAMP VALUE
    01-OCT-96 42.375
    01-NOV-96 38.25
    01-DEC-96 39.75
    3 rows selected.
    --------------------- How can I get the above ouput without Time series functions and calendars in Oracle 11g?

Maybe you are looking for

  • MenuBar in existing frame - GREENFOOT QUESTION

    I have the following code to form a menubar: import greenfoot.*; import javax.swing.*; import java.util.Properties; import java.awt.*; import java.util.*; public class MenuBarDemo extends Actor     static {         System.setProperty ("apple.laf.useS

  • How to Fix quality issues with video in Premiere Elements?

    I am uning Premiere Elements 10 on a HP computer with sufficient RAM and an i5 processor.  When I upload footage from my Canon Vixia HF r20, it looks fine using Windows media player to play it back, but after putting it into premiere elements 10 usin

  • Partner Search Help

    Hi, Requirement is to restrict partner seach help in partner tab of the CRM Order. the values should be based on the user . Please let me know ,how can i restrict? The requirement to populate only the sold to party no's to which the current user is t

  • Custom tags or Custom Beans

    In a web application project using model 2 to encapsulate layers of application which one is batter jsp tags or javabeans ? What do u thing about their advantages and disadvantages. Because i think that both are reuseable and platform independent. Th

  • Imac  10.7.5

    Some applications want me to upgrade to Maverick.    I do not have enough GB  (2GB) to do so.    I currently use Lion.     How do I either upgrade OS or  add GB to be able to install and run  Maverick OS.      Thanks  Marg