Different formats in Excel column into 1 format to load into table

I have a situation in hand. I have to do a SQL Load into a Temporary table from an Excel file but I noticed that the column I am most interested in has about 4 different formats. My desired format will always have to be 7 characters long and has to only have digits in them. That means, no hyphens or special characters or alphabets.
I have found out that the column in Excel has pretty much 4 or 5 different formats:
Here is what they are supposed to be transformed into :
42 = 0000042
000-0257 = 0000257
0090647 = 0090647 (Corect Format)
709782 = 0709782
135566F1 = 0135566
The last case only seems to have 2 or 3 lines where this Alphabet comes in but then anything after that needs to be discarded. I could probably just remove them ( The F1 ) from the File manually.
Any ideas ? Thanks in advance.

Thanks Frank, for showing a far better way to translate the chars 'away'.
However, the last record contains the 1 that comes after the F?
I've pasted your example into my 'beta-clunged'-version (I know it can become far more compact, but wanted to show the steps taken):
SQL> with t as (
  2  select '42' col from dual union all
  3  select '000-0257' from dual union all
  4  select '0090647' from dual union all
  5  select '709782' from dual  union all
  6  select '135566F1' from dual
  7  )
  8  select col
  9  ,      to_char( replace( col2
10                         , '-'
11                         )
12                , 'fm0000000'  -- 3. apply the format mask
13                ) my_clunging
14  ,      lpad ( translate ( col
15                          , '0123456789' || translate ( col
16                                                      , 'x0123456789'
17                                                      , 'x'
18                                                      )
19                          , '0123456789'
20                          )
21              , 7
22              , '0'
23              ) franks_solution
24  from  ( select col
25         ,       case when instr( translate( lower(col)
26                                           , 'abcdefghijklmnopqrstuvwxyz'
27                                           , 'xxxxxxxxxxxxxxxxxxxxxxxxxx'
28                                           )
29                                , 'x'
30                                ) > 0
31                      then -- 1. eliminate string after finding a character
32                           substr( col
33                                 , 1
34                                 , instr( translate( lower(col)
35                                                   , 'abcdefghijklmnopqrstuvwxyz'
36                                                   , 'xxxxxxxxxxxxxxxxxxxxxxxxxx'
37                                                   )
38                                        , 'x'
39                                        ) -1
40                                 )
41                     else col
42                 end col2
43          from t
44        );
COL      MY_CLUNG FRANKS_
42       0000042  0000042
000-0257 0000257  0000257
0090647  0090647  0090647
709782   0709782  0709782
135566F1 0135566  1355661Didn't you notice that in your tests, Raj, or have your requirements changed?

Similar Messages

  • How  to load the data from excel  file  into table in oracle using UTL_FI

    How to load the data from excel file into table in oracle
    and from table to excel file
    using UTL_FILE package
    Please give me some example

    This is something i tried in oracle apex
    http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
    Regards,
    CKLP

  • OBIEE 11g - serious problem when rotating columns into "table prompt" area

    Hi, I'm hitting an OBIEE 11g issue that's causing huge problems on reports. Essentially, the problem is this - if I dump all the columns of a query to a table, everything looks fine. But if I rotate one of the columns into the "table prompts" area, OBIEE is actually resubmitting a WRONG query. The query format changes from:
    WITH
    SAWITH0 AS (select sum(T38965.ORIGINAL_BUDGET) as c1,
    T12637.ORG_ID_DESC as c2
    from
    GL_ANALYTICS.DIM_ACCOUNT T12582,
    GL_ANALYTICS.DIM_ORG T12637,
    GL_ANALYTICS.DIM_ACCOUNTING_PERIOD T12597,
    GL_ANALYTICS.FACT_LEDGER T38965 / FACT_LEDGER_ytd */*
    where  ( T12582.ACCOUNT_KEY = T38965.ACCOUNT_KEY and T12582.STATEMENT_TYPE_CODE = 'Income Statement' and T12597.ACCOUNTING_PERIOD = 11 and T12597.FISCAL_YEAR = T38965.FISCAL_YEAR and T12597.FISCAL_YEAR = 2012 and T12637.ORG_KEY = T38965.ORG_KEY and T38965.FISCAL_YEAR = 2012 and (T12637.DEPARTMENT_CODE_DESC in ('D0200 - Arts Administration', 'D0206 - Film Studies')) and T12597.ACCOUNTING_PERIOD >= T38965.ACCOUNTING_PERIOD )
    group by T12637.ORG_ID_DESC)
    select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3 from ( select distinct 0 as c1,
    D1.c2 as c2,
    D1.c1 as c3
    from
    SAWITH0 D1
    order by c2 ) D1 where rownum <= 65001
    and changes to:
    WITH
    SAWITH0 AS (select distinct T12637.ORG_ID_DESC as c1
    from
    GL_ANALYTICS.DIM_ACCOUNT T12582,
    GL_ANALYTICS.DIM_ORG T12637,
    GL_ANALYTICS.DIM_ACCOUNTING_PERIOD T12597,
    GL_ANALYTICS.FACT_LEDGER T38927 / FACT_LEDGER_period */*
    where  ( T12582.ACCOUNT_KEY = T38927.ACCOUNT_KEY and T12597.ACCOUNTING_PERIOD = T38927.ACCOUNTING_PERIOD and T12597.FISCAL_YEAR = T38927.FISCAL_YEAR and T12582.STATEMENT_TYPE_CODE = 'Income Statement' and T12597.ACCOUNTING_PERIOD = 11 and T12597.FISCAL_YEAR = 2012 and T12637.ORG_KEY = T38927.ORG_KEY and T38927.ACCOUNTING_PERIOD = 11 and T38927.FISCAL_YEAR = 2012 and (T12637.DEPARTMENT_CODE_DESC in ('D0200 - Arts Administration', 'D0206 - Film Studies')) ) ),
    SAWITH1 AS (select sum(T38965.ORIGINAL_BUDGET) as c1,
    T12637.ORG_ID_DESC as c2
    from
    GL_ANALYTICS.DIM_ACCOUNT T12582,
    GL_ANALYTICS.DIM_ORG T12637,
    GL_ANALYTICS.DIM_ACCOUNTING_PERIOD T12597,
    GL_ANALYTICS.FACT_LEDGER T38965 / FACT_LEDGER_ytd */*
    where  ( T12582.ACCOUNT_KEY = T38965.ACCOUNT_KEY and T12582.STATEMENT_TYPE_CODE = 'Income Statement' and T12597.ACCOUNTING_PERIOD = 11 and T12597.FISCAL_YEAR = T38965.FISCAL_YEAR and T12597.FISCAL_YEAR = 2012 and T12637.ORG_KEY = T38965.ORG_KEY and T38965.FISCAL_YEAR = 2012 and (T12637.DEPARTMENT_CODE_DESC in ('D0200 - Arts Administration', 'D0206 - Film Studies')) and T12597.ACCOUNTING_PERIOD >= T38965.ACCOUNTING_PERIOD )
    group by T12637.ORG_ID_DESC),
    SAWITH2 AS ((select distinct 0 as c1,
    D1.c1 as c2,
    cast(NULL as  DOUBLE PRECISION  ) as c3
    from
    SAWITH0 D1
    union all
    select distinct 1 as c1,
    D1.c2 as c2,
    D1.c1 as c3
    from
    SAWITH1 D1))
    select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3 from ( select D1.c1 as c1,
    D1.c2 as c2,
    D1.c3 as c3
    from
    SAWITH2 D1
    order by c1, c2 ) D1 where rownum <= 65001
    I completely do not understand what is going on here. The second query has a ton of problems. First off, it's doing some type of UNION operation - no idea why it's doing that. And the real problem is that it's unioning results from a different fact table, FACT_LEDGER_period instead of FACT_LEDGER_ytd, which is completely screwing up our results.
    Long and short, I simply don't understand at all why the query should change just from rotating a column up into the table prompt area.
    Any ideas?
    Thanks,
    Scott

    Hi Scott,
    I see the query to be valid with each CTE doing the following Jobs.....
    1. I understand that this particular query is being generated to get the unique "ORG_ID_DESC " to fill up the table prompts.
    SAWITH0 AS (select distinct T12637.ORG_ID_DESC as c1
    from
    GL_ANALYTICS.DIM_ACCOUNT T12582,
    GL_ANALYTICS.DIM_ORG T12637,
    GL_ANALYTICS.DIM_ACCOUNTING_PERIOD T12597,
    GL_ANALYTICS.FACT_LEDGER T38927 / FACT_LEDGER_period /
    where ( T12582.ACCOUNT_KEY = T38927.ACCOUNT_KEY and T12597.ACCOUNTING_PERIOD = T38927.ACCOUNTING_PERIOD and T12597.FISCAL_YEAR = T38927.FISCAL_YEAR and T12582.STATEMENT_TYPE_CODE = 'Income Statement' and T12597.ACCOUNTING_PERIOD = 11 and T12597.FISCAL_YEAR = 2012 and T12637.ORG_KEY = T38927.ORG_KEY and T38927.ACCOUNTING_PERIOD = 11 and T38927.FISCAL_YEAR = 2012 and (T12637.DEPARTMENT_CODE_DESC in ('D0200 - Arts Administration', 'D0206 - Film Studies')) ) )
    2. This particular query is to get each prompt value and its corresponding data
    SAWITH1 AS (select sum(T38965.ORIGINAL_BUDGET) as c1,
    T12637.ORG_ID_DESC as c2
    from
    GL_ANALYTICS.DIM_ACCOUNT T12582,
    GL_ANALYTICS.DIM_ORG T12637,
    GL_ANALYTICS.DIM_ACCOUNTING_PERIOD T12597,
    GL_ANALYTICS.FACT_LEDGER T38965 / FACT_LEDGER_ytd /
    where ( T12582.ACCOUNT_KEY = T38965.ACCOUNT_KEY and T12582.STATEMENT_TYPE_CODE = 'Income Statement' and T12597.ACCOUNTING_PERIOD = 11 and T12597.FISCAL_YEAR = T38965.FISCAL_YEAR and T12597.FISCAL_YEAR = 2012 and T12637.ORG_KEY = T38965.ORG_KEY and T38965.FISCAL_YEAR = 2012 and (T12637.DEPARTMENT_CODE_DESC in ('D0200 - Arts Administration', 'D0206 - Film Studies')) and T12597.ACCOUNTING_PERIOD >= T38965.ACCOUNTING_PERIOD )
    group by T12637.ORG_ID_DESC)
    3. This particular query, I understand is to get the following data (Sample data) relating the prompts and their corresponding data
    column (c1) ;column (c2 ie ORG_ID_DESC); column(C3 ie sum(T38965.ORIGINAL_BUDGET))
    0;               ORG_ID_DESC1; NULL
    1;               ORG_ID_DESC1;10
    0;               ORG_ID_DESC2;NULL
    1;               ORG_ID_DESC2;40
    0;               ORG_ID_DESC3;NULL
    1;               ORG_ID_DESC3;29.8
    SAWITH2 AS ((select distinct 0 as c1,
    D1.c1 as c2,
    cast(NULL as DOUBLE PRECISION ) as c3
    from
    SAWITH0 D1
    union all
    select distinct 1 as c1,
    D1.c2 as c2,
    D1.c1 as c3
    from
    SAWITH1 D1))
    4. The last select statement does nothing but selecting the needed data which later gets arranged in the format as needed by the OBIPS
    select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3 from ( select D1.c1 as c1,
    D1.c2 as c2,
    D1.c3 as c3
    from
    SAWITH2 D1
    order by c1, c2 ) D1 where rownum <= 65001
    Now, on the table being chosen for picking up "ORG_ID_DESC" might be pretty much depending on the best source available as you know. If you would like BI Server to pick up any particular source, probably you could try the "LTS Priority Group" way.
    Hope I was clear and it helps.
    Thank you,
    Dhar

  • Importing single Excel columns into InDesign CS2 Tables?

    Hi, I have an Indesign CS2 doc with existing tables. I need to import data from Excel...but I just want to import certain columns. It doesn't seem to cut and paste, as it would into a tabbed format in Indesign. Is there a way to do this? I don't want to import the whole table from Excel and go through all the formatting again.
    OS X Tiger Mac G5
    THANKS SO MUCH!!!

    Jenny,
    InDesign CS3 supports what you want. In CS2, you can use
    my PopTab shareware script. The name stands for "Populate Table From the Clipboard."
    Dave

  • I need to combine two Excel columns into one.

    Specifically I've exported a .csv file from another web app and it has First Names and Last Names in separate columns. I need them combined into a single column which includes both first and last names. I can't seem to remember how to get it come without the delimiter. I've already had to specify which columns to "skip" and other things in the dialogue box brought up when I "Get external data." Any way to do this cleanly?
    Thanks in advance,
    Dan

    Easiest way, when already in Excel, is to use the CONCANTENATE function in a new column that will then have the combined text of the separate columns...
    For example column A has the first name and column B has the last name...
    use the following formula in any empty column cell:  =CONCANTENATE(A1, " ", B1)
    (note added the literal space surrounded by quotes as thats how you would normally see the names.
    then you select and copy the formula of the cell (Cmd-C), then select/highlight the rest of the column and paste (Cmd-V) and you're done.

  • Storing images of different format in the same table

    Hi there,
    I have a table with one field of type OrdImage and I am saving in such a table images that are actually stored in an external directory. If images are of the same type everything works fine but if I mix jpeg and gif images I got an error while populating the image properties:
    ORA-29400: data cartridge error
    IMG-00704: unable to read image data
    ORA-06512: at "ORDSYS.ORDIMG_PKG", line 420
    ORA-06512: at "ORDSYS.ORDIMAGE", line 25
    Thanks for Your help
    Leonardo
    null

    I need clarify a thing:
    If you store image1.jpg only and do setProperties(), it works, and
    if you store image2.gif only and do setProperties(), it works, but
    if you store image1.jpg in one row and image2.gif in another row and do setProperties(), does it fail?
    If this is true, call Oracle Support and provide the image files.
    null

  • Upload multiple excel files into tables using APEX

    Hi folks,
    I'm wondering if anyone has ever uploaded multiple .csv files simultaniously and store the data into the database using APEX XE before.
    I can browse for a single file, and execute that okay and a good example of doing that can be found at http://advait.wordpress.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
    This works fine when the user browses to a specific file on their network and then uploads the data from that one file.
    However I need the ability to 'grab' every file in a specific directory one after the other to process rather than having to specify which one to load everytime, and wondered if anyone has come across this before.
    Many thanks
    Graham.

    Just for completeness ...
    Got this to work, but it's a pl/sql issue as opposed to an APEX issue.
    Anyway, if anyone needs to have the ability to read multiple files then a quick easy way to do it (as lomg as they know the file names that will be read), is to create a directory on the database which points to the actual harddrive on your PC, then create a table (called an external table) and read from that external table as if it was an actual database table ...
    1 - Log on as sys and grant CREATE ANY DIRECTORY to whatever user you are logging in as (assuming you are not using sys to create apps)
    2 - Create a directory e.g....CREATE OR REPLACE DIRECTORY GB_TEST AS 'c:\gbtest';
    3 - Create an external table as ...
    CREATE TABLE gb_test
    (file_name varchar2(10),
    rec_date date
    rec_name VARCHAR2(20),
    rec_age number,
    ORGANIZATION EXTERNAL
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY GB_TEST
    ACCESS PARAMETERS
    RECORDS DELIMITED BY NEWLINE
    FIELDS TERMINATED BY ','
    LOCATION ('data1.csv','data2.csv','data3.csv','data4.csv')
    PARALLEL 5
    REJECT LIMIT 20000;
    That's it then ...
    select * from gb_test
    where file_name = 'xxx'
    will return all the data where the file_name = 'xxx'
    very easy to use.

  • How to import Filenames and File creation Date into Table..

    Hi Folks,
    I am importing Differennt Excels Files into table. my require ment is after importing completed I need to insert all these Filenames ,File creation date into table. (for Auditing).
    Can you please give me any ideas or reference link.  Thanks In Advance.

    Hi Folks,
    I am importing Differennt Excels Files into table. my require ment is after importing completed I need to insert all these Filenames ,File creation date into table. (for Auditing).
    Can you please give me any ideas or reference link.  Thanks In Advance.
    You can also prepare dir command and then exeucte it by using XP_CMDSHELL. This gives you file name, modified date, creation date information.
    Please refer:
    https://sqljourney.wordpress.com/2010/06/08/get-list-of-files-from-a-windows-directory-to-sql-server/
    https://hernandezpaul.wordpress.com/2013/02/15/store-file-names-and-modified-dates-in-a-table-without-a-foreach-loop-task-sql-server-ssis/
    Cheers,
    Vaibhav Chaudhari
    [MCP],
    [MCTS], [MCSA-SQL2012]

  • My experiences of importing different formats into IMovie...!!

    I’ve been through a lot of pain with IMovie for the last 6 months, and cracked it a couple of days ago. I therefore feel the need to write about my experiences.
    I have lots of old footage on:-
    1. DV tape
    2. HI8 tapes
    3. Sony mini-DVDs
    4. DVDs
    5. Sony standard def hard disk camcorder files.
    1. DV tape
    This was a joy to import. OK, so I had to invest a small amount of cash to buy a new cheapie DV camcorder (as my old one broke years ago), but the import itself was easy. Just connect the camcorder, the import window appears, and away to go. Events are imported with the correct date and time, and it even creates a new event for different days imported.
    2. HI8 tapes
    As I’ve only got a few of these, I decided to ‘cheat’, so I’ve recorded them onto DVDs using my domestic DVD recorder sitting under my TV. So the problem is shifted from HI8 tapes onto DVDs.
    3. Sony mini-DVDs
    I’ve been trying to crack this issue for months. Clips are imported in random order, even though they are shown in the correct order in the preview. Hopefully it will get sorted. See the following thread:-
    http://discussions.apple.com/thread.jspa?messageID=9404421&tstart=0
    4. DVDs
    Haven’t tried this yet, until the mini-DVD issue is sorted. I might go down the road of converting the VIDEO_TS folders into DV files using MPEG Streamclip from squared5.com but I’d rather wait and import them ‘properly’ as the software intended.
    5. Sony standard def hard disk camcorder files.
    Now this is the biggie…..
    I had about 1,000 MPEG2 files on my hard disk, that I’ve moved from my camcorder over the years. To my annoyance, when I switched from a PC to the Mac, I needed to buy the MPEG add-on to Quicktime. OK, so no big deal, but even then, all I could get was the video with no sound. After weeks of digging about, I found out that the reason there was no sound is because apparently Quicktime can’t handle MPEG files with AC3 dolby digital sound. As all of my files are recorded in this format, this was a major hurdle.
    I then dug around and discovered that on the Sony CD that comes with the camcorder, there is a utility to down mix the AC3 audio to stereo. But it can only do one file at a time – no good for 1,000 files.
    Even so, I tried a few files, and yes – they now played under Quicktime WITH audio.
    But when doing an import into IMovie 09, the files are greyed out and cannot be selected. So back to the drawing board...
    I then looked into various bits of software, finally deciding to get MPEG Streamclip, in order to convert the files in something more Apple friendly.
    I did lots of experiments over many weeks in converting files to different formats for import into IMovie, and even though some of them looked excellent, when exporting to different sized export files (e.g. IPod, AppleTV), some of them had artifacts and shimmering all over the place.
    Reluctantly I took the helpful advice of someone to convert them into DV files. I say ‘reluctantly’ because the files are HUGE. So much so, I then shelled out (even) more cash on a Drobo to store all the converted DV files.
    Next problem...
    Because MPEG Streamclip converts the files into DV files, the original date and time information is lost. This is a real pain and means IMovie thinks all the files are 2009.
    I then purchased the excellent ‘A better finder renamer’ and ‘A better finder attributes’, to see if I could rename the files. Unfortunately there is no easy way to say ‘change the date/time on the new DV file to be the same as the old MPEG file’ a thousand times over.
    I then approached a company about writing a bespoke automator script to do this for me. But it was going to be expensive.
    I then set about manually changing some of the dates of the files.
    Even then, IMovie was getting confused during the import, and putting some of the scenes in the wrong order. Looks like because MPEG Streamclip is so quick at doing the conversion to DV, that some of the files have the same time stamp, so IMovie gets confused.
    I then looked into software to slow my Mac down, so that MPEG Streamclip would run slower (I wanted to guarantee that each file out of the thousand that it created was created in a different MINUTE to the last file). This was proving fruitless however.
    I then had useful discussions with Appleman1958 - see thread -
    http://discussions.apple.com/thread.jspa?threadID=1979095&tstart=0
    who suggested that I could rename the files with the IMovie notation, i.e.
    clip-yyyy-mm-dd hh;mm;ss.ext
    I even worked out how to do this automatically using ‘a better finder renamer’.
    But there was still one more issue.
    When the files were imported into IMovie, the thousand files would just come in as one event (unlike importing DV tape where it splits into days).
    Being unhappy with this, I had a brain wave and decided to try something else. AppleMan1958 helpfully suggested putting the files into different folders “behind IMovie’s back”, something I was open to doing, but wanted to try something else first...
    I resurrected my old camcorder from my attic, and filmed a few minutes of footage.
    I then plugged the camcorder into my Mac. To my AMAZEMENT, the import window appeared in IMovie (just like it does for DV tapes), AND the audio played as well as the video. I was absolutely staggered.
    I then noticed an ‘archive’ button within the import window, so decided to press it. It then copied the MPEG file from the camcorder onto the hard disk. But it did so in the structure of the original camcorder (i.e. it creates a series of specially named folders, just like on the camcorder).
    I then decided to copy all 1,000 of my MPEG2 files into the new special structure that had just been created.
    All 1,000 files were then accessible using the standard import function!!!!
    (By the way – I’m sure people already know this information – and I’m in no way taking credit for any of it, as it’s probably been suggested by other people in the past).
    I’ve now happily imported all of the files.
    (Interestingly, a couple of times it said ‘Error!’ on importing some of the files. The third time I tried it, it worked. How random!!)
    What amazes me is that now the Mac CAN seemingly handle MPEG video AND ac3 audio, whereas it can’t handle it by double-clicking the files in the finder. I can’t see why this should be the case. Also, it’s really annoying that when importing the files from hard disk, the files are totally greyed out – but it CAN import them by fooling IMovie into thinking it’s a camera archive.
    Ofcourse now I’ve spent all this extra money, it’s time to dust off the old camcorder and use that for a few more years, until I pluck up the courage to go hi-def...
    Hope you enjoyed reading – thought I’d share my experiences incase there are any newbies out there with similar issues. It’s annoying that Apple make it seem like childsplay to connect your new shiny camcorder to IMovie, but seem give little help in the more technical issues.
    Now, if only they’ll fix the mini-DVD import bug too...!
    Brad

    Hi Brad,
    when you use Streamclip to convert media, use the same name for the exported file (only with different extension). Then make a shell script calling
    touch -r origFileName.mp2 newFileName.mov
    This will copy the exact time and date from origFileName.mp2 to newFileName.mov
    The script may look like this (save the file, give an exec permission to it and call it in the right directory):
    #!/bin/bash
    for i in `ls *.mp2`; do
    NEWNAME=$(ls "$i" | sed -e 's/mp2/mov/')
    touch -r $i $NEWNAME
    done
    You may need to adapt the extension names used (in the example above .mp2 is input file to get the date/time stamp from and .mov is the output file to stamp.
    Have fun and cheers

  • Error message downloading OBIEE Report to Excel "is in a different format"

    Dear experts:
    We just upgraded to 10.1.3.4.1 in our Dev environment and are seeing a pecuiliar behavior when we try to download a report to either "Excel" or "Excel 2000".
    After selecting Excel (or Excel 200) from the Download Link, we get the following message that pops up:
    The file you are trying to open 'Period Summary.xls' is in a different format than specified by the file extension. Verify the file is not corrupted and is from trusted source before opening the file. Do you want to open the file now?
    We are then given the choice of Yes, No, or Help
    When I click Yes, the File does open, but why this message? I can see the users complaining about this message.

    I found the link to MSDN site which states that this is a "known problem" and MS will provide a fix at a future date.
    http://blogs.msdn.com/vsofficedeveloper/pages/Excel-2007-Extension-Warning.aspx
    Also, the following metalink documents address this: 780817.1, 759410.1
    This is the expected behavior due to security restrictions implemented in MS Office 2007
    Solution
    The following is the workaround for this issue:
    Client desktops can change the default behavior of the security check using a registry key. The following registry key can be set to alter the behavior of the Excel 2007 client in the following ways:
    Disclaimer from Microsoft: WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall Windows. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.
    Key: HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Excel\Security
    Value: (DWORD)"ExtensionHardening" = [0 = Disable check; 1 = Enable check and prompt; 2 = Enable check, no prompt deny open]
    I have searched through OBIEE Oracle docs, but didn't find any mention of this issue.
    Has anyone seen any OBIEE workaround for this?

  • I am having trouble getting a numbers spreadsheet to hold different formats in the same column.  A column with a date formatted heading will not convert to $ for the cells below.   Any suggestions would help.

    I am having trouble getting a numbers spreadsheet to hold different formats in the same column.  A column with a date formatted heading will not convert to $ for the cells below.   Any suggestions would help.

    Hi Wayne,
    Thank you for this response.  I have tried this but when I start enterring $ amounts some, such as $6.00, go in OK others such as $4.00 appear as a date ie 4 Oct 12.  
    Kind regards
    Paul

  • Get different format error when opening excel file

    Hi,
    In 10g form, I use CLIENT_OLE2 to generate an excel file on the client machine. Every time, I open the excel file, I get the error message, 'The file you are trying to open, 'my1.xls', is in a different format than specified by the file extension....'. However, I still can open the excel file. I am using excel 2007.
    Could somebody please explain what the problem is? How should I solve this problem?
    Thanks for your help.
    neemin

    I don't know that off the top of my head. When I have developed OLE code in Forms I found it very useful to make a Excel macro that did what I wanted to accomplish and the translate that to OLE code in Forms.
    I encourage you to create a new forum entry for this second issue. Maybe someone else has done it and can give you a quick answer.

  • Help with Importing Excel Data into Formatted Tables

    This is my first post, here, so please be gentle!
    I am a relatively new user of InDesign CS4, and I am creating a 70-pg manufacturer's price book.  A very large portion of each page is going to be size and price information imported from a large Excel spreadsheet.
    I have created the table format that I'd like to use for each page, but the trouble comes when I import the Excel data into that table.  For some reason, when I import, it all dumps into one cell.  Would it be best to import as an unformatted table, and then format the table each time, or is there a way to simply import the data into my pre-formatted table?  I've seen how the former is done, but the latter seems much easier (...although that could be my inexperience talking).
    Any advice would be greatly appreciated!
    Thanks so much,
    Laura (V1500)

    Thank you both so much for your time!  This is exactly what I needed.
    Cheers
    Laura

  • Convert MPEG 4 file into different format

    I have a TrekStore Movie Station which only supports formats like DVD (IFO,VOB), VCD (MPGEG1), SVDC/KVCD (MPEG2), DivX 3, DivX5, XviD. In Quick Time Pro Help it says I can convert an save movies into different formats, I just can't find how I can do it.

    I have a TrekStore Movie Station which only supports formats like DVD (IFO,VOB), VCD (MPGEG1), SVDC/KVCD (MPEG2), DivX 3, DivX5, XviD. In Quick Time Pro Help it says I can convert an save movies into different formats, I just can't find how I can do it.
    QT Pro does not "do" multiplexed compression formats. For that you would need an external, third-party, MPEG-based application. iDVD, Toast, Visual Hub, iVCD, MPEG2 Works, etc. would work here to create some of these formats. QT Pro, MPEG Streamclip, and GarageBand can all create DivX and/or XviD files if you have the appropriate QT components installed. (Not sure if you can still find DivX 3 but assume free download of DivX 5.1.1, 5.2.1, and/or Xvid are still readily available on the internet.)

  • Inserting data from one table to another in different format

    Hello,
    I would like to know what I am doing wrong with the following code when I write a data from one another to another table in a different format. I am now learning PL/SQL and am using this as
    a test problem.
    I have a table called students which has the following columns:
    SQL> desc student
    Name Null? Type
    ----------- ----------------STUDENT_ID NUMBER(10)
    COURSE VARCHAR2(10)
    CREDITS NUMBER(10)
    I have created another table called new_student which has the following structure:
    SQL> desc new_student
    Name Null? Type
    ----------------------------------------- -------- ------------- STUDENT_ID NUMBER(10)
    COURSE VARCHAR2(30)
    CREDITS VARCHAR2(10)
    The data in the student table is:
    SQL> select * from student;
    STUDENT_ID COURSE CREDITS
    1 Science 4
    1 History 3
    2 Science 4
    2 History 3
    2 Math 4
    3 Sociology 3
    3 Psycology 3
    I want to store the STUDENT table data in NEW_STUDENT table as:
    STUDENT ID COURSES CREDITS
    1 Science/History 4/3
    2 Science/History/Math 4/3/4
    3 Sociology/Psycology 3/3
    This is my code:
    DECLARE
    -- Get all the student IDs
    CURSOR studentlist_cursor IS select distinct student_id from student ORDER BY student_id;
    -- Get the information for each student ID
    CURSOR courses_cursor(nstudentid number) is select course, credits from student where student_id=nstudentid;
    nIndex     INTEGER;
    pltcourses     DBMS_SQL.VARCHAR2_TABLE;
    pltcredits     DBMS_SQL.NUMBER_TABLE;
    newcourses varchar2(50);
    newcredits varchar2(10);
    BEGIN
    FOR student_rec IN studentlist_cursor
    LOOP
    nIndex:=0;
    -- Loop through each student ID from student_rec to get the
    --courses and creditsstudent ID
    FOR courses_rec in courses_cursor(student_rec.student_id)
         LOOP
         nIndex:=nIndex+1;
         pltcourses(nIndex):=courses_rec.course;
    -- Store the course data for each student ID in newcourses
    -- while doing so check if it is null or put a '/' between each course
    loop
    if newcourses is null then
    newcourses:=pltcourses(nIndex);
    else
    newcourses:=newcourses||'/'||pltcourses(nIndex);
    end if;
    end loop;
         pltcredits(nIndex):=courses_rec.credits;
    --Store credits data in variable newcredits
    --If the newcredits is not null then put a '/' between each credits
    loop
    if newcredits is null then
    newcredits:=pltcredits(nIndex);
    else
    newcredits:=newcredits||'/'||pltcredits(nIndex);
    end if;
    end loop;
    -- Insert student id, newcourses, newcredits into NEW_STUDENT
    INSERT INTO NEW_STUDENT
    (student_id ,
    course,
    credits
    ) VALUES
    (student_rec.student_id,
    newcourses,
    newcredits
    COMMIT;
    -- come out of the student id record and go to the next student --id record
    END LOOP;
    -- come out of the loop
    END LOOP;
    END;
    While doing so I get an error message:
    declare
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at line 23.
    The error is at the line:
    newcourses:=newcourses||'/'||pltcourses(nIndex);
    Can anyone help me by pointing out where the mistake is?
    Thank you for reading this long mail.
    Thank you.
    Rama.

    Hi dude
    there is lot of error in ur pl/sql.
    and u have created table new_student with columns
    student_id number(10),
    courses varchar2(30),
    credits number(10).
    first u need to modify ur table.
    student_id number(10),
    courses varchar2(30),
    credits varchar2(10).
    Now i am writing whole pl/sql block for u. it will work fine.
    DECLARE
    CURSOR studentlist_cursor IS select distinct student_id from student ORDER BY student_id;
    CURSOR courses_cursor(nstudentid number) is select course, credits from student
    where student_id = nstudentid;
    nIndex INTEGER;
    pltcourses DBMS_SQL.VARCHAR2_TABLE;
    pltcredits DBMS_SQL.NUMBER_TABLE;
    newcourses varchar2(50);
    newcredits varchar2(10);
    BEGIN
    FOR student_rec IN studentlist_cursor
    LOOP
    nIndex:=0;
    newcourses := null;
    newcredits := null;
    FOR courses_rec in courses_cursor(student_rec.student_id)
    LOOP
    nIndex:=nIndex+1;
    pltcourses(nIndex):=courses_rec.course;
    if newcourses is null then
    newcourses:=pltcourses(nIndex);
    else
    newcourses:=newcourses||'/'||pltcourses(nIndex);
    end if;
    pltcredits(nIndex):=courses_rec.credits;
    if newcredits is null then
    newcredits:=pltcredits(nIndex);
    else
    newcredits:=newcredits||'/'||pltcredits(nIndex);
    end if;
    end loop;
    INSERT INTO NEW_STUDENT
    (student_id,
    course) VALUES
    (student_rec.student_id,
    newcourses);
    END LOOP;
    END;
    and please revert back
    Regards
    Anil

Maybe you are looking for

  • Copy Command in ABAP report

    HI Gurus, I have a ABAP report - basic list, with lot of batch data on it. based on the report they will copy the batch numbers and paste in standard transactions. Users complaining to do a Ctrl + Y and then Ctrl + C then Ctrl + V to paste the batch

  • Geeting an Collaxa Cube Exception while invoking the bpel process in 10g

    Hi All, While running my bpel process I'm getting an exception something like this. can anybody came across this type of exception. what it means remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>when invoking

  • DMEE tree: to split the details to 2 type; payment and invoices

    my client requests to have new set of payment format. the header footer stil same, but on the details, they request to split to 2 type; P-payment and I-invoice. the flow will be like below: H,P P,ACH,ON,,,, MY,KUL,312148938785,25/01/2006,XXXXXX BERHA

  • Booklet not printing in spreads in CS6

    Print booklet's spread option is grayed out and the 12-page document is print as 6 pages even though the preview shows pages 12 and 1 as a spread. The final pdf file from Distiller is a 6-page document with pg 12 as as the first page and pg 1 is miss

  • Need to find the transport request no for a transaction code

    Hi to all experts, how can i find out the transport request for a transaction code