Dynamic creation of tables based on Excel:

Dear Experts,

I have a requirement like this can you help me on this you can

I have some sheets with excel data. I want to create dynamic tables based on the spreadsheets excel and that excel spreadsheets this specific data should be imported into this table. How can I achieve this?

Is it possible to make this one

Please help me on this

983563 wrote:

Can you guies give any sample format so that I can try from here

Mukesh seems to talk about using Excel to connect to Oracle and Excel create tables and insert data, such as a client application.

However, this is not what you're asking.

The examples you need are in the links that Anton has provided, which describe in detail how to set up a heterogeneous service (or whatever now calls Oracle 11 g go - they have changed the name), and then you can query the Excel workbook as if each worksheet is a table, with the first line of each leaf with column names.  You can even search the workbook to see what "tables" (sheets) exist and what "column names" (first row labels), use select standard... from queries of type user_tables@excel (once you have configured your heterogeneous service).

As Marty said well, what is the purpose to do this dynamically, as dynamically created tables will require code created dynamically for use.

An application design and database well-designed will dictate what data formats and tables are at design time.

Tags: Database

Similar Questions

  • Dynamic report query table based on selected LOV

    Hello

    Need some suggestions and Tips how to query dynamically table via lov to report.

    Scenario:

    Table, TABLE_LIST, a tablename (table in DB) and filter (for where clause) column. The TABLENAME_LOVE is derived from the table TABLE_LIST.
    D SELECT TABLENAME TABLENAME TABLE_LIST R


    On Page 2, a select list item, page P2_TABLENAME use TABLENAME_LOV
    All data tables in the table_list has an identical structure (columns, triggers, primary key and so on).

    I want to have the query area of the report of the table based on selected LOV.

    Example,

    TableName Filter
    WBR
    CD2 ACTIVE = 'Y '.

    When select TB1, regin report ask TB1 on the base.
    When select CD2, will interview the report based on CD2 regin WHERE ACTIVE = 'Y '.


    Question:
    How can I query function & P2_TABLENAME. WHERE & P2_FILTER.
    As
    Select col1, col2 from P2_TABLENAME WHERE & P2FILTER

    Appreciate any suggestions and tips.

    Tigerwapa

    Hello
    You should always put your version of the Apex, version of DB and such other information as suggested in the FAQ.
    And now wherever you are referring to report, you need to answer if it's IR or classic.

    Regarding your query, have you explored the kind of statement "SQL Query (body of function from PL/SQL returning SQL query)"?
    This could be a good target for what you're trying to reach.

    Kind regards

  • Dynamically partition a table based on different values of a specific column: possible?

    I'll start by explaining my problem, so that you can have a global vision of the problem and perhaps suggest another solution. Problem: I have 2 tables with millions of records. Records are added daily, and so each row in each table has a column of "insertion_date".

    C1 C2 ... C10 insertion_date (type date, ofc)
    

    lines are cleaned according to the insertion_date parameter. This can happen in two ways:

    1 - whenever an application error appears. In this case delete is based on a single day and would be like:

    delete from T1 where insertion_date=##;
    

    in other words remove us the lines added and then restart the program (business logic, can't change it)

    2. every two weeks the data associated with these two weeks are deleted because will be most used:

    delete from T1 where insertion_date between ## and ##; (a two weeks period here)   
    

    Delete is currently very slow: it takes abot 8 minutes just to remove approximately 5 M of records (with the same insertion_date), I can't even imagine the time required to delete records more.

    So, here's my idea!

    I would partition my DB according to the value of insertion_date.

    To remove case 1 I would simply delete the partion associated with this insertion date, to remove scores of cases 2 associates at that interval.

    For the needs of my application at most 15 were leaving are present each time (maybe 20 if I want to keep last at least 5 days of data), so the documented limit of 64000 partitions is not a problem.

    Real problem is that I do not know insertion_date values in advance, so my question: is it possible to automatically create a new partition every time presents itself a new value of insertion_date?

    And please correct me if I'm wrong, if I accomplish partitioning that I wouldn't need to edit above right queries? I know just the faster removal time am I correct?

    No - it isn't bog standard range partitioning partitioning interval

    But perhaps you're citing 9i documentation for a reason?

    It is a feature of 11g... then only about 10 years.

    create table t1
    (col1  date)
    partition by range (col1) interval (numtodsinterval(1,'DAY'))
    (partition po values less than (to_date('01-01-2015','DD-MM-YYYY')));
    
    table T1 created.
    
    select table_name, partition_name, high_value from user_tab_partitions where table_name = 'T1';
    
    TABLE_NAME                     PARTITION_NAME                 HIGH_VALUE
    ------------------------------ ------------------------------ --------------------------------------------------------------------------------
    T1                             PO                             TO_DATE(' 2015-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIA...'
    
    insert into t1
    select trunc(sysdate,'MM')+rownum-1
    from   dual
    connect by  rownum <= 10;
    
    select table_name, partition_name, high_value from user_tab_partitions where table_name = 'T1';
    
    TABLE_NAME                     PARTITION_NAME                 HIGH_VALUE
    ------------------------------ ------------------------------ --------------------------------------------------------------------------------
    T1                             PO                             TO_DATE(' 2015-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIA...'
    T1                             SYS_P450383                    TO_DATE(' 2015-07-02 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIA...'
    T1                             SYS_P450384                    TO_DATE(' 2015-07-03 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIA ...'
    T1                             SYS_P450385                    TO_DATE(' 2015-07-04 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIA ...'
    T1                             SYS_P450386                    TO_DATE(' 2015-07-05 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIA ...'
    T1                             SYS_P450387                    TO_DATE(' 2015-07-06 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIA ...'
    T1                             SYS_P450388                    TO_DATE(' 2015-07-07 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIA ...'
    T1                             SYS_P450389                    TO_DATE(' 2015-07-08 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIA ...'
    T1                             SYS_P450390                    TO_DATE(' 2015-07-09 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIA ...'
    T1                             SYS_P450391                    TO_DATE(' 2015-07-10 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIA ...'
    T1                             SYS_P450392                    TO_DATE(' 2015-07-11 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIA ...'
    
  • Calculates percentage columns in dynamic loose pivot table formatting in Excel

    I have a simple report built using PivotTable (OBIEE 11.1.1.5.0)


    1 measure and 1 dimension using PivotTable. and I have reproduced the metric column and change to the % column. (Display data as a percentage of the column). So far so good. Here's the snapshot

    http://Tinypic.com/r/2s14xa9/7

    Now I download the report in excel and all % values are messy. Here's what it looks like

    http://Tinypic.com/r/bede90/7

    I tried to play with the data formats etc... nothing works... I can't add a column to the metric column format as this will impact the derived column %.

    Is this a bug? Pointers...

    Thank you

    Hello
    I have recovery SR to My Oracle team they said this is to improve and provide the best formatting in Excel. the office 2010 and the next realease obiee11.1.1.6 is supported

    Thank you

    Deva

  • creation of several tables based on existing tables

    Hello

    I need to create 60 tables based on existing tables from 60. Rather than create a how can I create 60 all at once.


    The 60 current tables are named FY11_ACC1, FY11_ACC2, FY11_SALES1, FY11_SALES2..., but all of the 60 tables start with FY11. I need to create the same structured tables but with names like FY12_ACC1, FY12_ACC2, FY12_SALES1, FY12_SALES2 FY12...

    I am currently using "create table FY12_ACC1 select * from FY11_ACC1 where 1 = 0". Is there a way I can write each of them in a single query?

    Thanks for your time and your help.

    You can use this query in a loop to create all the tables. Make sure that you add a condition to filter only the tables you need.

    select 'create table ' || replace(table_name, 11, 12) ||
           ' as select * from ' || table_name || ' where 1=0'
      from user_tables;
    
  • Dynamically read the table name in the query update

    Hi all

    I am trying to run the updated sql query where the name of the table should be read dynamically from another table below.

    Please let me what wrong with my request.

    setting a day (select CONCAT('T',schemaid) from outline, which the name = 'Analyzer') set c7 = 99;

    "outline" is a table that contains two columns name and schemaid.

    all the table created in our database with the prefix 't' T4345 for example.

    I did as suggested by you

    No, you didn't.  I did not any package creation code in my example, in order to better that you you point the finger.

    Your syntax is invalid for creating a package with the code like this, please read on creating packages and procedures within them if that's what you want to do.

    In addition, your package creation statement is to create a package specification, but you put in the code which must be in a package body, not a notebook loads.

    It should be something like (untested since I don't have your tables)...

    create or replace package my_packg as
    procedure dowhatever.
    end;
    /

    create or replace package body my_packg as
    dowhatever procedure is
    TBL varchar2 (30);
    Start
    Select 't' | SchemaId
    in tbl
    of outline
    where name = 'Analyzer ';
    run immediately 'Update'. "TBL |' set c7 = 99;
    end;
    end my_packg;
    /

    and then call this procedure by calling my_packg.dowhatever ();

  • How can I insert several CSVs in dreamweaver in a table based on ID

    How can I insert several CSVs in dreamweaver in a table based on ID? I recorded each sheet in the doc excel as a CSV file and now I want to import all the CSVs in one table by pulling the information attached to the ID of the line.

  • Impdp order of creation of tables

    Is there any order, how program 'impdp' attempts to create tables?
    Does it try to create in the order specified in the dump created by expdp file? If so, then how the 'expdp"takes the Decree of creation of table?
    Is the alphabetical order, then this table 'A' is created before the table "B"?
    Or is the order with the plug in the algorithm of the spirit that the child tables are born before mother-tables, so that the creation of the mother-table succeeds with the creation of FK constraints to mother-table that reference the children tables PK-constraints?
    Or any other order?

    (Oracle 10g).

    The export dump file contains objects in the following order:

    Type definitions
    Table definition
    Data in the table
    Table index
    Triggers, views, procedures and integrity constraints
    Bitmap, based on a function and domain indexes

    Thank you

  • Table.VI easy Excel returns false numbers

    Hello

    I'm working on a project to make automatic measurements in Labview and transfer them to a pre-made Excel file.

    But I came across something odd. The measure is in Volts and the output is in mili Volts. This goes without any problems, but when it is written in the Excel file, it becomes a number that does not completely match the entry.

    For example. The number of input to the "Excel easy Table.vi" is 50,2863, but the number written in the Excel file is 50 286 000

    How is it possible and more important still, how can I fix?

    Thanks in advance.

    I have no where to check if this is the case, but it could be useful:

    http://forums.NI.com/T5/LabVIEW/decimal-point-problems-with-the-Excel-easy-table-VI-and-Excel/TD-p/1...

  • Is there an easy way to filter a 2D table based on the values in two fields?

    Y at - it an easy way to filter a 2D table based on the values of one of the fields. In my attached VI the output array has the following format:

    Ident Frame Type bytes TimeStamp data

    10:57:07.621 3AD00016 POUVEZ 8 0000000000000000 data frame

    10:57:07.622 3AD00017 CAN data frame 8 000005E000000000

    10:57:07.624 3AD00018 POUVEZ 8 0000000003300000 data frame

    10:57:07.625 2DC00000 POUVEZ 8 0000000000000000 data frame

    10:57:07.626 3AD00019 POUVEZ 4 0000030000000000 data frame

    I would like to delete all lines that do not have an "Ident" between the values of 3AD00000 and 3AD0001E. So for the data above the fourth row would be removed. The only way I can see to do this is to form a 1 d table. Is there a better approach?

    Thank you.

    Hi chuck72352,

    After you've sorted your data, you can use the function InRange. Combined with a "search in 1 table D", you get the range you really want.

    Mike

  • Problem opening of files from the two account email, secondary remembered as HDD and USB memory-based external excel...

    Problem opening of files from the two account email, secondary remembered as HDD and USB memory-based external excel. Message warning "there was a problem sending the command to the program".  I use Windows 7, version studend of microsoft office 2007.  This problem does not exist when I use the same USB on the desktop (XP)

    You should not actuall open/edit an attachment or a file on a USB drive, the file must be saved to a document on the PC first and opened/edited location.

    http://support.Microsoft.com/kb/211494

  • SQL query * I want to insert a file column in the other table based on two columns

    I want to insert a column records to another table based on two columns

    the query below does not work

    insert into def_ver_lnki_p (job_name)

    Select def_job.job_name

    from def_job where def_job.job_id = def_ver_lnki_p.job_id and def_job.table_id = def_ver_lnki_p.table_id;

    Just to correct sql

    Update

    def_ver_lnki_p define job_name =)

    Select def_job.job_name

    of def_job

    where def_job.job_id = def_ver_lnki_p.job_id

    (and def_job.table_id = def_ver_lnki_p.table_id);

  • SQL script to insert values into a table based on the type of user

    Hello

    I have a requirement where I need to insert (username, groupname) in a table based on the user name.

    We have two types of user accounts:

    (1) user name, which starts with "DV" example: "DVPATM."

    regular user 2) example: 'PATM '.

    If the user name begins with "DV" under instruction insert should kick in

    insert into < tablename > (username, groupname) VALUES (< username > ' < groupname1 >).

    otherwise below insert statement should kick in

    insert into < tablename > (username, groupname) VALUES (< username > ' < groupname2 >).

    I need to use SQL or stored only procedure.

    Please suggest

    Thanks in advance

    All things being constant, you could use decode/case just for groupname by examining the first character t the user name, for example

    insert into (username, groupname) VALUES (, (substr ( , 1, 2) the case when "DV" then else end));

    Fixed edit: value for OTHERS, as noted by Frank

  • How to display '-1' with a table not formatted (Excel spreadsheet) in InDesign

    Hello!

    If you place a table not formatted (Excel spreadsheet) in the cells of InDesign with '-1' are not displayed :-(

    The Adobe solution is to use the tables formatted, but that is no option for us, because if the numbers in the excel worksheet updated, InDesign loses real formatting and rebuilt the Excel formatting :/

    The problem is understandable for Adobe, but we didn't have the suspicion to ask in the forum for a solution.

    I think the problem is the operating system and independent version of InDesign - we everywhere (Windows 7,8,10) and Mac OS X, CS6 CC problem - there is a bug/feature in constand.

    Does anyone have a solution or a solution to our problem? :-)

    Thank you in advance!

    Ludwig

    In Excel, you must precede the - 1 with an apostrophe (so '-1). As you probably know, this is unnecessary with other negative numbers... If I remember correctly.

    It is not sufficient for formatting just these cells as text in Excel, the apostrophe is necessary.

    Mike

  • Add lines to insert a table based on the box and the values in the LOV

    I have two options (1) the list of values (2) box (2 values) .the are required field.when I click on create lines button and then insert table/slot (fire) form of table, based on my selected lov values (for example 3 selected then 3 rows only) and the value of the checkbox.

    If I select 3 values LOV and then check the box 1

    SEQ / / desc box SL (1)
    1DESC 11
    2DESC 22
    3DESC 33

    If I select 5 values LOV and then check the box 0

    Header 1 / / desc box SL (0)
    1DESC 10
    2DESC 21
    3.. 5DESC 3... 52.. 5

    my workspace: ram_r & d

    username/password: aramani/apex

    App: https://apex.oracle.com/pls/apex/f?p=72423:1:102019883635814:NO

    Thank you

    RAM

    It has achieved the goal, thread:multi line table based on LOV

Maybe you are looking for

  • wireless connection with the non-administrateurs problem

    We use our cell phones to A60122 satellite with Windows 2000 in a windows 2000 domain. Only a local administrator can use the wireless network adapter. Any other user gets a ' no connection / cable disconnected "error. They cannot even log on - field

  • Great variation on thermocouple readings

    I have to type K thermocouples (two long wires twisted and welded at the end) connected to a map of SCC - 68 (without modules). This card connects to a data acquisition NI PXI-6221 multifunction with compensation of CYC. I have install a global chann

  • Problem of RAM with Windows 7

    Separated from this thread. Read here: http://support.microsoft.com/kb/2267427 As you can see Windows 7 does not take more than 4 GB of memory. Next time get only 4 GB unless you have two or more operating systems on a PC That didn't HELP me at ALL!

  • On the road

    Hi all I need your help on two issues: I can't ping (or get other services) between two computers inside the area. One of them, is configured with the address public and static IP is applied as follows: public static 213.212.a.b (Interior, exterior)

  • SSL and PCI compliance?

    I install a new 5520 with IPS for a client, and they ask on the SSL (WebVPN) being self-signed PCI compliance.  I don't know what document to find this information under the PCI DSS.  There was also mention on double authentication required, but with