How to get future data 3 months
Hi all
I have a requirement where I need to get future 3 months of data.
example: this month is jan
In the report, I need to get jan, Feb, March data months.
Please let me know how to do this, thanks in advance.
Thank you and best regards,
SR
Use the report filter using your column in months as below
month > = month (CURRENT_DATE) and month<>
Tags: Business Intelligence
Similar Questions
-
How to get the Date in month based on week of the month.
Hi gurus,
I have provided.
Quarter (Q) = > 1 (Jan - Mar), 2 (April-June), 3 (July-September), 4 (October-December).
Months (M) = > Jan = 1, Feb = 2, Mar = 3 in the 1st quarter.
ARP = 1, may = 2, Jun = 3 in the 2nd quarter,
Jul = 1, August = 2, Ms = 3 in Q3,
Oct 1 Nov = = 2, Dec = 3 in the 4th quarter
If I give Q = 3, M = 3, W = 1 day = Fri so I get 6-Sep-13
Similarly, if I give Q = 2, M = 1, O = 3, day = game so I get 18 April 13.
Could someone help me higher and higher.
Concerning
Sanjeev
Believing that when you say you want to say that it is 1 - 5 in a month with the 1st day of the month as the beginning of the 1st week of the week. You can try this.
SQL > t
2 as
(3)
4. Select q 3, 3 m, 1 w, 'Ven' d
5 double
6 union
7 all the
8. Select q 2, 1 m, 3 w, d 'game '.
9 double
10)
11. Select q, m, w, d, d_day
12 years of)
13 select y + (level - 1) d_day
14, ceil (extract (day of cast (y + (level - 1) as timestamp)) / 7) week_7_day
15 , t.*
16 of)
17 select add_months (trunc (sysdate, 'year') (q * 3-3) +(m-1)) y
18 , t.*
19 t
20 ) t
21 connect
22 by level<= last_day(y)="" -="" y="" +="">=>
23 and prior y = y
dbms_random.value (24 and prior) is not null
25 )
where the 26 w = week_7_day
27 and substr (to_char (d_day 'day'), 1, 3) = lower (d);Q M W D D_DAY
---------- ---------- ---------- --- ---------
2 1 3 Friday 18 April 13
3 3 1 Fri 06-SEP-13SQL >
-
How to get min date each month for six months?
Hi, I have data like this.
Process_date SEQ_No
------------- ---------
16 MARCH 13 733
9 MARCH 13 732
MARCH 2, 13 731
24 FEBRUARY 13 730
16 FEBRUARY 13 728
9 FEBRUARY 13 727
2 FEBRUARY 13 726
26 JANUARY 13 725
21 JANUARY 13 724
JANUARY 12, 13 723
5 JANUARY 13 722
29 DECEMBER 12 721
24 DECEMBER 12 720
15 DECEMBER 12 719
DECEMBER 8, 12 718
3 DECEMBER 12 717
22 NOVEMBER 12 716
NOVEMBER 17, 12 715
10 NOVEMBER 12 714
NOVEMBER 3, 12 713
29 OCTOBER 12 712
23 OCTOBER 12 711
13 OCTOBER 12 710
OCTOBER 5, 12 709
28 SEP-12 708
22 SEP-12 707
15 SEP-12 706
08 SEP-12 705
01 SEP-12 704
everymonth admin will refresh the data table and automatically this table above is updated with unique seq_no and process_date.
I need extarct min date of everymonth (first 6 months discount - excluding the months perceive) and also the seq_no associated to this month so using joins (using the seq_no - which is available in the main table) I can combine the actual data.
I need result like:
March 2, 13 731 (I don't need MAR such that it take no data for the current month)
so I need final result as below:
2 FEBRUARY 13 726
5 JANUARY 13 722
DECEMBER 8, 12 718
NOVEMBER 3, 12 713
OCTOBER 5, 12 709
01 SEP-12 704select min(Process_date) Process_date ,min(SEQ_No) SEQ_No -- assuming that se_no increases consecutive with the date, otherwise -- min(seq_no) keep(dense_rank first order by process_date) seq_no from your_table where process_date < trunc(sysdate,'MM') -- if there is data older than 6 months in your table, which is unclear -- from your description and the data --and --process_date >= add_months(trunc(sysdate,'MM'), -6) group by trunc(process_date,'MM') order by process_date desc
Published by: chris227 on 25.03.2013 03:00
Published by: chris227 on 25.03.2013 03:03
-
How to get the Date, month, year of the DateTimePicker
Hi, I am using the DateTimePicker.
There are several question about this command:
1. how to get the Date, month and year?
-With the help of myDateTime.value, I get this string ' Wed May 08 14:45 ICT 2013 '-> I have to manually analyze this? Because I need in format yyyy/mm/dd. Or can set the format of dateTimePicker.value?
2 format on dateTimePicker self (on the user interface) is d/m/YY, I can't change to another format?
Thank you
dateTimePicker.value return a QDateTime not a string.
https://developer.BlackBerry.com/Cascades/reference/bb__cascades__datetimepicker.html#property-value
See more:
https://developer.BlackBerry.com/Cascades/reference/QDateTime.html#date
https://developer.BlackBerry.com/Cascades/reference/QDate.html
You can get
day = dateTimePicker.value.date().day() month = dateTimePicker.value.date().month() year= dateTimePicker.value.date().year() dateYYYYMMDD = dateTimePicker.value.date().toString(Qt::ISODate) dateYYYYMMDD2 = dateTimePicker.value.date().toString("YYYY/MM/DD") dateYYYYMMDD3 = dateTimePicker.value.toString("YYYY/MM/DD")
-
How to get the date for the first Monday of each month
Dear members,
How to get the date for the first Monday of each month.
I wrote the following code
SELECT decode (to_char (trunc (sysdate + 30, 'MM'), 'DAY'), 'MONDAY', trunc (sysdate + 30, 'MM'), NEXT_DAY (trunc (sysdate + 30, 'MM'), "LUN")) FROM DUAL
But he looks at complex bith.
Abhishek
Published by: 9999999 on 8 March 2013 04:30Use the IW format - it will make independent NLS solution. And all you need is truncated 7th day of each month using IW:
select sysdate current_date, trunc(trunc(sysdate,'mm') + 6,'iw') first_monday_the_month from dual / CURRENT_D FIRST_MON --------- --------- 08-MAR-13 04-MAR-13 SQL>
Here is the list of the first Monday of the month of this year:
with t as( select add_months(date '2013-1-1',level-1) dt from dual connect by level <= 12 ) select dt first_of_the_month, trunc(dt + 6,'iw') first_monday_the_month from t / FIRST_OF_ FIRST_MON --------- --------- 01-JAN-13 07-JAN-13 01-FEB-13 04-FEB-13 01-MAR-13 04-MAR-13 01-APR-13 01-APR-13 01-MAY-13 06-MAY-13 01-JUN-13 03-JUN-13 01-JUL-13 01-JUL-13 01-AUG-13 05-AUG-13 01-SEP-13 02-SEP-13 01-OCT-13 07-OCT-13 01-NOV-13 04-NOV-13 FIRST_OF_ FIRST_MON --------- --------- 01-DEC-13 02-DEC-13 12 rows selected. SQL>
SY.
-
How to get LASTDAY for each month between data dates...
Hi friend
I have a doubt, how to get LASTDAY for each month between data dates...
for ex:
My contribution will be like this
date = 01/12/2011
To date = 14/04/2011
And I need an output like
31/01/2011
28/02/2011
31/03/2011
is it possible to achieve through sql query in oracle
Thanks in advance for all friends to help himHello
Something like this (assuming that the dates are originally VARCHAR2s):
SQL> var dt_start varchar2(10) SQL> var dt_end varchar2(10) SQL> exec :dt_start := '12-01-2011' PL/SQL procedure successfully completed SQL> exec :dt_end := '14-04-2011' PL/SQL procedure successfully completed SQL> SQL> select last_day( 2 add_months( 3 trunc(to_date(:dt_start,'DD-MM-YYYY'),'MM'), 4 level-1 5 ) 6 ) as result 7 from dual 8 connect by level <= months_between(to_date(:dt_end,'DD-MM-YYYY'), to_date(:dt_start,'DD-MM-YYYY')) 9 ; RESULT ----------- 31/01/2011 28/02/2011 31/03/2011
If the dates are already of the date data type, simply remove the to_date function.
-
How to get the data in the table if the date is less - than two months from the current date?
Hi all
I have a requirement in to retrieve table data. If any of the basic date in the column data.
I have a date field (expiration date) I need to display data which expires two months.
Please give me a solution.
Concerning
Shankar
Hi, Shankar,
Sorry, we don't know what you want.
If you want something which, when executed on March 13, 2014, finds all the lines where expires and is located between March 13, 2014 and may 13, 2014, inclusive,
SELECT *- or whatever the columns that you want to
FROM table_x
WHERE expire > = TRUNC (SYSDATE)
Maturity AND< add_months="" (trunc="" (sysdate)="" ,="" 2)="" +="">
;
I hope that answers your question.
If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.
Explain, using specific examples, how you get these results from these data.
Always say what version of Oracle you are using (for example, 11.2.0.2.0).
See the FAQ forum: https://forums.oracle.com/message/9362002
-
How to get a date on different pages?
Hey everyone, I am working on a daily planner for the office and I have a script that automatically generates the dates but I Don t know how to get each of the dates on another page. I would appreciate if someone could help me get each date generated by the script on the next page of my 365 page document. The scrip is:
var month = ["Jan", "Feb", "Mar", "Apr", "Peut", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "December"];
var length = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
var days = ["Sun", "Mon", "Tue", "Wed", "Game", "Fri", "Sam"];
Count = 0;
day = 0;
months = 0;
week = 5;
Str = "";
While (count < 365)
{
Count ++;
"days of Str += [weekday] +", "+ (day + 1) +" "+ month [month] +"\r ";
day ++;
If (day > = length [month])
{
day = 0;
months ++;
If (month > 11)
months = 0;
}
day of week = (day of the week + 1) % 7;
}
App.Selection [0] .silence = str;
Tanks!
Try this,
app.activeDocument.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;
app.activeDocument.zeroPoint = [0,0];
{with (App.activeDocument.viewPreferences)}
horizontalMeasurementUnits = MeasurementUnits.points;
verticalMeasurementUnits = MeasurementUnits.points;
rulerOrigin = RulerOrigin.pageOrigin;
}
var month = ["Jan", "Feb", "Mar", "Apr", "Peut", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "December"];
var length = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
var days = ["Sun", "Mon", "Tue", "Wed", "Game", "Fri", "Sam"];
Count = 0;
day = 0;
months = 0;
week = 5;
Str = [];
While (count<>
{
Count ++;
"Str [count] = days [weekday] + ', ' + (day + 1) +" "+ month [month] +"\r ";
str1 = str.toString ();
day ++;
If (day > = length [month])
{
day = 0;
months ++;
If (month > 11)
months = 0;
}
day of week = (day of the week + 1) % 7;
}
for (i = 0; i<>
{
var myTextframe = document.pages [i].textFrames.add ({geometricBounds:[0,0,50,150]});})
myTextframe.insertionPoints [0] .silence = str [i + 1];
}
Vandy
-
How to get a date to the timestamp of a file XML format
Hello
I'm trying to get a date from an external XML file. My XML file looks like this:
<>http://www.NI.com/LVData">
8.6.1
Date of birth
31/03/1983
I can get the system to retrieve the correct XML element that shows the
nested and elements , but I have no way to retrieve correctly the date. It seems as if she interprets my date seconds since 1904. I try to keep the "readable" for the end user XML, so it is important to keep this date in standard U.S. date format. I eventually uses this date to calculate the age of something. I labour code to subtract a timestamp in the format of the date to the current date and time, but I can't access it when I get back from XML. Starting from XML schema, it looks like the timestamp element requires a cluster... but there is no documentation on what to spend. Any ideas how to get back an XML date in this format in a simple and clean?
Here's my current VI:
Thank you
Ryan
Cambridge, MY
Quick Tip on "bundle by name. You don't need to consolidate all these constants where the values correspond to what is the constant of cluster at the top. The cluster constant defines the data structure and the starting values. Simply group the values for specific change items.
Example of tone would be a bit cleaner. Although the format string should use a capital T.
As always with dealing with the time, complications could arise due to dealing with time zones and leap years. Zones shouldn't matter for the calculation of the years since you are rounded up to years. Although you probably want to round down rather than round at most closely. (I forgot this part in my example). The problem with leap years when you would be only in a certain number of days of the anniversary, he would round up the age. The number of rounded days would depend on how much on leap days that nobody has seen in their lifetime.
-
How to get api data to Analytics?
Hi, I want to use the response to generate data for my js to customize and create a new report that does not build in obiee.
Is there an api response data to call? How to get it?
You have the Web service interface that allows you to run LSQL and retrieve data: http://docs.oracle.com/cd/E28280_01/bi.1111/e16364/methods.htm#BIEIT180
Or if you just want to do a record in JS, you can always do in an analysis: using view narrative, you can pass the data from your analysis to a JS object and use any JS code, you want to do the rendering (OBIEE analysis is nothing other than the Web page in the end...)
-
How to get the data to uppercase
Hi all
I have a table with 100 columns, all character only (varchar2) type. In the data that have already inserted with tiny...
Can here, my question is how I get all the data to uppercase only...
I'm trying as select upper (t.*) in tablename t; He is in error... no idea please help me...
Thanks and greetings
Stéphane
or you can create queries like this without having to type all of the columns;
Select 'select'. listagg ('upper('|| c.COLUMN_NAME||')) (',',') within the Group (order 1) |' from TABLENAME'
of dba_tab_cols c
where c.TABLE_NAME = 'TABLENAME '.
----
Ramin Hashimzade
-
How to get the dates of discontinuity
If there is discontinuity in dates how we write the query...
I need to get the dates and the dates of discontinuity.
I / p:
item_no first_date second_date
1 January 1, 10 Aug 1, 10
1-01 - 7.-10 1er January 11
1 February 1, 11 1 July 11
"
"
"
o/p:
1 1 January 10 01 - aug - 10
1 02-aug-10 (first_date + 1) 31-aug-10(second_date-1) - dates of discontinuity
1-01 - sep - 10 (second_date) 1st January 11
1 January 2, 11 January 31, 11
1 February 1, 11 1 July 11
'
'
'
Please let me know is possibleSQL> select * 2 from tbl 3 / ID FIRST_DAT SECOND_DA ---------- --------- --------- 1 01-JAN-10 01-AUG-10 1 01-SEP-10 01-JAN-11 1 01-FEB-11 01-JUL-11 SQL> with t1 as ( 2 select tbl.*, 3 lag(second_date) over(partition by id order by first_date) prev_second_date 4 from tbl 5 ), 6 t2 as ( 7 select * 8 from tbl 9 union all 10 select id, 11 prev_second_date + 1, 12 first_date - 1 13 from t1 14 where prev_second_date + 1 < first_date 15 ) 16 select * 17 from t2 18 order by id, 19 first_date 20 / ID FIRST_DAT SECOND_DA ---------- --------- --------- 1 01-JAN-10 01-AUG-10 1 02-AUG-10 31-AUG-10 1 01-SEP-10 01-JAN-11 1 02-JAN-11 31-JAN-11 1 01-FEB-11 01-JUL-11 SQL>
SY.
-
How to get the data center moref moref VM in c# using
Hi all
Could someone tell how to get managedobjectreference of data center using the VM moref? or any other easy way is? If anyone has examples of code in c# please share with me?
Thank you
Vijaya
You can get the data center in which the virtual machine resides by the following search:
VM Moref-> Parent (vmFolder)
Moref folder VM-> Parent (data center)
Parent of the virtual computer object will always be the vmFolder and the vmFolder object will always be a data center.
For more details on the model of article inventory of vSphere, take a look at this blog post - http://www.doublecloud.org/2010/03/vsphere-inventory-structure-deep-dive/
-
How to get the date - 7 days (week)
Hi all
I am beginner in Java and JSP
I'm JSP search form (VO) where I need to set a default value for the start_date - 7 days
OK I get this display today date but how to get that displays a date-7 days?
< %
DateFormat df = new SimpleDateFormat ("JJ. MM.yyyy");
Date date = new Date();
String default = 'StartDate =' + df.format (new Date());
% >
ID
Thank youSimple approach if you're not worried about leap years: -.
Date todayMinus7 = new Date(System.currentTimeMillis() - 7 * 24 * 60 * 60 * 1000);
Alternatively take a look at the GregorianCalendar class and the add() method.
-
How to get related data element repository products
How to get products of data element repository using droplets
Can help on this requirement.
Thanks in advance.Hi, in Jsp, you can use as below:
~ Abdelali
Maybe you are looking for
-
Y480 Help! Function of Lenovo and OneKey feature keys
Hello I am very frustrated. I performed a clean installation of windows 7 64 bit on my y480 after buying a new SSD. Later, I was able to install all the drivers. However, when I try to use the fn key to increase and decrease the volume, I have more s
-
DVD - R can store word/xell documents as well as photos
DVD - R can be used to store documents of Word/xell and photos if transfeering of windows XP for windows 8.1 computer computer
-
on my key board when I try to type a letter that has a number or a symble on it it type the number or the symble how to fix this?
-
VT Enablement (virtual technology)
Dear gurus, I have a HP 8100 Elite CMT - Intel Core i7 8 GB of RAM (WITHOUT BONES) and need to install VmWare ESX 5.0 on it. The installation to continue, I have to activate the technology of virtualization (VT) in the BIOS. BIOS version: 786 H 1 V01
-
Kaspersky gave me a blue screen on my vista machine?
That's what I got after I restarted my computer from a blue screen saying to restart my vista machine. He has Vista business with sp1 and 2, and it is 32-bit. Any help would be great. Doesen't software must be updated and the only current to run ant