Query to Convert EST/PST//MST.. to IST

Hi,
I have a requirement where in i need to capture the task assigned by any client (located in US/UK) to our local DBA team and schedule the task and alert the DBA resource to attend the task at local timezone..
Hence I need to convert the timezone(EST/PST..) to IST
I tried new_time() function,but it doesn't support IST timezone..
Kindly suggest any other solution which is appropriate
Thanks

Well I have to take care of both EST/EDT ,PST/PDT,CST/CDT and there are many clients across with different timezone,hence it has to be a consolidated Functionality

Similar Messages

  • Converting EST to GMT

    I am looking for a foolproof way to convert EST to GMT using Java APIs.
    I believe GMT is not daylight sensitive and hence, we cannot dependent on a constant difference all through out the year.
    Here's what I got in my mind.
    TimeZone.setDefault(TimeZone.getTimeZone("EST"));
    Calendar calendar = Calendar.getInstance();
    calendar.setTime(currentDate);              //Timestamp of current EST
    GregorianCalendar gmtCal = new GregorianCalendar();
    TimeZone.setDefault("GMT");
    gmtCal.setTime(calendar.getTime());
    gmtCal.setTimeZone(TimeZone.getTimeZone("GMT"));
    //now gmtCal has current GMT time inspite of daylight changes in EST.Is this correct?
    Thanks in advance.

    TZ only really matters when you're converting between String and Date, so use SimpleDate format. (It's in beanshell, but you can put it almost straight into java.) bsh % import java.util.Date;
    bsh % import java.text.DateFormat;
    bsh % Date date = new Date();
    bsh % df = DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL);
    <java.text.SimpleDateFormat@8d55ee0f>
    bsh % df.format(date);
    <Monday, March 27, 2006 8:33:28 AM PST>
    bsh % df.setTimeZone(TimeZone.getTimeZone("GMT"));
    bsh % df.format(date);
    <Monday, March 27, 2006 4:33:28 PM GMT>

  • Which conversion software can I download to mac to convert outlook .pst files to mac .mbox files?

    Can anyone recommend software I can ddownload to an iMac to convert outlook .pst files stored on a memory stick to .mbox files for transfer to mac mail?  I have mail files I set up in outlook I need to transfer to my new mac, but have no internet connection on pc, so can't download anything on to it and have had to export .pst files to a usb stick.

    Will I be able to get my (Mac sourced) songs and podcasts onto the IPOD from the sharing Windows computer?
    No, iTunes library sharing only allows you to listen to music in the shared library.
    Another question: is there any way to duplicate my actual song files to the Windows XP computer so that I don't have to turn on the Mac in order for itunes to function on the XP machine? All my song files are on the Mac.
    Yes, use the network to copy the files from the Mac to the PC.
    tt2

  • Query to convert Row to column - Re-posting

    Hi all,
    i am re-posting the same requirement, please do the needful.
    I need a query to convert row value into column delimited by ','
    create table tb_row_2_col (id number,val varchar2(100));
    insert into tb_row_2_col values (1,'col1');
    insert into tb_row_2_col values (1,'col2');
    insert into tb_row_2_col values (1,'col3');
    insert into tb_row_2_col values (2,'col4');
    insert into tb_row_2_col values (2,'col5');
    commit;
    SQL> select * from tb_row_2_col;
    ID VAL
    1 col1
    1 col2
    1 col3
    2 col4
    2 col5
    SQL>
    if i execute a query the output should be like this
    ID VAL
    1 col1,col2,col3
    2 col4,col5
    Thanks in advance
    S. Sathish Kumar

    Most repeated question in the forum..
    SQL> select id,max(ltrim(sys_connect_by_path(val,','),',')) res
      2  from (select id,val,
      3           row_number() over(partition by id order by val) rn
      4        from tb_row_2_col)
      5  start with rn = 1
      6  connect by prior rn = rn -1
      7          and prior id = id
      8  group by id;
            ID RES
             1 col1,col2,col3
             2 col4,col5<br>
    Message was edited by:
    jeneesh
    Check here for variations..

  • Query to convert Row to column

    Hi all,
    I need a query to convert row value into column delimited by ','
    create table tb_row_2_col (id number,val varchar2(100));
    insert into tb_row_2_col values (1,'col1');
    insert into tb_row_2_col values (1,'col2');
    insert into tb_row_2_col values (1,'col3');
    insert into tb_row_2_col values (2,'col4');
    insert into tb_row_2_col values (2,'col5');
    commit;
    SQL> select * from tb_row_2_col;
    ID VAL
    1 col1
    1 col2
    1 col3
    2 col4
    2 col5
    SQL>
    if i execute a query the output should be like this
    ID VAL
    1 col1,col2,col3
    2 col4,col5
    Thanks in advance
    S. Sathish Kumar

    Or look for aggregation techniques against the forum helping by the search feature (top-right of the current page).
    Nicolas.

  • Need query to convert Single Row Multiple Columns To Multiple rows

    Hi,
    I have a table with single row like below
    Column0 | Column1 | Column2 | Column3 | Column4|
    Value0    | Value1    | Value2    | Value3    |  Value4  |
    Am looking for a query to convert above table data to multiple rows having column name and its value in each row as shown below
    Column0 | Value0
    Column1 | Value1
    Column2 | Value2
    Column3 | Value3
    Column4 | Value4
    Thanks in advance.
    Mohan

    Hi ykMohan,
    Dynamic UNPIVOT can be applied in this case as well.
    CREATE TABLE dbo.T(ID INT,Column0 VARCHAR(99),Column1 VARCHAR(99),Column2 VARCHAR(99),Column3 VARCHAR(99),Column4 VARCHAR(99))
    INSERT INTO T VALUES
    (1,'Value0','Value1','Value2','Value3','Value4'),
    (2,'Value0','Value1','Value2','Value3','Value4');
    DECLARE @columns VARCHAR(MAX)
    SELECT @columns=
    STUFF(
    SELECT ','+ COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME ='T' AND TABLE_SCHEMA='dbo' AND Column_name NOT IN('ID') FOR XML PATH('')
    ),1,1,'')
    DECLARE @Sql NVARCHAR(MAX)
    SET @Sql =
    'SELECT ID, UPT.col,UPT.val FROM T
    UNPIVOT
    (val FOR col IN('+@columns+')) AS UPT'
    EXEC sp_executeSQL @Sql
    DROP TABLE T
    If you have any feedback on our support, you can click
    here.
    Eric Zhang
    TechNet Community Support

  • Need help with query for converting columns to rows

    Hello,
    I know this is a very common question asked in the forum. I have searched regading this, i did find some threads, but i was not able to achieve what i require from the answers posted. So anybody please help me.
    I have a table which is having multiple columns as follows:
    Insert into table_1 (X,Y,Z,A,B,C,D,E,F,G,H,I) values (0,0,2,0,0,1,3,0,0,0,0,0);I want to convert the result into a two column, multiple rows i.e., I want the result as follows:
    Col1 Col2
    X      0
    Y     0
    Z      2
    A     0
    B     0
    C     1
    D     3
    E     0
    F     0
    G     0
    H     0
    I      0Please anybody help me in writing the query for this..

    Is this what you are expecting:
    SQL> WITH T AS
      2  (
      3  SELECT 0 X, 0 Y, 2 Z, 0 A, 0 B, 1 C, 3 D, 0 E, 0 F, 0 G, 0 H, 0 I FROM DUAL
      4  )
      5  SELECT  'X' col1, X col2 FROM T
      6  UNION ALL
      7  SELECT  'Y' col1, Y col2 FROM T
      8  UNION ALL
      9  SELECT  'Z' col1, Z col2 FROM T
    10  UNION ALL
    11  SELECT  'A' col1, A col2 FROM T
    12  UNION ALL
    13  SELECT  'B' col1, B col2 FROM T
    14  UNION ALL
    15  SELECT  'C' col1, C col2 FROM T
    16  UNION ALL
    17  SELECT  'D' col1, D col2 FROM T
    18  UNION ALL
    19  SELECT  'E' col1, E col2 FROM T
    20  UNION ALL
    21  SELECT  'F' col1, F col2 FROM T
    22  UNION ALL
    23  SELECT  'G' col1, G col2 FROM T
    24  UNION ALL
    25  SELECT  'H' col1, H col2 FROM T
    26  UNION ALL
    27  SELECT  'I' col1, I col2 FROM T
    28  /
    C       COL2                                                                   
    X          0                                                                   
    Y          0                                                                   
    Z          2                                                                   
    A          0                                                                   
    B          0                                                                   
    C          1                                                                   
    D          3                                                                   
    E          0                                                                   
    F          0                                                                   
    G          0                                                                   
    H          0                                                                   
    C       COL2                                                                   
    I          0                                                                   
    12 rows selected.

  • How to convert Outlook PST files to Entourage MBOX

    I am migrating over to mac after my windows system has been corrupted.
    Luckily I had back-up of all my mails in a storage device. Outlook stored them as .pst files.
    What I need to do now is take those .pst files and convert them to .mbox files for Entourage 2008. 
    I have gone through some steps reading online but the were of no use.
    Please suggest some helpful solutions as i don't want to waste time blindly searching.
    Thank you

    An easy (and free) way to transfer email from Outlook (Windows) to Mail (Mac) is to use an IMAP account (e.g. Gmail) as an intermediary between the two. It's simple and reliable but can be a bit slow for large amounts of email. Expect over an hour per Gigabyte.
    Enable IMAP on your email account.
    In Windows, open Outlook and add your IMAP account.
    Copy the folders (don't drag and drop them) from your PST file into your IMAP account. Drag and drop will move (not copy) your folders and you may lose mail if the communication is interrupted during the move.
    On the Mac, open Mail and add your IMAP account.
    If you want your mail stored on your Mac, you can copy it from your IMAP account to mailboxes created by selecting "On My Mac" as the location in the new mailbox dialog inside the Mail application.
    Other alternative
    You can also use the software approach to solve your problem.
    Various softwares/applications/third party tools are available online.
    One I am aware of is Pst Converter pro.
    Hope this helps
    thank you 

  • SAP Query - message convert first

    Hi Expert,
    When I am trying to use transaction SQ01, SQ02 and SQ03 I got a message "convert first" what does it means and what should I convert to carry on the query?
    thank you

    Hi,
    I figured out the problem already, this is due to the object need to be convert manually first.
    you need to convert all of your existing query objects to work in Release 4.0A. For technical reasons, this cannot be done automatically using an XPRA program in the upgrade. Instead, you need to convert the objects in each client individually following the upgrade. Special programs will be available for the conversion.
    The technical basis for storing query obejcts before Release 4.0A were the database tables AQDB and TAQTS. In Release 4.0A, these tables are replaced by 15 new tables.
    Anyway, thank you for your support. Cheers

  • BEX Query Web-Convert Key Fig to Characteristic-Right justify characteristi

    Hi,
    I have converted a Key Figure into a characteristic. Let's call the new characteristic Z_NUMCHAR.
    When Z_NUMCHAR is displayed in the BEX Query (HTML), it is left justified.
    I have concatenated additional SPACES to the front of Z_NUMCHAR. However when Z_NUMCHAR is displayed, the spaces are removed.
    I have also tried concatenating a letter to the front of Z_NUMCHAR and then a string of spaces, but the spaces are removed. 
    Does anyone have any suggestions on how to right justify a characteristic?
    My worst case solution is to add leading underscores.  _____5482.214
    But would rather see it look like a Key Figure.                           5482.214
    Thanks

    Hi Sebastian,
    I have a similar problem. Can you help me? How did you set the entry in Member Presentation of Command SET_PRESENTATION to display key and text? I just found the values to set the only text or only key.
    best regards,
    Barbara

  • SQL Query Help/ Converts seconds to day:hr:mi:se

    I have query that returns value in seconds. How i will convert those seconds in DAY:HOUR:MIN:SEC in the same query? What will be the mathematical formulae or alogorithim for this?
    Thanks
    Munis Warsi
    null

    Seriously, you post 750+ lines of unformatted SQL statement and a completely unreadable and unformatted explain plan and you expect people to be able to help with that?
    From what I can see it looks like some sort of query against an Oracle APPS database, and there are numerous calls to PL/SQL functions in there, so you're creating a multitude of context switches between the SQL and PL engines... that's known to cause performance problems.
    Take a read of the discussions linked in the FAQ: Re: 3. How to  improve the performance of my query? / My query is running slow.
    And also consider if your question would be better asked in the Oracle Apps forum space instead.

  • Single row query and convert

    greetings,
    Data tables and intended output are on the bottom.
    Process tables contains different store id that process the fabric. 1 single order will have 2 ( at most) or 1 different process store(s). Need to create a query list out all order no along with process store names , work. It also requires to convert each numeric fieldto 0 if null. I was able to create a query as the following but stuck on don't knwo how to make the order number listed as single row plus that numeric field conversion when there are 2 different process no . Can you help ? I know there are many gurus out here that can give me a lift. Thanks.
    select
    B.porderno,
    decode(pprocessno,1,A.name,null) as "1st storename",
    decode(pprocessno,2,A.name,null) as "2nd storename",
    decode(pprocessno,1,nvl(B.plength,0),null) as "1st length",
    decode(pprocessno,2,nvl(B.plength,0),null) as "2nd length"
    from test_store2 A,test_process B
    where A.storeid=B.pstoreid.....
    CREATE TABLE test_store2
    ( storeid NUMBER(3,0) not null,
    name VARCHAR2(20)not null,
    addr VARCHAR2(30)not null
    CREATE TABLE test_process
    ( porderno NUMBER(10,0) not null,
    pstoreid number(3,0) not null,
    pprocessno number(3,0) not null,
    plength number(3,0),
    pwork VARCHAR2(30)
    INSERT INTO test_store2(storeid, name, addr)
    VALUES (001, 'papas', '123 Road1')
    INSERT INTO test_store2(storeid, name, addr)
    VALUES (002, 'tcbi', '652 heaven st')
    INSERT INTO test_store2(storeid, name, addr)
    VALUES (003, 'tutu club', '888 big ave')
    INSERT INTO test_store2(storeid, name, addr)
    VALUES (004, 'stinkys', '432 bobo st')
    INSERT INTO test_process(porderno, pstoreid,pprocessno,plength, pwork)
    VALUES (811, 2,1,null,'prepNdye')
    INSERT INTO test_process(porderno, pstoreid,pprocessno,plength, pwork)
    VALUES (811, 1,2,30,'trimming')
    INSERT INTO test_process(porderno, pstoreid,pprocessno,plength, pwork)
    VALUES (812, 1,1,10,'dye')
    INSERT INTO test_process(porderno, pstoreid,pprocessno,plength, pwork)
    VALUES (813, 3,1,40, 'prep')
    INSERT INTO test_process(porderno, pstoreid,pprocessno,plength, pwork)
    VALUES (813, 4,2,null, 'dye')
    look for result layout
    order  1st storename 2nd storename      1st length    2ndlength         1stwork            2nd work
    811     tcbi                papas             0             30            prepNdye           trimming
    812     papas                                 10             0            dye
    813     tutu club           stinks            40             0            prep               dye

    Hi,
    Please don't post unformatted code. If you want people to read you code, don't make it difficult for them
    When posting formatted text on this site, type these 6 characters:
    &#123;code&#125;
    (small letters only, inside curly brackets) before and after sections of formatted text, to preserve spacing.
    In the query I posted,
    AND     p2.pprocessno     = 2was part of the outer-join condition between p1 and (the optional) p2.
    When using -notation, you need a sign after all references to columns from the table that could be missing (p2 in this case), so you should have siad:
    where     (       p1.pstoreid   = s1.storeid
         and       p1.pprocessno = 1
    and      (     p1.porderno       = p2.porderno (+)
         AND     p2.pprocessno (+) = 2              -- (+) sign needed here
    and     (p2.pstoreid     = s2.storeid (+)         -- Cascading outer join
         )A rule of thumb: if any WHERE-clause reference to p2 has a -sign, then all references to p2 must have a -sign, otherwise the effect will be an inner join. There is one exception, a cascading outer join , where a another table (s2 in this case) is outer-joined to the optional table (p2). You can't have -signs on both sides of a condition.  In a cascading outer join, only the distal+ table (the one farther removed from the required table, p1 in this case) is marked with a +-sign.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Need sql query to convert rows to columns

    Im using oracle 11g.
    I have data in a table as below: Column names are type,month,percentage
    TYPE      MONTH   PERCENTAGE
    A1         JAN-2013     100
    A2         JAN-2013     100
    A3         JAN-2013     95
    A4         JAN-2013     98
    A5         JAN-2013     99
    A6         JAN-2013     90
    A7         JAN-2013     92
    A1         FEB-2013     100
    A2         FEB-2013     99
    A3         FEB-2013     88
    A4         FEB-2013     67
    A5         FEB-2013     98
    A6         FEB-2013     95
    A7         FEB-2013     84
    The desired output using a sql query is as below
    TYPE     JAN-2013     FEB-2013
    A1         100             100
    A2         100             99
    A3         95               88
    A4         98               67
    A5         99               98
    A6         90               95
    A7         92               84

    Try this:
    select * from table_name
    PIVOT(   max(Percentage)
                     for MONTH
                     in ('JAN-2013','FEB-2013')
                     ) ;with data
    with t(TYPE,MONTH,PERCENTAGE) as
    SELECT 'A1', 'JAN-2013', 100
      FROM DUAL
    UNION ALL
    SELECT 'A2', 'JAN-2013', 100
      FROM DUAL
    UNION ALL
    SELECT 'A3', 'JAN-2013', 95
      FROM DUAL
    UNION ALL
    SELECT 'A4', 'JAN-2013', 98
      FROM DUAL
    UNION ALL
    SELECT 'A1', 'FEB-2013', 100
      FROM DUAL
    UNION ALL
    SELECT 'A2', 'FEB-2013', 99
      FROM DUAL
    UNION ALL
    SELECT 'A3', 'FEB-2013', 88
      FROM DUAL
    UNION ALL
    SELECT 'A4', 'FEB-2013', 67
      FROM DUAL
    select * from t PIVOT(   max(Percentage)
                     for MONTH
                     in ('JAN-2013','FEB-2013')
                     ) ;

  • Query not converted in to change mode

    Hi all
    i have an issue
    i have created a query in bex in     development system and saved the query, at the time of saving the query it didn't ask
       any request but it saved in favorites on save window.
    second time i try to open the query it opened but i try to change it in to display mode it's not changed it's give error like no request is applicable to the query.
    I created  one request in rsa1 transport connection
    rsa1->TR->query element->object type
    i collected the query and click the bex truck buuton.
    it asked me the package name  and description and project name, i have given all the detailes .
    finally it created one request.
    But my problem is not solved the query is not changed in to display mode.
    can some one help me is it right process and can some one explain about grouping, display and install options.
    these are necessary options or not.
    please help me sir
    bhaskara
    Edited by: bhaska on Aug 27, 2011 4:28 PM

    > i have created a query in bex in     development system and saved the query, at the time of saving the query it didn't ask
    >    any request but it saved in favorites on save window.
    There were an open request for the query , those change been made as another task to the existing Request.
    > second time i try to open the query it opened but i try to change it in to display mode it's not changed it's give error like no request is applicable to the query.
    Either this request been released or moved to production or Quality
    > I created  one request in rsa1 transport connection
    > rsa1->TR->query element->object type
    > i collected the query and click the bex truck buuton.
    > it asked me the package name  and description and project name, i have given all the detailes .
    > finally it created one request.
    > But my problem is not solved the query is not changed in to display mode.
    > can some one help me is it right process and can some one explain about grouping, display and install options.
    > these are necessary options or not.
    > please help me sir
    > bhaskara
    go to RSA1 Transport Connection
    On top of window there is truck button as BEX
    Create Request Assign
    Close Bex Designer and try to reopen
    Open Query
    Hope it will be in change mode.
    ----Thanks
    BVR
    Edited by: binu v. rajan on Aug 29, 2011 12:12 PM

  • Convert EST to GMT

    Hi All,
    Oracle version is 10.2.0.3
    In my DB many tables with data date type column. But it has EST TIME ZONE DATA, but the customer what to change the EST time data to GMT.
    I have used new_time function but it is not working for daylight saving data .
    Please put your valuable thoughts to resolve this issue.

    Hi Lukasz,
    Thanks for your help.
    It works well to covert the TIME ZONE. But it couldn’t take care of the DST.
    Before Data Image_
    26-Sep-2007 23:22:57
    18-Oct-2010 15:50:29
    26-Sep-2007 23:22:57
    26-Sep-2007 23:22:57
    26-Sep-2007 23:22:57
    26-Sep-2007 23:22:57
    23-Sep-2008 10:51:36
    26-Sep-2007 23:22:57
    26-Sep-2007 23:22:57
    26-Sep-2007 23:22:57
    After  DATA Image:_
    27-Sep-2007 04:22:57
    18-Oct-2010 20:50:29
    27-Sep-2007 04:22:57
    27-Sep-2007 04:22:57
    27-Sep-2007 04:22:57
    27-Sep-2007 04:22:57
    23-Sep-2008 15:51:36
    27-Sep-2007 04:22:57
    27-Sep-2007 04:22:57
    27-Sep-2007 04:22:57
    Please help me to resolve this issue.

Maybe you are looking for