Date find from week of year.
Hi all,
I have week number values of the year, ie values are ranging from 1-52.
i want to find out start and end dates of the week. do we have any functions provided by oracle to achieve this.
Please help me.
date find from year of week.
Similar Messages
-
Any Function Module to get date by passing week and year
Hi,
Is there any Function Module available to get date by passing week and year. For example, Week 24, Year 2005 and you get the date.
Regards,
MiraWEEK_GET_FIRST_DAY
pass 'YYYYWW' (200524) to WEEK parameter it will give you the week start date
Raja -
Date find from year of week.
Hi all,
I have week number values of the year, ie values are ranging from 1-52.
i want to find out start and end dates of the week. do we have any functions provided by oracle to achieve this.
Please help me.how about this
change level <53 so you will get it for all 52 weeks
1 select level Week_no,
2 trunc(sysdate,'Y')+(7*(level-1)) Statrt_date
3* ,(trunc(sysdate,'Y')+(7*(level-1))+6)End_date from dual connect by level<10
SQL> /
WEEK_NO STATRT_DA END_DATE
1 01-JAN-07 07-JAN-07
2 08-JAN-07 14-JAN-07
3 15-JAN-07 21-JAN-07
4 22-JAN-07 28-JAN-07
5 29-JAN-07 04-FEB-07
6 05-FEB-07 11-FEB-07
7 12-FEB-07 18-FEB-07
8 19-FEB-07 25-FEB-07
9 26-FEB-07 04-MAR-07
9 rows selected.
[pre] -
Get the starting date and end date of all weeks of a given month and year
hey Guys so far I have this.. but I am having difficulty limiting it by month. I am using Oracle 11 release 1
Select year, week, next_day( to_date( '04-jan-' || year, 'dd-mon-yyyy' ) + (week-2)*7, 'sun' ) as weekStartDate,
next_day( to_date( '04-jan-' || year, 'dd-mon-yyyy' ) + (week-2)*7, 'sun' ) +6 as weekEndDate
from (Select '2012' year, rownum week from all_objects where rownum<=5)
Thanks in advance
Edited by: Aj05 on Jan 12, 2012 7:42 AMFirst you need to define week starting day. If, for example it is Monday:
TRUNC(TRUNC(&dt,'YYYY') -1,'IW')is first Monday of the year. Then:
SELECT TRUNC(TRUNC(&dt,'YYYY') -1,'IW') + (LEVEL - 1) * 7 week_start_date
FROM DUAL
CONNECT BY LEVEL <= 53
/will give start dates of all weeks within &dt year. And:
WITH t AS (
SELECT TRUNC(TRUNC(&dt,'YYYY') -1,'IW') + (LEVEL - 1) * 7 week_start_date
FROM DUAL
CONNECT BY LEVEL <= 53
SELECT week_start_date,
week_start_date + 6 week_end_date
FROM t
WHERE week_start_date > TRUNC(&dt,'MM')
AND week_start_date < ADD_MONTHS(TRUNC(&dt,'MM'),1)
/will give you week start/end dates within &dt year and month. For example:
SQL> DEFINE dt="DATE '2012-03-17'"
SQL> WITH t AS (
2 SELECT TRUNC(TRUNC(&dt,'YYYY') -1,'IW') + (LEVEL - 1) * 7 week_start_date
3 FROM DUAL
4 CONNECT BY LEVEL <= 53
5 )
6 SELECT week_start_date,
7 week_start_date + 6 week_end_date
8 FROM t
9 WHERE week_start_date > TRUNC(&dt,'MM')
10 AND week_start_date < ADD_MONTHS(TRUNC(&dt,'MM'),1)
11 /
old 2: SELECT TRUNC(TRUNC(&dt,'YYYY') -1,'IW') + (LEVEL - 1) * 7 week_start_date
new 2: SELECT TRUNC(TRUNC(DATE '2012-03-17','YYYY') -1,'IW') + (LEVEL - 1) * 7 week_start_date
old 9: WHERE week_start_date > TRUNC(&dt,'MM')
new 9: WHERE week_start_date > TRUNC(DATE '2012-03-17','MM')
old 10: AND week_start_date < ADD_MONTHS(TRUNC(&dt,'MM'),1)
new 10: AND week_start_date < ADD_MONTHS(TRUNC(DATE '2012-03-17','MM'),1)
WEEK_STAR WEEK_END_
05-MAR-12 11-MAR-12
12-MAR-12 18-MAR-12
19-MAR-12 25-MAR-12
26-MAR-12 01-APR-12
SQL> SY. -
have i-phone 3gs purchased unlocked from usa 2 years back version 4.1 recently when i upgrade my version using i-tunes to 6.o I can not activate my i-phone , the msg server busy since last week I not understand what is the problem ?
The 3GS was not sold as an unlocked phone in the US 2 years ago and AT&T did not offer unlocking then.
You bought a hacked phone. The Apple servers can detect the hack and have now disabled activation. Contact AT&T and find out if you qualify to have it unlocked or buy a new legitimately unlocked phone. -
Find out the FISCAL YEAR by putting today date.
From which table I can find out the FISCAL YEAR by putting today date.
Thanks
Krishi Kris,
try FM GET_CURRENT_YEAR.
You have to add a date and a company code and you'll get:
current year
current period
previous year
previous period
hope this helps
ec -
When I pre ordered my iphone 6 i was told I was going to get an additional 1 gig of data per month for a year. It even shows it on the receipt i received with the phone. When will I see that reflected on my account. I have had my new phone for a week and used tons more data than usual and am hoping that will save me this month.
concretedonkey, I'm glad you were able to take advantage of this offer when you ordered your new iPhone 6. I can certainly review your account to ensure this was added for you. Please reply to the direct message I have sent you.
AndreaS_VZW
Follow us on Twitter @VZWSupport -
I am attempting to have cells use data from a selective month from the year before so that I can show actual from the prio. year each month. I need to create a spreedsheet using the the Acutlas from the year-to-date and from last year-to-date, but need to report each month.
Hi Tony,
Answering your question would be easier given a screen shot of the source table and one of what you want the summary table to look like.
Is the data you want for each month in a single cell o the source table, or does the summary table need to collect February's data (for example) from several cells and do some math with those numbers before presenting them on the summary table?
Regards,
Barry -
How to find the data loaded from r/3 to bw
hi
how to find the data loaded from r/3 to bw is correct . i am not able to find which feild in the query is connected to which feild in the r/3 . where i am geting the data from r/3 . is there any process to find which feild and table the data is comming from . plz help
thanks in advance to u allHi Veda ... the mapping between R/3 fields and BW InfoObjects should take place in Transfer Rules. Other transformation could take place in Update Rule.
So you could proceed this way: look at InfoProvider Data Model and see if the Query does perform any calculation (even with Virtual keyfigures / chars). Than go back to Update Rules and search for other calculation / transformation. At least there are Tranfer Rule and eventually DataSource / Extraction Enhancements.
As you can easily get there are many points where you have to look for ... it's a quite complex work but very usefull.
Once you will have identified all mappings / transfromation see if BW data matchs R/3 (considering calculations ...)
Good job
GFV -
How to find from which table we got the data
Hi friends ,
How can we find from which table we r getting data in the datasource.
I am getting data from crm system.based on that we created cubes and dsos.
we have only one datasource.now i need to know from which table we pull the data?
can any one give the procedure
Thanks in advance........
sridathHi,
Datasource / tables in the source system
Go to RSA2 (DS Repository) in your source system and display your source system.
If Extraction Method is 'V' - you are lucky and you see table name where data is taken from.
If it is F* - function module is used, and you have to go thru its code to see all the tables it uses and logic how data is
processed.
Ext. Meth Short text
V Transparent Table or DB View
D Fixed Domain Value
F1 Function Module (Complete Interface)
F2 Function Module (Simple Interface)
Q Extraction Using ABAP Query
A DataSource Append
OR
Since you have the extract structure and the extractor, you must have some transaction like the Extractor Checker RSA3. If so
then execute ST05, switch on the trace and execute the extractor checker. Once the extractor checker presents the results
switch off trace. The clcik on Display trace and you will see all the tables that were hit by the extractor checker to
retrieve data and present it to you.
Hope this helps.
Thanks,
JituK -
Considering buying refurbished. Is there a big difference between a refurb with an original date this year vs. one from over a year ago??
MacBook Air, 13", Mid 2013:
On June 10, 2013, Apple released an updated MacBook Air in the same form factor as the 2012 model during the company's Worldwide Developer Conference (WWDC). The 11-inch and 13-inch models have a minimum standard 4GB RAM, with a maximum configuration of 8GB. Both models are powered by the Haswell ULT 1.3GHz dual-core Intel Core i5 processors with Turbo Boost up to 2.6GHz and 1.7GHz Dual-Core i7 with Turbo Boost up to 3.3GHz option available. Each model has a 128GB configuration and a 256GB configuration available, with the 256GB model being upgradeable to 512GB SSD.
1.3 GHz (Core i5) or 1.7 GHz (Core i7)
MacBook Air, 13", Early 2014:
On April 29, 2014 Apple released an updated MacBook Air featuring faster processors and better battery life. The standard configurations also saw a price drop in most regions.
1.4 GHz (Core i5) or 1.7 GHz (Core i7)
MacBook Pro, 13", Retina, Late 2013:
At the Apple Special Event on October 22, 2013, Apple announced that it had updated the 13-inch and 15-inch MacBook Pro with Retina display. Both versions feature the new Intel Haswell chipset.
2.4 or 2.6 GHz (Core i5) or 2.8 GHz (Core i7)
MacBook Pro, 13", Retina, Mid 2014:
On July 29, 2014 Apple announced updated prices and processors for their Haswell Macbook Pro with Retina Display.
2.6 or 2.8 GHz (Core i5) or 3.0 GHz (Core i7)
I would go for the Pro Retina since the display is much better. -
How do I change the start date for the week from Monday to Sunday on my iPhone 5?
How do I change the start date for the week on iCal from Monday to Sunday on my iPhone5?
Yes. On my new iPhone 5 the iCal week begins on a Monday not a Sunday and does not give me the option to edit in settings on the phone
-
Data Retrieval speed from DIAdem Database using Data Finder Toolkit in LabVIEW
I have developed a LabVIEW code using NI Data Finder toolkit for extracting the data from the DIAdem. I have formed queries for extraction the data. But the data retrieval takes more time for extracting the data.
I have attached my LabVIEW code image along with this post. In that i have circled the VI "Results to Waveform", which is Data Finder toolkit VI which takes more time for extraction. From my Testing, query formation is taking only few millisecond to execute, but "Results to Waveform.vi" takes around 35 seconds. Also i want to execute similar kind of search for 5 times. Altogether it will taken around 1.5 mins to 2 mins for execution.
Is there any other alternative way of doing this search? Kindly help me in sorting this out.
Thanks,
Alagar
Solved!
Go to Solution.
Attachments:
Report Gen.JPG 91 KBHi Alagar,
You say that the "Results to Waveform.vi" takes "more" time, but what are you comparing this to? More than what? More than loading the contents of the same file with the TDMS VIs or with the Storage VIs? What file format are you loading data from after querying-- TDMS files, ASCII files, binary files?
What information do you want to retrieve? Do you really need ALL the values of ALL the channels in each data file? Are you interested only in the channel values, or all you interested in scalar properties stored along with the data? If you want only some of the channels loaded or if you want only scalar properties loaded, there are indeed faster ways of doing this.
Brad Turpin
DIAdem Product Support Engineer
National Instruments -
How to set default date of 3 weeks(21 days) from today's date during page load?
I want to show the default date as 3 weeks from today's date during page load.
For example ,i have given as adf.CurrentDate + 21 in EO for the attribute 'DueDate'. But it is showing me the date as 9.7.2013. 3 weeks default date is not getting set.If i give adf.currentDate also ,it not giving me today's date,it showing the 9.7.2013 only.Kindly provide your suggestions to set the default date as 3 weeks from today's date during page load.Thanks in advance.Hi,
when you set the value on the entity level then you don't want to show it during page load but when the field is empty ? Correct? if so then the use case is a different one. The easiest way to implement this would be to create a Rowimpl class (Java option) and then in the get method of the entity attribute check if the value is null and if it is, set it to the current date + 21 days. This way all rows will be set with the 3 weeks due date but fields are not overridden each time the row is queried
Frank -
Convert date format from MONTH-YEAR to dd/mm/yyyy
Dear All
i want to get parameter in form of MONTH-YEAR AND WANT TO CONVERT DATE INTO 'THIS FORMAT dd/mm/yyyy' IT GIVES ME ERROR PLEASE GUIDE.
SELECT
TO_CHAR (PTP.END_DATE,'MONTH-YY') ,
to_date ( TO_CHAR (PTP.END_DATE ,'DD-MONTH-YYYY') ,'dd/mm/yyyy'),
--- i want to gent parameter in from of MONTH-YEAR AND WANT TO CONVERT DATE INTO 'THIS FORMAT dd/mm/yyyy' IT GIVES ME ERROR PLEASE GUIDE
to_date ( TO_CHAR (PTP.END_DATE ,'MONTH-YYYY') ,'dd/mm/yyyy'),
ADD_MONTHS((to_date ( TO_CHAR (PTP.END_DATE ,'MONTH-YYYY') ,'dd/mm/yyyy'),-1)
--- i want to gent parameter in from of MONTH-YEAR AND WANT TO CONVERT DATE INTO 'THIS FORMAT dd/mm/yyyy' IT GIVES ME ERROR PLEASE GUIDE
ptp.END_DATE PERRIODS_NAME
from per_time_periods ptp
Regards
Edited by: user10941925 on Nov 28, 2011 12:23 AMHello just check
SQL> select hiredate from emp;
HIREDATE
17-DEC-80
20-FEB-81
22-FEB-81
02-APR-81
28-SEP-81
01-MAY-81
09-JUN-81
09-DEC-82
17-NOV-81
08-SEP-81
12-JAN-83
03-DEC-81
03-DEC-81
23-JAN-82
14 rows selected.
SQL> select to_char(hiredate,'month-year') from emp;
TO_CHAR(HIREDATE,'MONTH-YEAR')
december -nineteen eighty
february -nineteen eighty-one
february -nineteen eighty-one
april -nineteen eighty-one
september-nineteen eighty-one
may -nineteen eighty-one
june -nineteen eighty-one
december -nineteen eighty-two
november -nineteen eighty-one
september-nineteen eighty-one
january -nineteen eighty-three
december -nineteen eighty-one
december -nineteen eighty-one
january -nineteen eighty-two
14 rows selected.
SQL> select to_char(hiredate,'dd/mm/yyyy') from emp;
TO_CHAR(HI
17/12/1980
20/02/1981
22/02/1981
02/04/1981
28/09/1981
01/05/1981
09/06/1981
09/12/1982
17/11/1981
08/09/1981
12/01/1983
03/12/1981
03/12/1981
23/01/1982
14 rows selected.
SQL>
Maybe you are looking for
-
Hi, i'm having trouble with syncing my iPod. (after the latest iTunes-update)
It's a classic, but I have no idea what generation... but it was bought in early 08, and have 80gb. Anyway, it has been working fine all the time, but by the latest iTunes-update, it has stopped working. (mac) Every time I try to connect it with my c
-
How can i share documents with different users on the same mac?
How can i share documents with different users on the same mac?
-
Getting 'USB device not recognized' message when I never did before.
Hi there I am constantly getting a USB device not recognized when I plug in my nano. I never got this before and as a result all it does is charge. It is not showing up in iTunes anymore so I cannot remove or dowload new songs on to my nano anymore.
-
IPad and iPhone can't connect to my wifi network
10/1/13 - Last week updrade my software on my Imac and set up ICloud - could be unrelated to my problem. 1. My iMac and Apple are connect to my Belkin wifi system okay. 2. My two iphones and Ipad cant access my wifi - 'Unable to join network message'
-
Howto connect a windows client oracle on a linux serveur 9i
Hi all, I just want help for connecting one windows (2000 Pro) oracle client to a linux (Red Hat 8) oracle serveur. Thanks for all