Select max date from a group of columns of type date

hi ,
my requirement is i have 5 columns
ID, date1,date2,date3,date4.
first column is integer type and is primary key and remaining all columns are type DATE
the values in the table are for example:
ID date1 date2 date3 date4
100 8/19/2007 4:29:44 PM 8/18/2007 3:50:34 PM 8/16/2007 3:20:55 PM 8/20/2007 5:19:24 PM
101 8/21/2007 5:29:44 PM 8/19/2007 4:20:34 PM 8/19/2007 4:29:44 PM 8/18/2007 2:50:45 PM
the output required is
ID closeddate
100 8/20/2007 5:19:24 PM
101 8/21/2007 5:29:44 PM
i want the max of all dates in all date columns in one single column for each row
the query which i tried is
select ID,max(closed_date)
from t1,TABLE(Date(date1,date2,date3,date4)) closeddate
but its not working
can any body help me out in solving this
thanks in advance

so use the NVL on each column. and set it to
something ridiculous, so it will always be less than
the other values. and then, if the ridiculous value
shows up, it means all the columns were null for that
row.Rather than relying on some rediculously small date use coalecse on each date column with the date column of intereste listed first. The order of the remaining terms in the coalesce statement is unimportant. e.g. on a table with three date columsn:
with x as (
  select 1 id, sysdate dte1, sysdate-1 dte2, sysdate+1 dte3 from dual union
  select 2, sysdate, null, null from dual union
  select 3, null, sysdate-1, null from dual union
  select 4, null, sysdate-1, sysdate+1 from dual union
  select 5, null, null, null from dual
select id,
       greatest( coalesce(dte1,dte2,dte3),
                 coalesce(dte2,dte3,dte1),
                 coalesce(dte3,dte1,dte2)) Max_Date
from x
ID                     MAX_DATE                 
1                      09-OCT-2007 12.15.44     
2                      08-OCT-2007 12.15.44     
3                      07-OCT-2007 12.15.44     
4                      09-OCT-2007 12.15.44     
5                      (null)
5 rows selecteThis way if they are all null, you get a null result, and don't need to handle your null value date as a special case. It also avoids the situation where the unlikely event occurs where your special null value date appears as actual data.

Similar Messages

  • HT2486 Iam trying to download data from a group in my address book into Numbers.  When I click on the data to move and drag to Numbers nothing happens.  Using OS X ver 10.9.2 iMac

    Iam trying to download data from a group in my address book into Numbers.  When I click on the data to move and drag to Numbers nothing happens.  Using OS X ver 10.9.2 iMac

    With Numbers 3.2 (released April 2014) drag and drop works on my machine again, either onto the canvas or into an existing table.
    What also works (as Wayne described): select multiple contacts, command-c to copy, and (after clicking the canvas or a cell) command-v to paste.
    SG

  • Select MAX(BUDAT) from ztab (custom table) where... NOT work!

    We use the following statement where BUDAT is one of the fields in our custom table ztab:
    Select MAX(BUDAT) from ztab (custom table) where...
    When activating the above code, get the following error:
    "Unknown column name "MAX(BUDAT)". not determined until runtime, you cannot specify a field list."
    How to resolve this problem to get a max value of the field BUDAT in custom table ztab (it's not an internal table)?
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Apr 10, 2008 3:56 PM

    HI,
    Tyr having a space after and before BUDAT.
    ( BUDAT ).
    Hope it helps,
    Shreekant

  • Need to display data from one group while in another repeating group

    I have a repeating group in my .rft file which displays line level data that has a quote number in it.
    At the end of this repeating group I need to display the total for the quote number but these values are in another group that's within a differnt group higher up in the XML tree. Both of the groups have quote number so there is a link between the two. How do I do this? When I add the "higher up" repeating group within the current group I can't get any data to show. Any help would be appreciated.
    Kind Regards

    Here's the data, I do know how to to move up the tree like a file system but I think my problem is I need to move up the tree and repeat based on the value (quote number) of the lower node.
    For instance for each quote number in repeating group G_FORX_OPS_QTE_ORDER_LINES loop through the occurances of same quote number in G_OPPCAT_BREAKDOWN so I can get a total of the fields by quote number
    This is overly simplified but it would be like this
    <?for-each-group:G_FORX_OPS_QTE_ORDER_LINES;QUOTE_NUMBER?>
    quote number 1428
    various line level data....
    various line level data....
    etc....
    -- Open loop to get data from other group (Only get data for quote 1428!!)
    <?for-each-group:/FORX_AS_OPPOR/LIST_G_OPPORTUNITY_SHEET/G_OPPORTUNITY_ID/LIST_G_OPPCAT_BREAKDOWN/G_OPPCAT_BREAKDOWN;./QUOTE_NUMBER1?>
    Total For Quote 1428
    Billing Class
    BILLABLE: Billable total in dollars
    INTERNAL: Internal total in dollars
    <?end for-each-group?>
    <!-- Generated by Oracle Reports version 6.0.8.26.0
    -->
    - <FORX_AS_OPPOR>
    - <LIST_G_OPPORTUNITY_SHEET>
    - <G_OPPORTUNITY_ID>
    <COMMENTS1>Opportunity Includes Quote Number(s): 1428-2 1443-1 1444-1 Order Number(s): 159038-10 159044-3</COMMENTS1>
    <CUSTOMER_ID>1183</CUSTOMER_ID>
    <UPDATED_BY>CTYNER</UPDATED_BY>
    <DEPOSITS>5704.68</DEPOSITS>
    <OPPORTUNITY_ID>1000216</OPPORTUNITY_ID>
    <OPPORTUNITY_NAME>1000216:UAT DEMO</OPPORTUNITY_NAME>
    <CUSTOMER_NUMBER>103736</CUSTOMER_NUMBER>
    <ENTITY>FSG</ENTITY>
    <SOLD_TO>ALLSTATE INSURANCE COMPANY</SOLD_TO>
    <CONTRACT_ID>S620_N</CONTRACT_ID>
    <SALESREP_ID>2239</SALESREP_ID>
    <SALES_REP_NAME>Conley, Michael</SALES_REP_NAME>
    <ORDER_ACCEPTANCE>Skokie</ORDER_ACCEPTANCE>
    <BOOKED_COUNT>2</BOOKED_COUNT>
    <TERRITORY_NAME>Enterprise - Enterprise</TERRITORY_NAME>
    - <LIST_G_OPPCAT_BREAKDOWN>
    - <G_OPPCAT_BREAKDOWN>
    <QUOTE_NUMBER1>1428</QUOTE_NUMBER1> First Occurence of 1428
    <INT_ITM_TYPES>HARDWARE</INT_ITM_TYPES>
    <OPPORTUNITY_ID3>1000216</OPPORTUNITY_ID3>
    <INT_BILLING_CLASS>BILLABLE</INT_BILLING_CLASS>
    <SUM_ITM_COUNT>5</SUM_ITM_COUNT>
    <SUM_ITM_PRICE>151500.4</SUM_ITM_PRICE>
    <SUM_ITM_COST>1688</SUM_ITM_COST>
    <SUM_ITM_GPM>149812.4</SUM_ITM_GPM>
    <SUM_ITM_MARKUP>88.7514218009478672985781990521327014218</SUM_ITM_MARKUP>
    </G_OPPCAT_BREAKDOWN>
    - <G_OPPCAT_BREAKDOWN>
    <QUOTE_NUMBER1>1428</QUOTE_NUMBER1> Second Occurence of 1428
    <INT_ITM_TYPES>INVOICE_ADJUSTMENT</INT_ITM_TYPES>
    <OPPORTUNITY_ID3>1000216</OPPORTUNITY_ID3>
    <INT_BILLING_CLASS>BILLABLE</INT_BILLING_CLASS>
    <SUM_ITM_COUNT>4</SUM_ITM_COUNT>
    <SUM_ITM_PRICE>29.72</SUM_ITM_PRICE>
    <SUM_ITM_COST>0</SUM_ITM_COST>
    <SUM_ITM_GPM>29.72</SUM_ITM_GPM>
    <SUM_ITM_MARKUP />
    </G_OPPCAT_BREAKDOWN>
    - <G_OPPCAT_BREAKDOWN>
    <QUOTE_NUMBER1>1443</QUOTE_NUMBER1>
    <INT_ITM_TYPES>HARDWARE</INT_ITM_TYPES>
    <OPPORTUNITY_ID3>1000216</OPPORTUNITY_ID3>
    <INT_BILLING_CLASS>BILLABLE</INT_BILLING_CLASS>
    <SUM_ITM_COUNT>5</SUM_ITM_COUNT>
    <SUM_ITM_PRICE>2084</SUM_ITM_PRICE>
    <SUM_ITM_COST>1748</SUM_ITM_COST>
    <SUM_ITM_GPM>336</SUM_ITM_GPM>
    <SUM_ITM_MARKUP>.192219679633867276887871853546910755149</SUM_ITM_MARKUP>
    </G_OPPCAT_BREAKDOWN>
    - <G_OPPCAT_BREAKDOWN>
    <QUOTE_NUMBER1>1444</QUOTE_NUMBER1>
    <INT_ITM_TYPES>HARDWARE</INT_ITM_TYPES>
    <OPPORTUNITY_ID3>1000216</OPPORTUNITY_ID3>
    <INT_BILLING_CLASS>BILLABLE</INT_BILLING_CLASS>
    <SUM_ITM_COUNT>4</SUM_ITM_COUNT>
    <SUM_ITM_PRICE>1500.4</SUM_ITM_PRICE>
    <SUM_ITM_COST>1364</SUM_ITM_COST>
    <SUM_ITM_GPM>136.4</SUM_ITM_GPM>
    <SUM_ITM_MARKUP>.1</SUM_ITM_MARKUP>
    </G_OPPCAT_BREAKDOWN>
    - <G_OPPCAT_BREAKDOWN>
    <QUOTE_NUMBER1>1444</QUOTE_NUMBER1>
    <INT_ITM_TYPES>INVOICE_ADJUSTMENT</INT_ITM_TYPES>
    <OPPORTUNITY_ID3>1000216</OPPORTUNITY_ID3>
    <INT_BILLING_CLASS>BILLABLE</INT_BILLING_CLASS>
    <SUM_ITM_COUNT>4</SUM_ITM_COUNT>
    <SUM_ITM_PRICE>66.28</SUM_ITM_PRICE>
    <SUM_ITM_COST>0</SUM_ITM_COST>
    <SUM_ITM_GPM>66.28</SUM_ITM_GPM>
    <SUM_ITM_MARKUP />
    </G_OPPCAT_BREAKDOWN>
    - <G_OPPCAT_BREAKDOWN>
    <QUOTE_NUMBER1>1428</QUOTE_NUMBER1>
    <INT_ITM_TYPES>EXPENSE_ADJUSTMENT</INT_ITM_TYPES>
    <OPPORTUNITY_ID3>1000216</OPPORTUNITY_ID3>
    <INT_BILLING_CLASS>INTERNAL</INT_BILLING_CLASS>
    <SUM_ITM_COUNT>1</SUM_ITM_COUNT>
    <SUM_ITM_PRICE>0</SUM_ITM_PRICE>
    <SUM_ITM_COST>22.98</SUM_ITM_COST>
    <SUM_ITM_GPM />
    <SUM_ITM_MARKUP />
    </G_OPPCAT_BREAKDOWN>
    - <G_OPPCAT_BREAKDOWN>
    <QUOTE_NUMBER1>1444</QUOTE_NUMBER1>
    <INT_ITM_TYPES>EXPENSE_ADJUSTMENT</INT_ITM_TYPES>
    <OPPORTUNITY_ID3>1000216</OPPORTUNITY_ID3>
    <INT_BILLING_CLASS>INTERNAL</INT_BILLING_CLASS>
    <SUM_ITM_COUNT>1</SUM_ITM_COUNT>
    <SUM_ITM_PRICE>0</SUM_ITM_PRICE>
    <SUM_ITM_COST>22.98</SUM_ITM_COST>
    <SUM_ITM_GPM />
    <SUM_ITM_MARKUP />
    </G_OPPCAT_BREAKDOWN>
    - <G_OPPCAT_BREAKDOWN>
    <QUOTE_NUMBER1>1428</QUOTE_NUMBER1>
    <INT_ITM_TYPES>REVENUE_ADJUSTMENT</INT_ITM_TYPES>
    <OPPORTUNITY_ID3>1000216</OPPORTUNITY_ID3>
    <INT_BILLING_CLASS>INTERNAL</INT_BILLING_CLASS>
    <SUM_ITM_COUNT>1</SUM_ITM_COUNT>
    <SUM_ITM_PRICE>20</SUM_ITM_PRICE>
    <SUM_ITM_COST>101</SUM_ITM_COST>
    <SUM_ITM_GPM />
    <SUM_ITM_MARKUP />
    </G_OPPCAT_BREAKDOWN>
    </LIST_G_OPPCAT_BREAKDOWN>
    - <LIST_G_FORX_OPS_QTE_ORDER_LINES>
    - <G_FORX_OPS_QTE_ORDER_LINES>
    <ORDER_ACCEPTANCE1>SKOKIE</ORDER_ACCEPTANCE1>
    <COMMITMENT />
    <COMMITMENT_APPLIED_AMOUNT />
    <PARTIAL_COMMENTS />
    <COMMENT_FOR_INVOICE />
    <QUOTE_DATE>07/13/2009 02:00:10PM</QUOTE_DATE>
    <LINE_NUMBER>1</LINE_NUMBER>
    <EXTD_SELLING_PRICE>880</EXTD_SELLING_PRICE>
    <ORDER_PAY_TERM>Automated Term Due in 44 Days</ORDER_PAY_TERM>
    <QUOTE_PAY_TERM />
    <ITEM_CATEGORIES>HARDWARE.MACHINE.SERVER.</ITEM_CATEGORIES>
    <QUOTE_STATUS>Order Submitted</QUOTE_STATUS>
    <QUOTE_USER>Tyner, Chris</QUOTE_USER>
    <OPPORTUNITY_ID1>1000216</OPPORTUNITY_ID1>
    <DATASOURCE>1</DATASOURCE>
    <HEADER_ID>398631</HEADER_ID>
    <LINE_ID>900897</LINE_ID>
    <LINE_TYPE_ID>1181</LINE_TYPE_ID>
    <ORDER_NUMBER>159038</ORDER_NUMBER>
    <ORDER_VERSION>10</ORDER_VERSION>
    <TEAM>IBM</TEAM>
    <OPPORTUNITY_NAME1 />
    <QUOTE_NAME>1000216:IBM:UAT DEMO</QUOTE_NAME>
    <QUOTE_NUMBER>1428</QUOTE_NUMBER>
    <QUOTE_VERSION>2</QUOTE_VERSION>
    <NEW_PARTIAL>0</NEW_PARTIAL>
    <COMMIT_DEL_DATE>13-JUL-09</COMMIT_DEL_DATE>
    <ORDERED_QUANTITY>1</ORDERED_QUANTITY>
    <PO_NUMBER>098534089</PO_NUMBER>
    <GROUP_NUM>1</GROUP_NUM>
    <INVENTORY_ITEM_ID>845256</INVENTORY_ITEM_ID>
    <ORDERED_ITEM>7978BDU</ORDERED_ITEM>
    <PRODUCT>7978BDU</PRODUCT>
    <ITEM_DESCRIPTION>X3550, XEON QUAD CORE E5430 80W 2.66GHZ/1333MHZ/12MB L2, 2X1GB CHK, O/BAY 2.5IN HS SAS, SR 8K-I, PCI-E RISER CARD, ULTRABAY ENHANCED DVD-ROM/CD-RW COMBO DRIVE, 670W P/S, RACK</ITEM_DESCRIPTION>
    <MANUFACTURER_DESCRIPTION>IBM</MANUFACTURER_DESCRIPTION>
    <TYPE />
    <EQUIPMENT_CODE>B</EQUIPMENT_CODE>
    <TAX_CLASS_CODE>HW</TAX_CLASS_CODE>
    <CLS />
    <SUBINVENTORY />
    <UNIT_LIST_PRICE>0</UNIT_LIST_PRICE>
    <ITEM_UNIT_COST>800</ITEM_UNIT_COST>
    <VENDOR_INVENTORY_RETURN />
    <SHIPPING_TYPE />
    <SHIPPING_ORG>DSP</SHIPPING_ORG>
    <SOLD_TO1>ALLSTATE INSURANCE COMPANY</SOLD_TO1>
    <SOLD_TO_ACCOUNT_NUMBER>103736</SOLD_TO_ACCOUNT_NUMBER>
    <INVOICE_TO_LOCATION>10110384</INVOICE_TO_LOCATION>
    <INVOICE_TO>ALLSTATE INSURANCE COMPANY</INVOICE_TO>
    <INVOICE_TO_ACCOUNT_NUMBER>103736</INVOICE_TO_ACCOUNT_NUMBER>
    <INVOICE_TO_ADDRESS1>2775 SANDERS RD</INVOICE_TO_ADDRESS1>
    <INVOICE_TO_ADDRESS2 />
    <INVOICE_TO_ADDRESS3 />
    <INVOICE_TO_ADDRESS4 />
    <INVOICE_TO_EMAIL />
    <INVOICE_TO_PHONE_NUMBER>847-402-0223</INVOICE_TO_PHONE_NUMBER>
    <INVOICE_TO_ADDRESS5>NORTHBROOK, IL, 60062-6110, US</INVOICE_TO_ADDRESS5>
    <INVOICE_TO_CONTACT>CRAIG SOCKEL</INVOICE_TO_CONTACT>
    <L_INVOICE_TO_LOCATION>10110384</L_INVOICE_TO_LOCATION>
    <L_INVOICE_TO_ACCOUNT_NUMBER>103736</L_INVOICE_TO_ACCOUNT_NUMBER>
    <L_INVOICE_TO>ALLSTATE INSURANCE COMPANY</L_INVOICE_TO>
    <L_INVOICE_TO_ADDRESS1>2775 SANDERS RD</L_INVOICE_TO_ADDRESS1>
    <L_INVOICE_TO_ADDRESS2 />
    <L_INVOICE_TO_ADDRESS3 />
    <L_INVOICE_TO_ADDRESS4 />
    <L_INVOICE_TO_EMAIL />
    <L_INVOICE_TO_PHONE_NUMBER>847-402-0223</L_INVOICE_TO_PHONE_NUMBER>
    <L_INVOICE_TO_ADDRESS5>NORTHBROOK, IL, 60062-6110, US</L_INVOICE_TO_ADDRESS5>
    <L_INVOICE_TO_CONTACT>CRAIG SOCKEL</L_INVOICE_TO_CONTACT>
    <SHIP_TO_ACCOUNT_NUMBER>103736</SHIP_TO_ACCOUNT_NUMBER>
    <SHIP_TO>ALLSTATE INSURANCE COMPANY</SHIP_TO>
    <SHIP_TO_LOCATION>10271260</SHIP_TO_LOCATION>
    <SHIP_TO_ADDRESS1>3075 SANDERS RD STE 12C</SHIP_TO_ADDRESS1>
    <SHIP_TO_ADDRESS2 />
    <SHIP_TO_ADDRESS3 />
    <SHIP_TO_ADDRESS4 />
    <SHIP_TO_ADDRESS>NORTHBROOK, IL, 60062-7119, US</SHIP_TO_ADDRESS>
    <SHIP_EMAIL>[email protected]</SHIP_EMAIL>
    <SHIP_TO_PHONE_NUMBER>847-402-0223</SHIP_TO_PHONE_NUMBER>
    <SHIP_TO_CONTACT>ORLANDO LOPEZ</SHIP_TO_CONTACT>
    <L_SHIP_TO_ACCOUNT_NUMBER>103736</L_SHIP_TO_ACCOUNT_NUMBER>
    <L_SHIP_TO>ALLSTATE INSURANCE COMPANY</L_SHIP_TO>
    <L_SHIP_TO_LOCATION>10271260</L_SHIP_TO_LOCATION>
    <L_SHIP_TO_ADDRESS1>3075 SANDERS RD STE 12C</L_SHIP_TO_ADDRESS1>
    <L_SHIP_TO_ADDRESS2 />
    <L_SHIP_TO_ADDRESS3 />
    <L_SHIP_TO_ADDRESS4 />
    <L_SHIP_TO_ADDRESS>NORTHBROOK, IL, 60062-7119, US</L_SHIP_TO_ADDRESS>
    <L_SHIP_EMAIL>[email protected]</L_SHIP_EMAIL>
    <L_SHIP_TO_PHONE_NUMBER>847-402-0223</L_SHIP_TO_PHONE_NUMBER>
    <L_SHIP_TO_CONTACT>ORLANDO LOPEZ</L_SHIP_TO_CONTACT>
    <DEL_TO_ACCOUNT_NUMBER>103736</DEL_TO_ACCOUNT_NUMBER>
    <DEL_TO>ALLSTATE INSURANCE COMPANY</DEL_TO>
    <DEL_TO_LOCATION>10110327</DEL_TO_LOCATION>
    <DEL_TO_ADDRESS1>3075 SANDERS RD</DEL_TO_ADDRESS1>
    <DEL_TO_ADDRESS2 />
    <DEL_TO_ADDRESS3 />
    <DEL_TO_ADDRESS4 />
    <DEL_TO_ADDRESS>NORTHBROOK, IL, 60062-7119, US</DEL_TO_ADDRESS>
    <DEL_TO_EMAIL />
    <DEL_TO_PHONE_NUMBER>847-402-0223</DEL_TO_PHONE_NUMBER>
    <DEL_TO_CONTACT />
    <UNIT_SELLING_PRICE>880</UNIT_SELLING_PRICE>
    <BILL_TO_LAST_UPDATE>21/04/2009 02:25:18PM</BILL_TO_LAST_UPDATE>
    <SHIP_TO_LAST_UPDATE>13/07/2009 01:31:45PM</SHIP_TO_LAST_UPDATE>
    <BILL_TO_UPDATED_BY>SLUMPP</BILL_TO_UPDATED_BY>
    <SHIP_TO_UPDATED_BY>CTYNER</SHIP_TO_UPDATED_BY>
    <ORDER_QUOTE_USER>CTYNER</ORDER_QUOTE_USER>
    <PARTICIPANTS>Conley, Michael Order:159044 100% and Conley, Michael Order:159038 100% and Conley, Michael Quote:1443 50% and Jones, Maureen Quote:1443 50%</PARTICIPANTS>
    <ORDERED_DATE>07/13/2009 02:23:23PM</ORDERED_DATE>
    <BOOKED_DATE>07/13/2009 02:31:15PM</BOOKED_DATE>
    <ORDER_QUOTE_STATUS>BOOKED</ORDER_QUOTE_STATUS>
    <ORDER_USER_STATUS>RE-BOOK REQD</ORDER_USER_STATUS>
    <BUYER>Tyner, Chris</BUYER>
    <SERIAL_NUM>45784687</SERIAL_NUM>
    <INVOICE_HANDLING_FORMAT_VALUE />
    <INVOICE_HANDLING_FORMAT />
    <PRINT_TRADE_NAME_VALUE>No</PRINT_TRADE_NAME_VALUE>
    <ITEM_EXTD_COST>800</ITEM_EXTD_COST>
    <QUOTE_APPROVERS>Tyner, Chris</QUOTE_APPROVERS>
    </G_FORX_OPS_QTE_ORDER_LINES>

  • Upload data from microsoft access to oracle form(in data block)

    Hi all,
    Any one can help me, how we can upload data from access file to developer form(in data block).
    as
    we upload data from text file to developer form(in data block) using some packages.
    Thank's in advance

    Hi Zuhair,
    If you give details of the problems you are still having then we should be able to get SQL*Developer to work.
    However, if you don't want to use SQL*Developer then the following options are taken from note 393760.1 available in Metalink if you have access to that -
    1. Use a gateway that supports the non-Oracle database or generic connectivity if a third party ODBC driver is available to do a -
    'create Oracle_table as select from non_oracle_table@database_link'
    for each table. You would then have to manually create all the other objects (views, indexes, stored procedurs etc) and permissions etc that existed in the non-Oracle database.
    2. Use the SQL*Plus COPY command to copy data from the non-Oracle database to the
    Oracle database using a gateway or generic connectivity. The syntax is as follows:
    COPY FROM username/password@oracle_sid -
    INSERT destination_oracle_table -
    USING query;
    The following example selects all rows from the EMP table in the non-Oracle database and
    inserts them into the local Oracle EMP table:
    COPY FROM SCOTT/TIGER@ora10 -
    INSERT EMP -
    USING SELECT * FROM SCOTT.EMP@gateway;
    where "gateway" is the database link created for the gateway.
    3. Load the non-Oracle data into flat files and use SQL*Loader to put the data into Oracle tables. Again manual
    work is required for the other objects.
    4. Contact the Oracle Product Technology Services (PTS) group for assistance. See the webpage -
    http://www.oracle.com/technology/tech/migration//workbench/index_sqldev_omwb.html
    5. Use a third party migration tool. See -
    http://www.oracle.com/technology/tech/migration/isv/third_party.html
    6. Use JDBC to connect to the non-Oracle database and Java in the Oracle database. This method will work but it is not suppported by the JDBC team.
    =========
    The amount of work involved will depend on the number and size of Access tables that you want to migrate.
    Regards,
    Mike

  • How i can Catch perticular data from internet and update SAP R/3 data?

    Hi All,
    I want to catch data from internet and want to update those data into SAP R/3 database. So how i can catch those data ?. what will be format of data to update SAP R/3 database?

    Hi,
    You need to create your own BSP pages which would be displayed on internet/HTML.
    Transaction SE80 => Select BSP application.
    Best regards,
    Prashant

  • Get data from PL/SQL block and generate the data file in UNIX

    Hi All
    i was executing the following code block from Unix Shell Script. The following code was generating the file count_curdate.txt with all require infomrations. The query gives number of records , group by partition_dt
    ABC=`sqlplus -s <<EOF > count_curdate.txt
    uname/paswd@connectstring
    SET HEADING OFF;
    SELECT COUNT(*)||','||partition_dt from XYZ group by partition_dt;
    exit;
    END`
    But now i need to change the above code to use dbms_application_info.set_module in it. Could someone let me know how to generate the file using PL/SQL block in Shell Script. I tried writing following code, but it generate count_curdate.txt file with 0 bytes.
    ABC=`sqlplus -s <<EOF > count_curdate.txt
    uname/paswd@connectstring
    set serveroutput on;
    SET HEADING OFF;
    set feedback off;
    BEGIN
         dbms_application_info.set_module ('shm.ksh','get count by day');
         FOR reccur IN (SELECT COUNT(*)||','||partition_dt as "dcount" from XYZ group by partition_dt);
         LOOP
              DBMS_OUTPUT.PUT_LINE(reccur.dcount);
         END LOOP;
    end;     
    exit;
    END`

    OK, try this:
    ABC=`sqlplus -s <<EOF > count_curdate.txt
    uname/paswd@connectstring
    set serveroutput on;
    SET HEADING OFF;
    set feedback off;
    BEGIN
    dbms_application_info.set_module ('shm.ksh','get count by day');
    FOR reccur IN (SELECT COUNT(*)||','||partition_dt dcount from XYZ group by partition_dt);
    LOOP
    DBMS_OUTPUT.PUT_LINE(reccur.dcount);
    END LOOP;
    dbms_application_info.set_module (NULL,NULL);
    end;
    exit;
    EOF`Or this:
    ABC=`sqlplus -s <<EOF > count_curdate.txt
    uname/paswd@connectstring
    set serveroutput on;
    SET HEADING OFF;
    set feedback off;
    BEGIN
    dbms_application_info.set_module ('shm.ksh','get count by day');
    END;
    SELECT COUNT(*)||','||partition_dt dcount from XYZ group by partition_dt;
    BEGIN
    dbms_application_info.set_module (NULL,NULL);
    END;
    exit;
    EOF`Edited by: SeánMacGC on May 11, 2009 6:13 AM

  • Loading data from SAP BW standard table to master data text

    Hi,
         Can anyone please tell me the steps to load data from SAP BW standard table to master data text?
    How should the data source be created?
    Thanks in advance.

    Hi aparajith,
    Have you loaded the master data attr ?
    ECC Steps
    then load the attr text
    create the ztable using standard table using generic data source using table function.
    there you can select the which field you required
    check the data in RSA3
    BI STEPS: -
    check the source system connection.
    replicate the data source
    create of find the master data object for text (including attr)
    map the transformation
    run the info package
    create the DTP.
    check the data in target object.
    Thanks,
    Phani.

  • How do you remove back up data from the memory storage? my storage data states that i have over 80gb of data used for back ups and i dont know why as i use a external hard drive as a time machine .now my 250gb flash storage is nearly full

    how do you remove back up data from the memory storage? my storage data states that i have over 80gb of data used for back ups and i dont know why as i use a external hard drive as a time machine .now my 250gb flash storage is nearly full.. HELP!

    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as  Backups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Ask for instructions in that case.
    See this support article for some simple ways to free up storage space.

  • Select query taking 30 sec to fetch data from table containing BLOB column.

    Hi Friends,<o:p></o:p>
    Please help me...<o:p></o:p>
    I have 15 columns in a table, in that 2 columns containing blob (images).<o:p></o:p>
    More than 22 lakhs records are in a table.<o:p></o:p>
    While i am try to fetch data from this table it nearly takes 25~30 sec to execute that query.<o:p></o:p>
    When i deleted the two columns containing blob and i tried its executing fast .<o:p></o:p>
    I should not change the table schema.<o:p></o:p>
    Views also i created and indexes also there in a table.<o:p></o:p>
    How can i improve the query execution speed?.<o:p></o:p>

    And how large is the size of BLOB data in your table? If it's several giga bytes, then the time is simply required to read the amount of data from disk and to transfer it to the Client.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Upload data from excel where one column has text of 3000 characters

    Guyz,
    I have a query. One of my requirments is to upload data from excel sheet & create a material. In the excel sheet one of the columns has text for BASIC DATA TEXT under ADDITIONAL DATA of a Material. This is a text of running length.
    the selection screen has feature of file upload & the users will upload excel files from their respective presentation servers.
    Now my problem is that I need a function module which can convert this column in excel sheet into an internal table & later call the BAPI for MM creation.
    I have used TEXT_CONVERT_XLS_TO_SAP & when i read my internal table to check this column length, it shows only 255 characters where as data in the excel sheet has 3000 characters (say for eg.)
    Can anybody throw some light on this.
    Thanks in advance
    GPK

    Hi,
    You can try using this function module and see that whether all your data is coming into the internal table properly.
    MS_EXCEL_OLE_STANDARD_DAT
    For the other part you needed to convert the internal table data into the structure as need by the BAPI and then call the create BAPI to create the materials in the SAP System.
    Hope this helps.
    Thanks,
    Samantak.

  • Selecting Max Value from Huge Table

    Dear Proffessionals
    I have a huge table (20,000,000+ records) with the following columns:
    [Time], [User], [Value]
    The values in [Value] column can recur for a single User at a Time e.g.
    2015-01-01, Me, X
    2015-01-01, Me, Y
    2015-01-01, Me, X
    2015-01-02, Me, Z
    2015-01-02, Me, X
    2015-01-02, Me, Z
    For each day, and for every user I want to have the maximum recurring value :
    2015-01-01, Me, X
    2015-01-02, Me, Z
    to be inserted into another table.
    PS: I want the MOST optimized way of achieving this functionality, bcause I am expecting a growth on the raw table over time, so PERFORMANCE is of great consideration.
    I would really appreciate it, if somebody can help me.
    Regards

    I can think of two techniques based on the data selecticity
    1) using row number function
    2) using cross apply operator
    USE Northwind;
    -- Solution 1
    SELECT S.SupplierID, S.CompanyName, CA.ProductID, CA.UnitPrice
    FROM dbo.Suppliers AS S
      CROSS APPLY
        (SELECT TOP (10) *
         FROM dbo.Products AS P
         WHERE P.SupplierID = S.SupplierID
         ORDER BY UnitPrice DESC, ProductID DESC) AS CA
    ORDER BY S.SupplierID, CA.UnitPrice DESC, CA.ProductID DESC;
    -- Solution 2
    WITH C AS
      SELECT S.SupplierID, S.CompanyName, P.ProductID, P.UnitPrice,
        ROW_NUMBER() OVER(
          PARTITION BY P.SupplierID
          ORDER BY P.UnitPrice DESC, P.ProductID DESC) AS RowNum
      FROM dbo.Suppliers AS S
        JOIN dbo.Products AS P
          ON P.SupplierID = S.SupplierID
    SELECT SupplierID, CompanyName, ProductID, UnitPrice
    FROM C
    WHERE RowNum <= 10
    ORDER BY SupplierID, ProductID DESC, UnitPrice DESC;
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Export data from table with CLOB column

    DB: Oracle10g
    SQLDeveloper: 1.0
    OS: windows xp for sqldeveloper
    Linux for Oracle db
    we have a table with two CLOB columns. We want to export the data to either text or csv. But the CLOB columns don't show up in the columns that can be exported.
    How do I export CLOB data from SQL Developer?
    Regards,
    Lonneke

    I don't think this is a good protection: you can have these characters in VARCHAR anyway, and this way you "throw the baby out with the bath water". Not mentioning that right now also immune formats like HTML are also limited.

  • Data from repeating group not showing in preview

    Hello experts,
    I would like to consult with you regarding a problem I have in BI publisher.
    I have tried creating a delivery receipt using BI publisher and when I preview it in word, everything is fine.
    The problem is that when I finally upload to BI publisher and try to view it there, the data that is supposed to show up within the repeating groups are missing.
    I have already validated the template before uploading and they look fine.
    I also am doubtful that the cause is because of a lack of data source because I have some fields that are outside the repeating group, but they have been retrieved without any problems.
    I have created a similar report using an older version of the XML Publisher and I didn't encounter a problem like this. I have also tried searching online but nothing really nails the problem that I am having. Do you have any insights regarding this?
    Appreciate your soonest response on this. Thank you!
    ~Jovee

    Hi sam thanks...I can see that data in extractor but not in PSA , that means it should not be in tra str /update rules/. the problem must be in extractor ...please help how to get this date in PSA as is...
    I have one more issue, when Iam loading the data from PSA to cube the data was half loaded and then the remaining half has yellow status in monitor...when I checked in simulation mode the following message is coming " Enter rate USD / rate type M for 30.03.2007 in the system settings" do you have any idea on how to fix this ?
    thanks
    Edited by: sam on Jan 25, 2008 9:17 PM

  • How to select only last 4 characters in a column of type varchar2

    The data in column P_JACKS.LABEL is in the form of:
    294-001,
    B01-099,
    194A-098,....
    I'd like to select only the 3 characters following the '-' dash, and find the maximum of that set.
    This must be simple, I know, but so am I. Can someone please help me with this?
    Thanks!!

    I'm sure there is some slick regexp way to do it but this should work
    WITH t AS
      (SELECT '294-001' value FROM dual
      UNION ALL
      SELECT 'B01-099' FROM dual
      UNION ALL
      SELECT '194A-098' FROM dual
    SELECT greatest( (SUBSTR( value,LENGTH(value)-2,1)), (SUBSTR( value,LENGTH(value)-1,1)), (SUBSTR( value,LENGTH(value))) )
    FROM tmaybe I misunderstood do want to the max for the whole group as in 99
    or did you mean 3 rows with values
    1
    9
    9
    which is what I did
    Edited by: pollywog on Sep 9, 2010 6:45 PM
    Edited by: pollywog on Sep 9, 2010 6:47 PM

Maybe you are looking for

  • What's wrong with my Final Cut Pro 7.03?

    What's wrong with my Final Cut Pro 7.03? I have just started up a new project. Every time I try to ad a clip in top of each other a "general error" shows up. The sequence viewer turned red and it displays that I have to close and reopen the window to

  • How can I add document signatures to a dynamic table?

    I have a table where I am adding rows dynamically by adding a + or - button to add or remove rows to add to the table. Right now I have a name field and an e-sign field. The problem I am having is that the document signature cannot be repeatable/ nee

  • Feedback for mobile

    Add a "Zoom lock" to Settings for your MobilePDF reader for Android. I have a disability that prevents me from swipe scrolling without accidentally changing the zoom factor. Once it changes it is a PITA to get it back where I had it.

  • I upgraded creative cloud in windows 8 and it failed

    I upgraded creative cloud in windows 8 and it failed. I couldn't start it anymore. So I deleted the corrupt files and wanted to download creative cloud again, but can't get it. What should I do?

  • Pictures with flash are dark

    Hey all, new here to the forum and to a nice T5i Ive had about a month now. I bought a flash unit for my camera and tried using it off camera in slave mode but all the pictures were dark. Really dark. I tried every setting I could think of but obviou