creation of the table & help request

Hi all


How to create the structure of the table and query the data for the situation below.
                                                  A
                                            |
                                     -------------------
                                |                        |
                               B                        C
                           ------                     ------
                          |        |                |         |         
                          |        |                |         |
                          D       E                F        H
                         ---       ----          ----         ----
                        |     |  |    |         |     |     |     |
                        G    I   J   K         L   M      N   O     
 
If I pass an id then all employees who work under A must see, example if 'C' id is passed 'F', 'H', 'L' ' m ',' n "O" have to show, "he said.
If the 'H' id is past 'n', ' o ' should be displayed. "

Please help me on this topic, how to create the structure of the table and query the data.


Kind regards
Rajasekhar

Published by: SuNRiZz68 on July 9, 2009 09:47

Hello

Hey, it's not a typical hierarchical query?
Amply confirmed Oracle including examples:

http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/queries003.htm#sthref3132

Tags: Database

Similar Questions

  • Manual creation of the table

    Hello

    I have to manually create tables and indexes approximately 25 000. I did as a script, where I simply drag and drop the tables to the sql prompt. Everything by doing like this, a lot of tables is not get created. When I try to manually create the Uncreated tables one by one, then it is created.

    Why not all the tables are created in total while I did drag and drop?

    What is the best parctice to create these huge tables?

    Just an example of my table script

    CREATE TABLE 'DXF_DX_EXCH007' ('RECID' VARCHAR2 (200), 'XMLRECORD "' SYS'.") XMLTYPE") PCTFREE, PCTUSED, INITRANS 40 10 1 MAXTRANS 255 STORAGE (INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1 DEFAULT USER_TABLES) TABLESPACE"BMPRODNEW"LOGGING NOCOMPRESS XMLTYPE 'XMLRECORD' STORE AS CLOB"LOB_DXF_DX_EXCH007"(TABLESPACE"BMPRODNEW"ENABLE ONLINE RETENTION 8192 CHUNK STORAGE CACHE STORAGE (65536 FREELISTS INITIAL 1 FREELIST GROUPS 1 DEFAULT USER_TABLES));

    So, I have thousands to create...

    Thank you
    KSG

    Hello

    I haven't used hpux for a long time, but I remember that by default that the terminal is messed up, check your settings from the terminal to help
    $ stty - a and see that the characters are defined for eol or eol2, you can edit them using the stty command for something that isn't the ' @' character

    for example, I often change the character of the erasure of ^ h

    for example
    stty erase ^? or whatever the delete key of characters when I press it.

    Hope this helps, like running the script using @ sounds the best way to do it, or consider using the sqlplus "start order".

    for example
    SQL > start /tmp/filename.sql

    will do the same thing that

    SQL > @ /tmp/filename.sql

  • Problem with the creation of the table using the parallel Council DEC

    Hello

    We have a database table (CARDS_TAB) with the 1,083,565,232 lines and has created a replica table called T_CARDS_NEW_201111. But the count in the new array is 1,083,566,976 the difference is row of 1744. I have no idea how the new table can contain more lines compared to the original table.
    Oracle version is 11.2.0.2.0.

    The two head of table were taken after creating the table. Script that was used to create the replica table is:
    CREATE TABLE T_CARDS_NEW_201111
    TABLESPACE T_DATA_XLARGE07
    PARTITION BY RANGE (CPS01_DATE_GENERATED)
    SUBPARTITION BY LIST (CPS01_CURRENT_STATUS)
    SUBPARTITION TEMPLATE
      (SUBPARTITION T_NULL VALUES (NULL),
       SUBPARTITION T_0 VALUES (0),
       SUBPARTITION T_1 VALUES (1),
       SUBPARTITION T_3 VALUES (3),
       SUBPARTITION T_OTHERS VALUES (DEFAULT)
      )
    (
      PARTITION T_200612 VALUES LESS THAN (TO_DATE(' 2007-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        TABLESPACE T_DATA_XLARGE07
      ( SUBPARTITION T_200612_T_NULL VALUES (NULL)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_200612_T_0 VALUES (0)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_200612_T_1 VALUES (1)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_200612_T_3 VALUES (3)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_200612_T_OTHERS VALUES (DEFAULT)    TABLESPACE T_DATA_XLARGE07 ),
      PARTITION T_200701 VALUES LESS THAN (TO_DATE(' 2007-02-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        TABLESPACE T_DATA_XLARGE07
      ( SUBPARTITION T_200701_T_NULL VALUES (NULL)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_200701_T_0 VALUES (0)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_200701_T_1 VALUES (1)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_200701_T_3 VALUES (3)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_200701_T_OTHERS VALUES (DEFAULT)    TABLESPACE T_DATA_XLARGE07 )
    .
    .
    .
    .
    .
      PARTITION T_201211 VALUES LESS THAN (TO_DATE(' 2012-12-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        TABLESPACE T_DATA_XLARGE07
      ( SUBPARTITION T_201211_T_NULL VALUES (NULL)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_201211_T_0 VALUES (0)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_201211_T_1 VALUES (1)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_201211_T_3 VALUES (3)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_201211_T_OTHERS VALUES (DEFAULT)    TABLESPACE T_DATA_XLARGE07 ),
      PARTITION T_201212 VALUES LESS THAN (TO_DATE(' 2013-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        TABLESPACE T_DATA_XLARGE07
      ( SUBPARTITION T_201212_T_NULL VALUES (NULL)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_201212_T_0 VALUES (0)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_201212_T_1 VALUES (1)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_201212_T_3 VALUES (3)    TABLESPACE T_DATA_XLARGE07,
        SUBPARTITION T_201212_T_OTHERS VALUES (DEFAULT)    TABLESPACE T_DATA_XLARGE07 )
    )
    NOCACHE
    NOPARALLEL
    MONITORING
    ENABLE ROW MOVEMENT
    AS
    SELECT /*+ PARALLEL (T,40) */ SERIAL_NUMBER     ,
      PIN_NUMBER        ,
      CARD_TYPE         ,
      DENOMINATION      ,
      DATE_GENERATED    ,
      LOG_PHY_IND       ,
      CARD_ID           ,
      OUTLET_CODE       ,
      MSISDN            ,
      BATCH_NUMBER      ,
      DATE_SOLD         ,
      DIST_CHANNEL      ,
      DATE_CEASED       ,
      DATE_PRINTED      ,
      DATE_RECHARGE     ,
      LOGICAL_ORDER_NR  ,
      DATE_AVAILABLE    ,
      CURRENT_STATUS    ,
      ACCESS_CODE        from CARDS_TAB T
    /
    Database CARDS_TAB table also has a primary key on the column Serial_number. When you try to create a primary key on the new table he throws Exception:
    ALTER TABLE T_CARDS_NEW_201111 ADD
      CONSTRAINT T_PK2_1
     PRIMARY KEY  (SERIAL_NUMBER) USING INDEX
     TABLESPACE T_INDEX_XLARGE07
     PARALLEL 10 NOLOGGING;
    
      CONSTRAINT TP_PK2_1
                 *
    ERROR at line 2:
    ORA-02437: cannot validate (T_PK2_1) - primary key violated
    Thanks in advance.

    With respect,
    Adeline Faure

    For parallel processing the documentation suggests the use automatic degree of parallelism (determined by the system running) or by choosing a power of 2 value
    Look at the post by Florian in your currently neighbor post How to remove duplicate rows from a Table to locate the violations (apparently due to parallel processing)

    Concerning

    Etbin

  • How to change the data type of a column after the creation of the table

    It comes to my table desc

    SQL > desc job1

    Name                                      Null?    Type

    ----------------------------------------- -------- ----------------------------

    JOB_CODE NOT NULL VARCHAR2 (3)

    JOB_CLASS VARCHAR2 (30)

    CHG_HOUR NUMBER (5.2)

    OVERTIMECHARGE NOT NULL NUMBER

    I want to change column CHG_HOUR to store numbers up to 12 digits in length (including the decimal points).

    I tried the following and it did not help

    SQL > alter table job1 change column chg_hour number (6.6);

    ALTER table job1 change column chg_hour number (6.6)

    *

    ERROR on line 1:

    ORA-01735: invalid option of ALTER TABLE

    SQL > alter table job1 change chg_hour number (6.6);

    ALTER table job1 change chg_hour number (6.6)

    *

    ERROR on line 1:

    ORA-01438: value larger than the precision specified for the column

    where I'm going wrong?

    Hello

    I want to change the CHG_HOUR column to store numbers up to 12 digits in length (including the decimal points).

    I tried the following and it did not help

    ALTER table job1 change chg_hour number (12.6);

  • TABLE OF UPDATE SQL BASED ON THE VALUE OF THE TABLE HELP

    Here is an example of a table that I have and I need basically help make and update statement. My syntax is all messed up. I have update the 'INDY' column WHEN THE NUM AND NUM 2 and INDY are the same. In other words it since it needs to update the last N with a 'Y '.
    TABLE NAME TEST_1
    
    NUM  NUM2     INDI
    1       A           Y
    1       A           Y
    1       A            N
    I hope this feeling...

    Here's what I have so far but it dosent seem to work... someone can point me in the right direction.



    UPDATE T_TEST
        SET INDI = 'Y'
        WHERE NUM IN (SELECT COUNT(NUM) FROM T_TEST WHERE INDI = 'Y' 
         GROUP BY NUM
        HAVING COUNT(NUM) > 1);
    UPDATE T_TEST T1
      SET INDI = CASE (SELECT COUNT(*) FROM T_TEST T2 WHERE T2.NUM = T1.NUM AND T2.NUM2 = T1.NUM2)
                   WHEN 1 THEN 'N'
                   ELSE 'Y'
                 END
    /
    
    3 rows updated.
    
    SQL> SELECT  *
      2    FROM  T_TEST
      3  /
    
           NUM N I
    ---------- - -
             1 A Y
             1 A Y
             1 A Y
    
    SQL> 
    

    SY.

  • creation of the table space

    Hello

    I installed Oracle 11.2.0.1.0

    I need to create a table of spaces for a small project.

    I am connected first as sys as sysdba and running the command to create a table below space.

    CREATE TABLESPACE SS_DATA

    DATA FILE

    ' D:\clinapps_data\SS_DATA. DBF' SIZE 150M REUSE AUTOEXTEND ON

    /

    Error I get is:

    CREATE TABLESPACE SS_DATA

    *

    ERROR on line 1:

    ORA-01119: error in creating database file ' D:\clinapps_data\

    ORA-27040: create file error, cannot create the file

    04002 - OSD: could not open the file

    S/O-error: (OS 3) the system cannot find the path specified.

    do I need to put anything before creating this table space?

    Please suggest me.

    Thanks in advance

    Your will know the path is valid? y at - it the folder named clinapps_data? Otherwise, first create the folder

    D:\clinapps_data

    Concerning

  • How to reorder the Table of contents?

    Hi all

    In Adobe Captivate 8 I'll create a Table of contents for my introduction to e-Learning. I found the tutorial on Adobe on how to create it.  I know I can you rearrange slides easily in Captivate. My question is this. The Table of contents will revamp the as well as slides or I have to do separately?

    Thank you for your help.

    You need to just reset the TOC, there is a tiny button at the bottom which allows to reset. At least if you have best practices:

    1. to name the slides with the name that you want to appear in the table of contents
    2. the slides that you want to have a higher level and the name of the Group of groups with the name that you want to appear in the table of contents

    In addition I always recommend during training, waiting, with the creation of the table of contents, until the project is completed. Then you can do more editing in the table of contents, such as the creation of more than two levels (groups + slides will be paid the flimstrip, not more levels).

  • Convert data in hierarchal of hierarchical data for the creation of the tree

    Hi guys,.

    I tried to figure this out for about two days together now and I'm still stuck and I see no possible solution that does not involve a new creation of the table.
    I want to create a tree to navigate through projects and tasks, I use the demo "Task Manager" app, which I customized it a bit to fit my needs.

    Basically, I can't create the tree because the relationship between projects and tasks is not a hierarchical relationship, it's a relationship 1: n like this:

    __Projects__
    ID (PK)
    PROJECT NAME



    ___Tasks___
    ID (PK)
    Project (done FK reference Projects.ID)


    So what I have to do is to "force" this relationship 1: n with a hierarchical relationship by creating a query (view) that links the two tables into one and have 2 columns, I can use as ID and PARENT_ID for the creation of the tree.

    This is the data model:


    CREATE TABLE 'EBA_TASK_PROJECTS '.
    (NUMBER OF 'ID',
    'PROJECT_NAME' VARCHAR2 (255),
    "CREATED_ON" DATE NOT NULL ACTIVATE.
    'CREATED_BY' VARCHAR2 (255) NULL NOT ACTIVATE.
    DATE OF THE "UPDATED_ON"
    "UPDATED_BY' VARCHAR2 (255),
    'FLEX_01' VARCHAR2 (4000).
    'FLEX_02' VARCHAR2 (4000).
    'FLEX_03' VARCHAR2 (4000).
    'FLEX_04' VARCHAR2 (4000).
    'FLEX_05' VARCHAR2 (4000).
    NUMBER OF "PARENT_ID"
    VARCHAR2 (1) 'IS_ACTIVE ',.
    VARCHAR2 (4000) "DESCRIPTION."
    CONSTRAINT CHECK of 'EBA_TASK_PROJECTS_ACTIVE_CC' (in is_active ('Y', 'n')) ENABLE,.
    ENABLE 'EBA_TASK_PROJECTS_PK' CONSTRAINT PRIMARY KEY ('ID')
    ) ; ALTER TABLE 'EBA_TASK_PROJECTS' ADD 'EBA_TASK_PROJECTS_FK' OF CONSTRAINT FOREIGN KEY ('PARENT_ID')
    REFERENCES 'EBA_TASK_PROJECTS' ('ID') ON DELETE CASCADE ACTIVE;


    CREATE TABLE 'EBA_TASK_TASKS '.
    (SELECT 'ID' NUMBER NOT NULL,)
    ACTIVATE THE "PROJECT" NUMBER NOT NULL,
    ACTIVATE THE "TASK_PRIORITY" VARCHAR2 (400) NOT NULL,
    ACTIVATE THE "TASK_DIFFICULTY" VARCHAR2 (400) NOT NULL,
    ACTIVATE THE "TASKNAME" VARCHAR2 (4000) NOT NULL,
    VARCHAR2 (4000) "TASK_DETAILS."
    "CREATED_ON" DATE NOT NULL ACTIVATE.
    DATE 'DONE ',.
    ACTIVATE THE 'CREATED_BY' VARCHAR2 (400) NOT NULL,
    'STATUS' VARCHAR2 (4000).
    DATE OF THE "UPDATED_ON"
    "ON THE ROAD" DATE.
    NUMBER OF "TASK_PREDEFINED_ID."
    "UPDATED_BY' VARCHAR2 (255),
    ACTIVATE THE "USER_NAME" VARCHAR2 (255) NOT NULL,
    'FLEX_01' VARCHAR2 (4000).
    'FLEX_02' VARCHAR2 (4000).
    'FLEX_03' VARCHAR2 (4000).
    'FLEX_04' VARCHAR2 (4000).
    'FLEX_05' VARCHAR2 (4000).
    NUMBER OF "PERCENTAGE."
    ENABLE 'EBA_TASK_TASKS_PK' CONSTRAINT PRIMARY KEY ('ID')
    ) ; ALTER TABLE 'EBA_TASK_TASKS' ADD 'EBA_TASK_TASKS_PROJECTS_FK' OF CONSTRAINT FOREIGN KEY ('PROJECT')
    REFERENCES 'EBA_TASK_PROJECTS' ('ID') ON DELETE CASCADE ACTIVE;

    I use APEX4.0

    It's good enough that this guy, hope you can help me with this. I'm really stuck on this and I'm about to give up.

    Hello

    So what I have to do is to "force" this relationship 1: n with a hierarchical relationship by creating a query (view) that links the two tables into one and have 2 columns, I can use as ID and PARENT_ID for the creation of the tree.

    I'd say you need a UNION rather than a JOIN.
    Something like:

    WITH project_task_view AS (
     SELECT 'P'||to_char(id) as id
          , null as parent_id
          , project_name as node_name
     FROM eba_task_projects
     UNION ALL
     SELECT 'T'||to_char(id)
          , 'P'||to_char(project_id)
          , task_name
     FROM eba_task_tasks
    )
    SELECT id, parent_id, node_name, level
    FROM project_task_view
    START WITH parent_id IS NULL
    CONNECT BY PRIOR id = parent_id
    ;
    
  • Oracle 11g R2, CREATE THE TABLE and QUOTAS

    Hi all
    I need some insight on a strange behavior, that I discovered in Oracle 11 g 2. Don't know if I'm missing something or if I just discovered a security issue with Oracle.

    Oracle Version: 11.2.0.1.0

    The problem is with the CREATE TABLE and the QUOTA on the specific tablespace privilege.

    Please, try this on your system (if you have some free time and care to confirm the "bug").

    Create a user, grant privileges than two, CREATE THE SESSION and CREATE TABLE.

    Grant NO quota on any tablespace.

    Try to create a table on any tablespace (except SYSTEM) and everybody say if it worked or not.

    The oracle documentation provides the following:

    To create a relational table in your own schema, you must have the CREATE TABLE system privilege. To create a table in the schema of another user, you must have the CREATE ANY TABLE system privilege. In addition, the owner of the schema containing the table must have a quota of space on the tablespace contains the table or the UNLIMITED TABLESPACE system privilege.

    [http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/statements_7002.htm#SQLRF01402]

    The fact is, so far, on two different instances of Oracle 11 g 2, my users are not limited in the creation of the tables only when they have quotas, but where they want to, except the STRING.

    The behavior correct would be to deny the creation of the table the tablespace where there is no quota, but it does not work.

    My instance of Oracle 10 g behave properly and therefore the creation of the table is denied the tablespace with no quota.

    P.s1 sorry if this a well known "bug/problem/question". I've been ridiculous on a well-known forum for the same question. I don't need to be "filled spoon" as shown on this famous site! I have read the documentation! I googled a lot!

    P.s2 even if the creative work of table on tablespace with no quota, you cannot insert data into it. Yes, big picture, the user cannot not filled space with irrelevant data tables, but it can create thousands of tables...!

    Did I miss something?
    Is there a 'default' option I have to mark to prevent the creation of the table where it shouldn't?
    ? (?)

    Please read http://tkyte.blogspot.com/2011/02/deferred-segment-creation.html.

  • How to check the table of organization

    Hi all

    How can we check the Organization of a table and more knowing that at the time of the creation of the TABLE, as we do for the external ORGANIZATION EXTERNAL tables.

    Thank you

    user13332773 wrote:
    Hi all

    How can we check the Organization of a table and more knowing that at the time of the creation of the TABLE, as we do for the external ORGANIZATION EXTERNAL tables.

    Thank you

    select * from dba_tables
    where iot_type = 'IOT' 
    
  • On the Table nested

    Hi all

    Why the following SQLs are unable to work? He told me that:

    ERROR on line 1:
    ORA-02320: failure in the creation of the table of storage for the nested table column
    ACCESS_G
    ORA-22913: must specify the name of the table for the nested table column or attribute

    SQL:

    CREATE or REPLACE TYPE el_type () AS OBJECT
    ip_address VARCHAR2 (16));
    /

    CREATE or REPLACE TYPE el_tab_type AS TABLE OF THE el_type;
    /

    CREATE or REPLACE TYPE re_type () AS OBJECT
    re_name VARCHAR2 (16).
    el_g el_tab_type);
    /

    CREATE or REPLACE TYPE re_tab_type AS TABLE OF THE re_type;
    /

    CREATE TABLE actual_info)
    profile_name VARCHAR2 (16).
    access_g re_tab_type)
    TABLESPACE DBdata
    NESTED TABLE access_g STORE AS access_tab;
    /

    You have a table nested within a nested table, so you must specify the storage
    for both tables nested.
    Tom tells how do:
    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:2969385152046

    URS

  • Need help with the creation of SQL table

    Hi all

    I created a table, a month back. Now, I need to create another table in the same structure.
    Is there a way for dat I can get the script from the table I created earlier and use the same to create another.
    Or y at - it another way, so that we can create a table with the same structure of the existing table.

    Help, please.

    Kind regards
    Mohan

    Discover the function [DBMS_METADATA. GET_DDL | http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/d_metada.htm#i1019414].

    Example:

    SQL> SET LONG 5000
    SQL> SELECT DBMS_METADATA.GET_DDL('TABLE','EMP','SCOTT') FROM DUAL;
    
    DBMS_METADATA.GET_DDL('TABLE','EMP','SCOTT')
    --------------------------------------------------------------------------------
    
      CREATE TABLE "SCOTT"."EMP"
       (    "EMPNO" NUMBER(4,0),
            "ENAME" VARCHAR2(10),
            "JOB" VARCHAR2(9),
            "MGR" NUMBER(4,0),
            "HIREDATE" DATE,
            "SAL" NUMBER(7,2),
            "COMM" NUMBER(7,2),
            "DEPTNO" NUMBER(2,0),
             CONSTRAINT "PK_EMP" PRIMARY KEY ("EMPNO")
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"  ENABLE,
             CONSTRAINT "FK_DEPTNO" FOREIGN KEY ("DEPTNO")
              REFERENCES "SCOTT"."DEPT" ("DEPTNO") ENABLE
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"
    

    Published by: Centinul on January 11, 2010 08:01

  • CVI suggested help update on 'programming with the Table controls.

    Hello

    May I suggest adding a sentence to the chapter 'Programming with the Table controls', 'Creation and deletion of cells' section help of CVI.

    After the sentence "use the following functions to control the number of rows in a table control...". "I would like to add a suspicion that the number of lines is also affected by (programmatically) adjustment of the height of the table.

    Now that I've discovered, it's obvious ;-)

    Hi Wolfgang,.

    I think you might be misunderstanding this sentence in aid. It does not refer to the size of the table, in regard to the number of lines go in the table. It is in fact the number of real lines exist in the table. And the total number of rows in the table is absolutely not affected by the height of the table.

    Luis

  • Help setting up the table/list of choices

    Hello:

    I create an application where I use a custom authentication scheme and captures all user information in a separate table. When the user logs in he will refer to the table to identify a user name and password stored in the table.

    I am allowing users to create their own user accounts that will be default to basic access levels. Further along in the process, users will need to select a person to approve something. I want to use a list of choices so that the name of the approver is entered regularly every time. The user table has the following format:

    Default primary key Type Nullable data column name
    Username VARCHAR2 (8) No - 1
    PASSWORD VARCHAR2 (8) No. -
    FNAME VARCHAR2 (30) - No.
    LNAME VARCHAR2 (30) - No.
    E-MAIL VARCHAR2 (50) - No.
    ADMIN VARCHAR2 (1) Yes.
    APPROVER VARCHAR2 (1) Yes.


    I would like users to be able to choose from a list of choices that displays LNAME, FNAME. I don't know how to make the two fields appear in a list of choices.

    Furthermore, I would like to (if possible) to keep the two separate fields for the creation of user accounts so that I can get a coherent LNAME, FNAME format and people are not go backwards (e.g., Smith, Joe c. Joe Smith).

    If I can't show the two fields in the drop-down list, is there a way where I could add a free calculation filed to the table that will concatenate LNAME"," FNAME?

    Thanks for any help you can provide.

    RKD,

    Create a dynamic list of values.

    select lname||', '||fname displayed, username returned
    from user
    order by 1
    

    You can view what you want, regardless of the value returned. And that includes the concatenation of elements together (or do other calculations/manipulations).

    -David

  • Table of ring to string value for the creation of a table

    I want to convert an array of chain ring and generate a picture of him.

    But by using the node property to convert each ring is changing the value in the table.

    each table represents various registers. so to change different picture!

    hereby I enclose a Vi!

    I think this will help you.

    See attached extract VI.

Maybe you are looking for