How to display from JANUARY to Current Month(SEPTEMBER) in dual.
Hi Dudes,
I want to display months from JANUARY to Current month
here my input is sysdate,so it should display from January to sysdate month(i.e) upto september
how it is possible in a query?
Hi dudes,thanks a lot for all your help.
i would like to display all your output which i have i got in my screen
so it will be helpful for others also
SQL>select to_char(add_months(to_date('01-01-'||to_char(sysdate,'yyyy'),'dd-mm-yyyy'),level -1),'Month') months
2 from dual
3 connect by level <= ceil(months_between(trunc(sysdate),to_date('01-01-'||to_char(sysdate,'yyyy'),'dd-mm-yyy')))
4 /
MONTHS
January
SQL>select to_char(to_date(to_char('01/'||to_char(to_char(sysdate,'MM')-level+1)||'/'||to_char(sysdate,'YYYY')),'dd-mm-yyyy'),'MONTH')
2 from dual connect by level < = to_char(sysdate,'MM');
TO_CHAR(T
SEPTEMBER
SQL>select to_char(add_months(trunc(sysdate,'YYYY'),level -1),'Month')
2 from dual
3 connect by level <= ceil(months_between(trunc(sysdate),trunc(sysdate,'YYYY')));
TO_CHAR(A
January
SQL>select distinct to_char(dt,'Month') dat from
2 (
3 select dt from
4 (
5 SELECT TRUNC(SYSDATE,'y')-1+ROWNUM dt
6 FROM all_objects
7 WHERE ROWNUM <= ADD_MONTHS(TRUNC(SYSDATE,'y'),12) - TRUNC(SYSDATE,'y')
8 ) where dt between trunc(sysdate,'yyyy') and sysdate
9 ) order by to_date(dat,'Month');
DAT
January
February
March
April
May
June
July
August
September
9 rows selected.
SQL>THANKS ALL...
Similar Messages
-
How to display records based on current month and last month???
i have a query that want to display the data for current month and last month. when i try to view the reports, all the data/key figures is return all in 0.00.
i modify the variables for this current month and last month but still the results is the same. i could not see the data. any advise on how to modify the variables for this current month and last month? i am thinking my variables is wrong.
for the current month variable:
the type of variable is characteristic value, processing by customer exit, reference characteristic is calendar year/month.
thanks for all who are kind to help me here....Hi,
If you install the variables from BC correctly and they are in active state, you can use them directly use them. check for this month the total values at info cube is ZERO or some value. as you told you are getting ZEROS for your input.and check the data at cube level based on your query design, apply all restrictions, fileters and see do you get any data at cube level and compare with report. -
How to display the index of current desktop when enable multiple spaces
I was using 10.6 before and used to using Spaces and puts applications into different desktops.
Now I'm using 10.8 and I know that the Spaces has been integrated into Mission Control.
The problem is, I can see the current desktop on the top bar in 10.6, but in 10.8 I cannot see it so I usually forget where I am.
Does anyone know how to display the index of current desktop?Does anyone know how to display the index of current desktop?
Brute force - - I have written the number of the Desktop directly onto the wallpaper picture I am using for each Desktop (easy to do with Preview).
All Desktops are using different wallpaper photos, so they are easily recognized by the color scheme, and in the upper left corner is the number.
Regards
Léonie -
MDX to fetch record from 1st of current month to 5th of next month and same for previous year
In my date dimension I have a attribute CalendarDate. I do have a hierarchy [Date].[Year].[Quarter].[Month].[CalendarDate] as well. I need to fetch data starting from 1st working day of current month to 5th working day of next month by MDX. I do have a attribute
to filter working day as IsWorkingDay. How can we get a dynamic MDX that will find the current month first and than it will filter the record from 1st working day of current month to 5th working day of next month. And same for the previous year same month
to compare.
Thanks in advance!
PalashHi P,
You can use a calculated member to dynamically add all the days in the current month and the first 5 in the following month. You will need to change measure, cube and hierarchy names.
with member measures.ThisMonthAnd5 as
sum([Date].[Year].parent.children,Measures.[Sales])
+sum(Head([Date].[Year].parent.nextmember.children,5),Measures.[Sales])
select
{Measures.[Sales]
,Measures.ThisMonthAnd5
} on 0,
non empty [Date].[Year].[CalendarDate]
on 1
from MyCube
Richard -
How to display the username and current date in OAF page Footer region
Hi,
I need to display the username and Current-Date in footer region.If anybody knows the procedure then please share with me.
Thanks
Divya AgarwalHi,
Read this Thread:--
You have to capture the UserName and Date in the Process Request Method of page Controller and invoke a method which will subsequently get and set the value in some attribute.
String userName = pageContext.getUserName();
How to populate Current Date and Time in OAF page through CO
Thanks
--Anil -
How to get week of the current month
Hi all,
Is there any way to find out week of the current month.
Please help..Do not confuse date format and the parameter in the file NqsConfig.ini
http://gerardnico.com/wiki/dat/obiee/bi_server/nqsconfig
As say in the previous link, you must check in the NqsCOnfig.ini file that you have this line
DATE_TIME_DISPLAY_FORMAT = "yyyy/mm/dd hh:mi:ss" ;because the cast function take it as format to discover the day, month and year.
Besides, the functions WEEK_OF_YEAR AND MONTH don't care about the date format, they only need a date.
Check here this article :
http://gerardnico.com/wiki/ide/toad/toad_date_format
To see that the date format is much more a question of rendering (for OBIEE, Toad or SqlPlus) than of data.
Verify your NqsConfig.ini and give a try.
Success
Nico -
How to calculate age based on current month and over the next 12 months in Webi 4.1
Hi,
I am working on a report where I need to show employees who turned 65 from the time the report is run to over the next 12 months.I have the 'Date of Birth' field available. I am using Bex Query as a data source and webi 4.1. How do I calculate this in Webi 4.1. I appreciate any help.
Thank you,
Charvi.Hi Charvi,
Get the all employees who are all in 64 age bucket till yesterday. Keep indicator for these employees.
Then obviously these employees will be falling in 65 age in coming 12 months/365 days.
Same you can get at Bex level also. Create formulae :
if employee age = 64 then 1 else 0.
(AGE = 64 * 1 + 0)
Then create condition on this formulae as Value = 1.
Revert back your feedback.
Regards, Vijay -
ALV Report how to display from and to date values in the header.
I develoeped alv report . i want to display selection screen from and to date values in top of page...
any sample code pls guide me..You have to do many things...
first find the selection details using the FM.
RS_REFRESH_FROM_SELECTOPTIONS
use the Blog to Align/populate the Header from the selection table
/people/community.user/blog/2007/05/07/alignment-of-data-in-top-of-page-in-alv-grid -
How to display a date in DD MONTH(SPELL) FORMAT?
HI ALL,
i need to display the date in DD mmm format ie if the date is 11.05.2007
then the datye will be displayed as 11 may...but this may will not be in english language it will be in italian..is there a function module to do this?
Please suggest how to do this..Hi
first convert the date to YYYYMMDD
CONVERSION_EXIT_PDATE_INPUT
then pass the date to this FM
Try using this FM
CONVERSION_EXIT_SDATE_OUTPUT
Import parameters Value
INPUT 20070220
Export parameters Value
OUTPUT 20.FEB.2007
regards
Shiva -
How to display from IPOD to TV
Is there any way to display what I am looking at on my IPOD 4 to my TV. I have a cable that works fine for videos and music but it wont allow photos, documents or anything else to display. Is there an app I need to get or something? I was hoping the ios 5 would have fixed this but no such luck.
ThanksIt only works on the 4G iPOd if the apps supports TV out.. The app description will say if it supports TV out. You will then need a cable like dock connector to VGA or dock connector to Digital out.
The iPad 2 and iPhone 4S are the olny iDevices the can mirror the devices screen on a TV. -
How to display Open Items (with current status as Cleared) for prior date?
Hi all,
We have an existing Customer Balances report wherein we are able to veiw the Debit/Credit amount Of all the open items based on the input date given by the user but unable to view the items which have been cleared later for the items opened on the mentioned date.
However, in case of ECC, if the user enter a specific key date, he is able to view the Open & Cleared items for the mentioned date.
The user is expecting the same logic for the BW report.
E.g: If i run the report for date 30th Oct, 2010 and for Comp Code X; then the output should show all the Open items as of date 30th Oct, 2010 irrespective of the case that some of the items have been cleared later than the mentioned date.
PLEASE HELP!!!!!!!!!!!!!!!Hi Sneha,
I think you are talking about the open item means opening balance as on date along with the sales or collections or adjustments and the Closing balance as on date right?
for this we had designed in modeling. our requirement is also similar one which shows the opening bal,, sales ,coll ,adjustments and closing balance. for a particular customer and company code entered in selection screen.
For this in order to get the open items
we had create a new cumulative key figure in which i had taken
inflow : debit amount
outflow: credit amount
you will get the closing balance.
For getting the opening bal we had a formula like
opening bal+sale-Adj-coll = closing bal
now in order to cal opening bal=closing bal-salesadjcoll
in this way we acieved the requirement.
if you can give more details can help u on this.
i think you are using 0FI_AR_4 data source for your requirement right?
Regards
KP -
How to display Month values in SSRS report
Hi All,
I have a requirement to display month values in SSRS Chart. x-axis should display all month names from January till current month. How can I set this properties and show it in a line graph
Thanks & Regards,
Regards RCPHi,
The above link is not meeting my requirement. I need January till July to be displayed in x-axis
labels of graph. How this can be achieved ??
Regards RCP
You can create a calendar table on the fly and use it for your dataset to be used in the graph. Use logic as below
http://visakhm.blogspot.in/2010/02/generating-calendar-table.html
For getting January till current month use query as
DECLARE @Start datetime,@End datetime
SELECT @Start = DATEADD(yy,DATEDIFF(yy,0,GETDATE()),0),
@End = GETDATE()
SELECT *
FROM dbo.CalendarTable(@Start,@End,0,1) f
As a long time persistent solution best option would be to create a calendar table in the database.
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Display current month records only
Hi Experts,
I have the following requirement.
Report should display current month records only.
For example If the report is run on 20090324, It should display records from 20090301 to 20090324.
That means, report may run on any date of that month, It should display from 01 (of that month) to current date.
I have a select statement saying
SELECT * FROM likp
WHERE wadat_ist BETWEEN month_start_date AND sy-datum
AND vkorg IN s_vkorg
AND vkbur IN s_vkbur
AND kunnr IN s_kunnr.
How to calculate date for month_start_date, so that it can display only current month records.
Thanks in advance
RohanHi Kunta, Suhas, Nandi,
Thank you for your quick reply, I really appreciate it.
for this current month records, I need to display a check box saying
Open orders and shipments with the current month.
But where as Selection text is accepting 32 characters only. Is there any possibility to overcome this?
Thanks in advance
Rohan -
How to display 6 days, 29 months, today, etc
Hi experts,
Been trying to figure out how to display 6 days, 29months, 1 month in result but couldnt figure out how. I searched in the internet and it gives me the idea of using add_months().
However, im not sure how am i gonna use it on my end.
For example,
Last login date was September 5, 2012. Then it should display 2 months. im not sure how to implement it on a query.
oracle version:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
"CORE 11.2.0.1.0 Production"
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - ProductionLet me know if you need more info.
regards,
jhi,
thanks for your response.
This is my query
select us.n_unitid
, u.c_externalid
, us.c_unitname
, (select to_char(sysdate,'MM') - to_char((to_date(max(d_date),'dd/mm/yyyy')),'MM') from dual) -- your query
, (select (to_char(max(d_date), 'dd.mm.yyyy'))
from userstats
where n_unitid = us.n_unitid) "Letzter Login Date"
, (select count(*)
from userstats
where n_unitid = us.n_unitid) "Logins"
from userstats us, unit u
where us.n_unitid = u.ip_unitid
and u.nf_statusid = 1
and us.n_groupid = 97
group by us.n_unitid, u.c_externalid, c_unitname;how would I add your query to my query? sorry if im asking so many questions.. you are using dual here. How would i get the d_date value from userstats table?
Thanks. -
How to display the details of particular order when click on button in sapui5
Hi Experts,
How to display the details of particular order when click on button in sapui5?
I Have a requirement that is i want display all the list of orders coming from backend as shown in image below
then in that i have a button when i press the button it need to display the details of particular order as shown in image below
Please help me .
Thanks & Regards
chittiDoes anyone know how to display the index of current desktop?
Brute force - - I have written the number of the Desktop directly onto the wallpaper picture I am using for each Desktop (easy to do with Preview).
All Desktops are using different wallpaper photos, so they are easily recognized by the color scheme, and in the upper left corner is the number.
Regards
Léonie
Maybe you are looking for
-
I have recently had the same problem over and over again and the only way to fix it is to restart. After some time using my computer it all of a sudden begins to stop letting me write to the hard drive. It does not let me open disk utility or most pr
-
Error in cacelling billing document in t.code VF11
Dear Friends, When i have Cancel billing document with t code VF11, following error occuared Error Log 1102277799 000000 Cancellation document is not the same as the original billing doc. 1102277799 102277799 000000 Data inconsistency during processi
-
Hi, just purchased a new video Ipod and plan on using it in the car. FM transmitter is not an option due to too much interference in NYC area. Now I already use a cassette adapter to listen to satellite radio and found it ok so was planning to do sam
-
MAXL Statement to Export Alias table
I'm having a hard time finding the correct MaxL to export and alias table -- basically I need to export default table, shift some time periods and years and then reload it as a different alias table. Any help is appreciated!!! [email protected] -- Th
-
My Iphone is stuck on silent?
For some reason my phone is on silent and won't ring.. I can't work out how to change the settings.. I've tried and it just won't work.. This happend after I used the ipod setting..