Milliseconds From 1st of Month to Now

Is there an easy way to get the number of milliseconds from the first day of the month to the current time?

Can't seem to get it to work. I am SQL Handicapped.
Tried inserting that portion into my statement
t (below) but get errors. I want it to come back as
"iMTD".
SELECT C.grp_name As Area, A.EQ_NAME As Unit, D.DSCR,
A.Tagname As CurrTag,
B.Tagname As PlanTag, E.Tagname As UCLTag,
Tag, F.Tagname as IncenTag, To_Number(G.LKP_VALUE) as
iAvg,
Select(sysdate -
te -
to_date('01'||to_char(sysdate,'MON-YYYY'),'DD-MON-YYYY
'))*24*60*60*1000 As iMTD
FROM (Select * From ip_eq_attr Where attr =
'UTZ_CURRENT') A,
(Select * From ip_eq_attr Where attr =
= 'UTZ_PLANNED') B,
(Select * From ip_eq_attr Where attr = 'UTZ_DELTA')
) E,
(Select * From ip_eq_attr Where attr =
= 'UTZ_INCENTIVE') F, ip_eq_grp C, IP_EQ D,
(Select LKP_VALUE From IP_LKP Where LKP_NAME =
= 'XOMDVBTUCLAVG') G
WHERE C.eq_name = A.eq_name
     AND D.plant = C.grp_name
     AND D.eq_name = A.eq_name
     AND A.eq_name (+) = B.eq_name
     AND D.eq_name (+) = E.eq_name
     AND C.eq_name (+) = F.eq_name
ORDER BY C.grp_name, A.eq_nameTake the select in bold out of your script.

Similar Messages

  • 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!
    Palash

    Hi 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

  • TS3899 I upgraded to iOS 7 and I lost emails that were in my inbox - I used to see all emails that I did not delete, now I only have emails from the past month - how can I get the old, undeleted emails back? Or, at least, show email older than one month o

    I upgraded to iOS 7 and I lost emails that were in my inbox - I used to see all emails that I did not delete, now I only have emails from the past month - how can I get the old, undeleted emails back? Or, at least, show email older than one month old?

    I upgraded to iOS 7 and I lost emails that were in my inbox - I used to see all emails that I did not delete, now I only have emails from the past month - how can I get the old, undeleted emails back? Or, at least, show email older than one month old?

  • My phone's earphone doesn't work which was bought from USA last month,the china apple store didn't accept the free repaired,so what can i do now?

    my new iphone5s's earphone doesn't work which was bought from USA last month,probably it was cause by falling down on floor insidentally one day before I came back china , the problem is ,the china apple store didn't accept the free repaire even the phone was bought only one month age, I was so disappointed and realized the iphone 5s is so  fragile,although I previous iphone4 which was also bought from USA 4 years age, it also fell down many times, it still works well now.  what can i do now? send it back to USA for repairing? if like that,it will take almost two month to finish the all processes,that not only waste the time spent on the way, also waste expense on the expense,the important prlblem is,  I can't use the phone during the repairing~ please give me a solution as soon as you can ,thank you very much!

    You can send it to someone you know in the US to have them take it in for service or you can get on a plane and take it there yourself. You can not ship it to Apple in the US for service.

  • HT2589 ?Frustrated, unable to discontinue Hulu Plus account that i took complimentary for one month and now can't stop from automatic renewals. Easy to sign up; impossible to cancel. Misrepresentation in marketing?

    Frustrated, unable to discontinue Hulu Plus account that i took on a complimentary basis for one month, and now can't stop from automatic renewals. Easy to sign up; impossible to cancel. Misrepresentation in marketing?

    http://www.hulu.com/support/article/203239

  • How to get a iphone 5s from iphone 5, i bought mine from walmart 4 months ago and now want the new one is there a plan that they have like you only pay a little if yoou take your iphone 5 ??

    i bought mine from walmart 4 months ago and now want the new one is there a plan that they have like you only pay a little if yoou take your iphone 5 ??

    Why do you believe you are entitled to an upgrade?
    Do you get to upgrade to a new car when the manufcaturer releases a new model?
    What about tv's? Computers? Appliances?
    This is no different.  If you want the newest model, buy it.

  • I bought an MacBook Air 13 from Dubai last month. However I see smudge lines on the screen of the laptop which are prominent if the screen is black. Does the macbook air have international warranty ? Since I am in India right now. Can I get it fixed here

    I bought an MacBook Air 13 from Dubai last month. However I see smudge lines on the screen of the laptop which are prominent if the screen is black. Does the macbook air have international warranty ? Since I am in India right now. Can I get it fixed here ?
    -Ankit

    I don't know what service options are available in India but if this helps I do know that once you purchase your Apple product the warranty is valid anywhere in the world.

  • What does backup mean? i want my previous data which i have been backed up. i lost my previous data from phone and my back up too.i want my previous data now.apple should make a system where backup keeps all history from 1st to last.

    what does backup mean? i want my previous data which i have been backed up. i lost my previous data from my phone and my back up too.i want my previous data now.apple should make a system where backup can keeps all history from 1st to last.when new back up done, new back up should keep previous back up or old backup with it. by which when i restore my phone i can have my data from 1st to last.
    i am feeling sad that my all text were gone. that was very important to me.

    Follow the steps in wjosten's post here: https://discussions.apple.com/message/13356770#13356770 (for Windows, substitute Outlook in step 2).

  • I M FACING PROBLEM USING MY EMAIL ACCOUNT IN FIRE FOX FROM LAST 2 MONTHS. PLEASE HELP ME WHWT SHOULD I DO SO I CAN ENJOY AS PREVIOUS. HERE I HAVE TO CLEAR THAT I CAN SEE MY MAILS IN IE6 REGULAR TILL NOW BUT NOT IN FIRE FOX.

    SIR, my email account is [email protected] i am using firefox since last one year and enjoying it happily. but from last two month i have trouble in seeing my mails in firefox. but there is no problem in I.E.6. so please tell me what happend. either i had made any disturbance in firefox setting on my laptop or there is any other problem.
    here i have to specify that i tried to open my friends email accounts also. but no email account is opening. i m using firefox version 4.

    forgot to mention my email account is through Cox communications (pop server) if this is important to know.
    Thanks again!

  • Dear sir thanks for new ios7;please see the calendar in hijri shamsi and compare it with original calendar! Why this difrence? Please compatible start of the years from 1st of farvardin month.

    Dear sir thanks for new ios7;please see the calendar in hijri shamsi and compare it with original calendar! Why this difrence? Please compatible start of the years from 1st of farvardin
    1392/01/01 = 21/march/2013

    Apple does not participate in this forum, it's only used by users like you.

  • Issue on payroll area which is changing from biweekly to monthly in Mid of

    Dear Experts,
    I have an issue on payroll area which is changing from biweekly to monthly in Mid of the Month.
    One employee was retired on 29th of March, so his payroll area was changed from biweekly to monthly on 29th. For retire we are running the payroll on 8th of every month. When we are running payroll for April he has received only 29th and 30th retire salary, by the time he is not yet retired also.
    In this case the main problem is monthly payroll time is early then biweekly. so the employee is getting retire salary then his regular pay.
    Can you guide me where we can control that monthly payroll area should not be triggered at this movement.
    Thanks
    Chandra

    You can do that but it is not that easy as it sounds if you have to do that over a period of say 10-20 years...lot of operational work!!
    Also say if you load the retiree action one month ahead say on 03/01/2011. And the employee is retiring on  03/29.
    Retire payroll is on 04/08
    Biweekly is on 04/15
    Now you decide to lock the employees after the 1st biweekly check of March...say which was process 14 days before 04/15 would be 04/01. The employee number is locked between 04/01 to 04/15. For 14 days you have locked these employees!!
    What happens if there is adjustment pay...you have to manually go and unlock the employee and lock him after the adjustment check.
    I will let you decide based on the comfort, SAP effort, Operational effort and system maintenance.

  • Why has my iCloud calendar deleted everything from 31st august back to beginning of the year but everything from 1st September is still there!

    Why has my iCloud calendar deleted everything from 31st august back to beginning of the year but everything from 1st September is still there! All the information was there this morning and now it's all gone!!

    Welcome to the Apple Community.
    Settings > Mail, Contacts, Calendars, scroll down to the Calendars section and change the sync option to something other than 'Events 1 month back'.

  • EBP purchase order status is comming as blank from last 5 months

    Hi,
    Advance thanks for BW experts.
    Here is the issue I am facing.
    We are extracting shopping cart data from EBP(SRM) daily.
    We are using Data source as '0BBP_TD_PO_1' in SRM.
    In BW it is coming to ODS '0BBP_PO' for collecting data.
    Info source we are using is '0BBP_PO_TD_1'.
    The problem is EBP(SRM) Purchase order status coming as blank from last 5 months, we are using every thing standard objects, no routine, i checked in BW side. I found that purchase order status field coming as blank from SRM. It seems to some problem in extractor?.
    If any one experts in SRM-BW please help me on this how to proceed?.
    for more information PO status filed (InfoObject) in BW is -0bbp_PROPO

    hi,
    take a look sap oss note 827638
    check also 824410,809118
    827638
    Symptom
    Status is blank
    Other terms
    0BBP_TD_PO_1, PO extractor, I1016, Status rejected
    Reason and Prerequisites
    The rejected status is not considered while extraction
    Solution
    Got a mail from customer regarding all the possible statuses which is not populated while extraction.
    Status   Populated or not ?
    Ordered                                             X
    Awaiting Approval                                  X
    In Your Inbox
    Release Rejected
    Held                                                X
    Deleted                                             X
    Outstanding Confirmations Outstanding Invoices
    Transfer Failed                                    X
    Confirmed by Vendor
    Partly Confirmed by Vendor
    Rejected by Vendor
    Changes Transmitted Obviously we dont report on all these statuses in BW but release rejected might be an important status and BATA (customer no: 169433) needs this status to be extracted through the PO extractor. I am changing the extractor code for this status. In future we can enhance this note to take care of other statuses relevant for BW. For now other statuses seems to be not usufull for BW reporting.

  • Passing sysdate in milliseconds from OAF page to PL/Sql proc

    Hi All,
    I have a requirement wherein I need to pass SYSDATE in milliseconds from OAF page to the PL/SQL package.
    Basically I will be calling a PL/SQL api from AM . So here I need to pass SYSDATE in milliseconds as one of the PL/SQL proc parameters.
    How do you I go about this ?
    Any help is aprreciated.
    Thanks in Advance

    get the current database date by
    oracle.sql.date currentDate=OADBTransaction's method getCurrenctDBDate ()
    (OADBTransaction object can be obtained from AM Object itself).
    Now you may convert this currentDate to java date object.
    currentDateObjAsJavaDate=currentDate.toDate()
    now miliseconds (since1970, I remember so, please see documentation) =currentDateObjAsJavaDate.getTime();

  • I'm having an intermittent problem with my midi controllers triggering Mainstage 3. I'm using a PreSonus Firebox audio interface. It's been working fine for months, but now when I first turn on the computer in the morning , I'm not able to trigger Ma

    I’m having an intermittent problem with my midi controllers triggering Mainstage 3.
    I’m using a PreSonus Firebox audio interface.
    It’s been working fine for months, but now when I first turn on the computer in the morning , I’m not able to trigger MainStage from the keyboard.  I tried different midi controllers, different keyboards, different midi cords, and check midi preferences.  The audio interface is working fine and is recogonized, but the midi doesn’twork.  I re-started the computer several times and then finally it miraculously starts working again.
      I’ve been having to this every day now.  Any help or ideas is very much appreciated.

    I Had the same problem with a FireStudio. Try unplugging the FireWire plug and the power plug. Wait for a few seconds, then plug both back in. The light on my FireStudio was flashing blue/red which means "not connecting." I did what I just described, and everything works again. Hope it works for you.

Maybe you are looking for

  • HT5093 Problem with camera in maya 2011

    why sometimes my model appears so small in the iBook app? I´m using maya 2011, openCollada exporter.

  • Bluetooth in car ios 8.1 still bad

    8.1 has not fixed my Bluetooth conne took in my Mazda CX-9. I can receive calls but cannot make outgoing calls. I have to keep forcing the connection from the phone and it won't ring thru the car. Once someone answers on the other end then I can conn

  • Pros and  cons  of  select  for  update  clause

    hi, Can anybody explain what are the pros and cons of select for update clause 11.2.0.1

  • SIP contact detail vs. Internet telephone detail i...

    Hi, I am working more and more on my internet telephony options these days and I can across something I did not knwo the difference of, and if someone could shed some light/experience, it would greatly be appreciated. thank you... I have a contact SI

  • DVD Spinning all the time (x-

    After installing my new x-fi ex_music, i have found that my LG DVD rw spins continuously whenever a cd/dvd is in the dri've! It gets pretty hot too! i googled it and it seems it is something to do with this x-fi card, Any ideas? p.s. The crackling's