How to create a block of data to multiple tables

If I try to use the wizard to create a new block of data and I choose to create it on a table or a view, the wizard asks me for the table create the form on. But if I want to create a form with two tables for example to join them, how can I do? Do I have to create a view on the database (very bad for me!) before joining the wtho tables can create the form to this point of view, or is it possible to create a form in two or more tables?

Mark,
Yes, you can base in fact of a block of shapes on a join of tables. Take a look at forms: how to build a block of data to a join of the table. You can also use a base query Clause From block. Basically, you base your block on a SQL statement. For more information on this option, take a look at forms: how to base a block on a FROM Clause query. Finally, you can also base your block on a procedure. This concept is illustrated in this article: forms: how a block of data based on a procedure.

The fall down using one of these options, is that your block is not editable. If you need to update the data presented by these options, you should use the-Insert, triggers we set to and delete now write your own Insert/Update and Delete statements.

Hope this helps,
Craig B-)

If someone useful or appropriate, please mark accordingly.

Tags: Oracle Development

Similar Questions

  • How to create relational views based on an xmltype table which included sev

    Hello

    I'm using oracle 11.2.0.1.0.
    How to create a relational view based on a table xmltype including the content of the .xml files several different?

    Thank you.


    For examle:

    SQL > SELECT OBJECT_VALUE FROM document;

    Published by: cow on January 6, 2011 19:57

    In general, you can use XMLTable to create these views...

    You will need to create a view for each collection

    The notice will contain the data of all documents...

  • How to create a report in excel for a table?

    How to create a report in excel for a table?

    Creating an excel report

    the forage value off markup html on spool on

    coil emp.xls

    Select * from noshow.

    spool off

    moved the markup html off the coast of the coil

  • Create the form for selecting data in multiple tables

    Hello

    I'm getting APEX for the first time and I just read 2 days dev Application Express guide

    I tried to play and I can't create a report with the form that select data from several tables

    What I want to achieve is a report we'll say 'USERS' makes MANAGER_ID ID, NAME, with a form that allows me to create, delete, change users

    The problem is that, once the report with the form created, if I click on create (to create a user) it will ask me for id, name, and manager_id

    I need a water drop down which allows me to select managers in the table manager instead of manually insert Director id

    How do I do that?

    Thank you!

    HI Chris,

    LOV will use this magic.

    Search:

    Kind regards

    BEnjamin

  • Creating XML file using data from database table

    I have to create an xml file by using the data in the table of multiples. The problem that I face is data are huge it's millions, so I was wondering is it possible efective for the creation of an XML of this type.

    It would be great if you can suggest an approach to achieve my requirement.

    Thank you
    -Vinod

    An example of the forum: Re: how to generate the XML from the database table

    Published by: Marco Gralike on 18 October 2012 21:41

  • How can insert different types of data in the table?

    Hello
    How can I insert different types of data in the table, (e.g., numeric and string) in the same index of a table.

    example:
    index0 car 10 green

    car red 11 index1
    Index2 car Blue 12

    where green car red and blue car as string and 10, 11 and 12 in the numeric form.
    then I extracted 10, 11 and 12 a digital table

    and, the green car, red car, blue car in a string array

    Help!

    Use 'Analysis of the chain' as in the picture as an attachment.  This will extract the number and color that you can add tables later.

  • How to create a foreign key constraint on a table nested column

    Dear Experts,
    I create 2 tables using the object type. the VESSEL_PARAM table contains the list of the parameters allowed.
    The table VESSEL_TYPE containe single item we list some parameters.

    On this table, I love the column VESSEL_PARAM table VESSEL_PARAM to check if the settings are and the reference value is allowed.
    How to create a foreign key?
    Here my script that generates this runtime error: 00904. 00000 - '% s: invalid identifier' on this line

    ALTER TABLE VESSEL_PARAM_TAB ADD CONSTRAINT FK_VESSEL_TYPE FOREIGN KEY (NAME, DATA_VALUE)
    REFERENCES VESSEL_PARAM (PARAM_NAME, LIST_PARAM_VALUE. DATA_VALUE)
    CREATE OR REPLACE TYPE OBJ_PARAM_VALUE AS OBJECT 
    ( 
      DATA_VALUE  VARCHAR2(20)
     ,DESCRIPTION VARCHAR2(125)
    ) NOT FINAL;
    /
    
    CREATE OR REPLACE TYPE LIST_PARAM_VALUE AS TABLE OF OBJ_PARAM_VALUE;
    /
    
    -- derive object subtype from object supertype
    CREATE OR REPLACE TYPE OBJ_PARAM_NAME UNDER OBJ_PARAM_VALUE (
      NAME VARCHAR2(30)
    )NOT FINAL;
    /
    
    CREATE OR REPLACE TYPE LIST_PARAM_NAME AS TABLE OF OBJ_PARAM_NAME;
    /
    
    Prompt create table VESSEL_PARAM;
    CREATE TABLE VESSEL_PARAM (
       PARAM_NAME   VARCHAR2(20) NOT NULL
      ,PARAM_DESC   VARCHAR2(125)
      ,PARAM_VALUE  LIST_PARAM_VALUE
      ,CONSTRAINT PK_VESSEL_PARAM PRIMARY KEY (PARAM_NAME)
    ) 
    NESTED TABLE PARAM_VALUE STORE AS PARAM_VALUE_TAB
    TABLESPACE CMS_ADMDATA;
    /
    ALTER TABLE PARAM_VALUE_TAB ADD CONSTRAINT UN_PARAM_VALUE_TAB UNIQUE (DATA_VALUE);
    /
    SHOW ERROR;
    
    Prompt create table CMS_ADM.VESSEL_TYPE;
    CREATE TABLE CMS_ADM.VESSEL_TYPE (
      VESSEL_TYPE  VARCHAR2(20) NOT NULL
     ,VESSEL_DESC  VARCHAR2(125)
     ,VESSEL_PARAM LIST_PARAM_NAME
     ,CONSTRAINT PK_VESSEL_TYPE PRIMARY KEY (VESSEL_TYPE)
    -- ,CONSTRAINT FK_VESSEL_TYPE FOREIGN KEY (VESSEL_PARAM) 
    --        REFERENCES VESSEL_PARAM (PARAM_NAME)
    ) 
    NESTED TABLE VESSEL_PARAM STORE AS VESSEL_PARAM_TAB
    TABLESPACE CMS_ADMDATA;
    /
    ALTER TABLE VESSEL_PARAM_TAB ADD CONSTRAINT UN_VESSEL_PARAM_TAB UNIQUE (NAME);
    ALTER TABLE VESSEL_PARAM_TAB ADD CONSTRAINT FK_VESSEL_TYPE FOREIGN KEY (NAME,DATA_VALUE) 
            REFERENCES VESSEL_PARAM (PARAM_NAME,LIST_PARAM_VALUE.DATA_VALUE)
    /
    SHOW ERROR;
    Thank you

    Salvatore

    Could you please indicate your answer as correct if you judge them correct.

    Best regards

    Mohamed Houri

  • Create view opaque in OBIEE with multiple tables

    Hello

    I need assistance with the opaque view since I've never created in the past. I want to create an opaque view that retrieves data from several tables. Is it possible to do? Or y at - it another alternative available in OBIEE option? I read the blog following and other similar articles on views opaque but found no option to use for the query with several tables:

    Oracle Business Intelligence: A physical layer to OBIEE 10 g Opaque View Creation


    Also please advice how to join two tables from different databases in OBIEE?


    Kindly advice.


    Kind regards

    Andy

    Check also, it may be useful to you

    http://obinsight.blogspot.com/2010/05/reporting-against-multiple.html

  • data in multiple tables and columns

    Hello

    How to find if multiple tables are containing the same data?
    Text of the 'Apple' is in three different tables and under three different column names.
    Expected result
     
    fruits_one
    fruits_two 
    fruits_three
    Select name, quantity from fruits_one;
    Apple   1
    Orange  1
    Pear    1
    
    
    select flavour, desc from fruits_two;
    Red,   Apple 
    Blue, Berry
    
    select order,date,details  from fruits_three;
    101  11/11/2011    Grapes
    102  12/01/2010    Apple
    Thank you
    Sandy
    SQL> create table fruits_one (name varchar2(100), quantity number);
    
    Table created.
    
    SQL> insert into fruits_one
      2  select 'Apple'  name, 1 quantity from dual union all
      3  select 'orange'  name, 1 quantity from dual; 
    
    2 rows created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> create table fruits_two (flavour varchar2(100), des varchar2(100));
    
    Table created.
    
    SQL> insert into fruits_two
      2  select 'Red' flavour,   'Apple' des  from dual union all
      3  select 'blue' , 'berry'  from dual ;
    
    2 rows created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> set serveroutput on
    SQL> declare
      2  l_search varchar2(10) := 'APPLE';
      3  l_cnt number := 0;
      4  begin
      5
      6  for x in (select column_name, data_type, table_name from user_tab_cols where data_type in ('VAR
    CHAR2'))
      7  loop
      8
      9    execute immediate  'select count(*) from "' || x.table_name ||'" where upper("' || x.column_n
    ame || '") like ''%' || l_search || '%''' into l_cnt;
     10
     11    if l_cnt > 0  then
     12    dbms_output.put_line('table = "' || x.table_name ||'", column = "' || x.column_name ||'"');
     13    end if;
     14
     15  end loop;
     16
     17  end;
     18  /
    table = "FRUITS_ONE", column = "NAME"
    table = "FRUITS_TWO", column = "DES"
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    
  • Select Max (date) between multiple tables

    I need to retrieve a record from a Table in a set of similar tables with a common "date field". You can select the record where this "date field" value is greater between multiple tables.

    Here, any help is appreciated.  Thank you in advance.

    FOR EXAMPLE

    No. EMP is the primary key.

    Again, each table can have multiple records for EMP n ° 1

    TABLE1:

    FIRST NAME

    FAMILY NAME
    THE EMP NO.

    BASE SALARY

    DATE_FROM

    TABLE 2

    FIRST NAME

    FAMILY NAME
    THE EMP NO.

    SALARY GRADE

    DATE_FROM

    TABLE 3

    FIRST NAME

    FAMILY NAME
    THE EMP NO.

    COMPENSATION

    DATE_FROM

    Hello

    Said Knani, if you use the current design of the table, then here is a way to do what you want:

    WITH union_data AS

    (

    SELECT MAX (base_salary) AS sal FROM table1 UNION ALL

    SELECT MAX (grade_salary) table2 UNION ALL

    SELECT MAX (compensation) FROM table3

    )

    SELECT MAX (sal) AS max_sal

    Of union_data

    ;

  • How to create a store of data with the small block size

    Hello

    I want to create a data store on two 160 GB drives. All the VI Client allows me to do is to create a data store of whole disc with 1 MB block. But for reasons of performance with the virtualized Oracle RAC, which is 8K organized, I want to go down to a smaller block size. But how?

    Is it possible to split my drive to (lets say) four parts, each with a smaller block size and putting them all together like extends in a data store? To create partitions with fdisk does not work, as the VI Client wants to use the unpartitioned disk. Any ideas?

    Robert

    Hello

    It is not possible. The smallest block size is 1 MB on a VMFS partition.

    Best regards

    Lars Liljeroth

    -

  • How to create the filter by date of request for access using database connectivity tool

    Hello

    I had started my project by reading the access data, using a UDL connection,

    but now I want to create a filter for access by using a query that would select two dates and get all the corresponding data, how to query using SQL Parmetrized?

    Best regards

    Note: I do not know the SQL language

    Hi salim_mjs,

    You must use the date format that I have used. It is independent of the format in your database. It should be "month/day/year".

    Mike

  • APEX4: How to create a report whose data are based on the date of entry of the user fields

    With the help of 4 Apex I create a report that allows the user to enter two dates and displays a report between the date range.

    How can I do this?

    Thank you.

    Go to Actions > filter in your IR and ther, you can create several conditions to filter your report.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • How to create a file of data to the remote server...

    I need to create the data to the remote server file...

    When I tried to create using the command

    create tablespace XXXC_DATA Datafile

    ' \\1XX. XX. X.XXX\TestSVR_Share\CCC\oracle\Datafiles\CCC_DATA. DBF'

    size 10 m

    autoextend on

    next 10 m

    MaxSize unlimited;

    1.png

    I checked the local policies.

    (I am an admin user and I added 1) access this computer from the network 2) Act as part of operating system and update of local policies

    It did not work.

    so I've mapped the shared location and run ogical below command

    create tablespace XXXC_DATA Datafile

    ' Z:\TestSVR_Share\CCC\oracle\Datafiles\CCC_DATA. DBF'

    size 10 m

    autoextend on

    next 10 m

    MaxSize unlimited;

    1.png

    Can anyone help on this.

    It does not matter if * you * have access to this shared directory. This is important if the user used to run Oracle.

    When you access the Services application in Windows (I assume you are the DB on Windows), double-click the Oracle service for the database in question and go to the tab "Log On", it is * that * the user who must have access to the directory is shared. If you have "Local System" set as a user, you will need to change this.

  • How to create a database of data entered into a form?

    I created a poll with Word and have been recording data with pen and paper.  For data entry I thought that it would be much easier to simply import the Word document into PDF forms and click / type data in an electronic form rather than create a whole Excel worksheet that would be in a completely different format of the actual shape.  But after you open the form in Adobe, I realized it might not be a way to store multiple files in a single file.  Is there a way to do it, or I wouldn't be able to save each questionnaire completed in separate pdf format?

    Yes, but there's a command built into Acrobat that allows you to select these files and convert them to an Excel spreadsheet with all the data in it in one command. You don't need to do a file at a time...

Maybe you are looking for