definition of tables sweet people

Hello
where can I find the definition of the tables sweet people?
Something like that for example the oracle tables:
http://download.Oracle.com/docs/CD/B19306_01/server.102/b14237/dynviews_1131.htm#REFRN30105
V$INSTANCEThis view displays the state of the current instance.

Column Datatype Description 
INSTANCE_NUMBER NUMBER Instance number used for instance registration (corresponds to the INSTANCE_NUMBER initialization parameter) 
See Also: "INSTANCE_NUMBER"
 
INSTANCE_NAME VARCHAR2(16) Name of the instance 
HOST_NAME VARCHAR2(64) Name of the host machine 
VERSION VARCHAR2(17) Database version 
.......................
............................
.................................
Thanks a lot before.
Advertisement

You asked the same question in August ' 08, please consult your own thread:
Re: The definition of column in table PSPRCSRQST

Nicolas.

Tags: Oracle Applications

Similar Questions

  • Changing the definition of table PS_TXN use SECUREFICHIERS

    Fusion Middleware Version: 11.1.1.7

    WebLogic: 10.3.6.0

    JDeveloper Build JDEVADF_11.1.1.7.0_GENERIC_130226.1400.6493

    Project: Custom Portal Application WebCenter integrated with ADF custom workflows.

    During our ADF application performance tests, we noticed that a lot of contention on the LOB segments for the table PS_TXN (supports transactions State passivation/activation).

    Movement of the LOB segment to use Oracle SECUREFICHIERS, most other tweaks to the definition of the table showed significantly reduce the contention as providing a much higher throughput for read and write operations.

    To implement these changes, we would like to modify the ADF internal script that creates the table in the first place rather manually, dropping the table or by using the online table reorganization.

    This approach is documented, and suggests that this can be done my edit script "adfbc_create_statesnapshottables.sql" located under the directory MIDDLEWARE_HOME/oracle_common/sql $.  We tried it, but after letting off the table in a test environment, ADF is re - create the table using the original definition when the application is done after the operation first move.

    The same scenario can also be found under $MIDDLEWARE_HOME/oracle_common/modules/oracle.adf.model_11.1.1/bin however edit this file also makes no difference.

    Does anyone know what script ADF uses to create the table, or if this is now coded in a class file or some other mechanism?

    Automatic creation of table PS_TXN is hardcoded in the oracle.jbo.pcoll.OraclePersistManager class. Have a look at the statements at the end of the OraclePersistManager.createTable () method (in line 904 according to my decompiler). Other SQL statements (for example to drop the table, to the updates/insertions/deletions in the table, etc.) are defined inside the class oracle.jbo.pcoll.TransactionTableSqlStrings. You can find these classes within $MIDDLEWARE_HOME/oracle_common/modules/oracle.adf.model_11.1.1/adfm.jar.

    If your database is not Oracle, but DB2 or MS SQL Server, then you should look at the classes oracle.jbo.pcoll.pmgr.DB2PersistManager and oracle.jbo.pcoll.pmgr.SQLServerPersistManager respectively.

    You can override the default value PersistManager (create a new class that extends oracle.jbo.pcoll.OraclePersistManager and override/change the createTable() method), and then specify the new class in the AOS "jbo.pcoll.mgr" configuration property CreateTable() method has a package-level visibility, it would be very easy to do. This approach is delicate and the efforts needed to make does not, in my opinion. If I were you, I would be to pre-create the necessary tables in PS_TXN updated the manually.

    Dimitar

    PS Scripts SQL "adfbc_create_statesnapshottables.sql" aims to be used by advanced users who want to create their paintings previously manually. These scripts are not used by the infrastructure when it automatically creates the necessary tables.

  • Definition of table PSPRCSRQST column

    Hello
    where can I find the PSPRCSRQST of the table column definition?
    Thank you.

    Is it useful or correct answer?
    ;-)

    Mr. Nichols.

  • Definition of tables in MathScript

    I noticed a problem when using tables that have been defined using the MathScript.

    If I enter A = 0.1:0.1:3 and then I get A = 0.1, 0.2, 0.3... all the way up to and including 3.

    However, if I get a value greater final, say that a = 0.1:0.1:10 then the table goes up to 9.9.

    Is there a reason for this deliberate or is it just some kind of bug?

    James

    James,

    I have not checked this with Mathscript, but it is likely that what you see is the common result of the representation of numbers in binary.  Values such as 0.1 infinitely repeating fractions in binary. So when you are 100 of them, the error accumulated can be sufficient to cause the effect that you saw.

    Lynn

  • Pack sweet people

    I created a Web Application /Transaction within the SLM Pack for Peoplesoft and monitor the same.
    But I'm not able to go down and monitor other components such as database, application server using the Pack of SLM for TFTP e

    There is no slm don't pack for gentle people what makes the use cases.

  • Definition of Table stamp using a tabular presentation

    Hello

    I have a form of Tabluar (update only) where 2 columns can be updated on
    a table, something like:

    Employee (table)
    -------------------------
    emp_name varchar2
    Status char (1)
    Modified_By varchar2

    If the columns emp_name or status is changed, I want the Modified_By define
    for this line.

    Sounds easy, but I only know how to use the automatic treatment of the form of tables.

    Thanks for any help.
    Carol

    The best sollution to use the trigger somethink like him:

    -This generation of trigger id (PK), stamp date of creation and editing and creation of stamp as to who.
    CREATE OR REPLACE TRIGGER Employee_trg
    FRONT
    INSERT OR UPDATE
    WE employee
    REFERRING AGAIN AS NINE OLD AND OLD
    FOR EACH LINE
    BEGIN

    -insertion, you can omit but it is very useful for
    IF THE INSERTION
    If: NEW. EM_ID is NULL then
    SELECT Employee seq. NEXTVAL INTO: NEW. EMID FROM DUAL;
    end if;
    : NEW. CREATED_ON: = SYSDATE;
    : NEW. CREATED_BY: = nvl (v ('APP_USER'), USER);
    END IF;

    IF THE UPDATE CAN
    : NEW. LAST_UPDATED_ON: = SYSDATE; -It is also useful
    : NEW. Modified_By: = nvl (v ('APP_USER'), USER);
    END IF;
    END;
    /

  • Is it possible to have definitions of columns in a table to create

    I was wondering if it is possible to have calculated columns, such as those below in the statement CREATE TABLE in Oracle. And if so, how do write you?

    * CREATE TABLE [Sales]. [SalesOrderHeader] (*
    * [SalesOrderID] [int] IDENTITY (1,1) NOT for REPLICATION NOT NULL, *.
    * [SalesOrderNumber] AS (isnull (do SO'+ CONVERT ([nvarchar] (23) [SalesOrderID], 0), no * ERROR *')), *.
    * [Subtotal] [money] NOT NULL, *.
    * [TaxAmt] [money] NOT NULL, *.
    * [Transport] [money] NOT NULL, *.
    * [TotalDue] AS (isnull (([SubTotal]+[TaxAmt]) + [Freight], (0))), *.
    *)*

    I would like to re - write the definition of table CREATE TABLE DTPartInv with partinv_flag AS a computed column when the value is X,
    If partinv_instock < partinv_reorder and O
    If partinv_instock > = partinv_reorder:

    CREATE TABLE DTPartInv
    (partinv_partnbr VARCHAR2 (10) NOT NULL,)
    partinv_prodname VARCHAR2 (25).
    partinv_desc VARCHAR2 (25).
    partinv_manufact VARCHAR2 (25).
    partinv_instock      INTEGER NOT NULL,
    partinv_category VARCHAR2 (20).
    partinv_purchdate DATE,
    partinv_loc VARCHAR2 (15).
    partinv_price NUMBER (6.2),
    partinv_vendor VARCHAR2 (20).
    partinv_reorder      INTEGER NOT NULL,
    partinv_serial VARCHAR2 (20).
    partinv_flag      VARCHAR2 (1).
    CONSTRAINT DTPartInv_partinv_partnbr_pk
    PRIMARY KEY (partinv_partnbr)
    );

    >
    I was wondering if it is possible to have calculated columns, such as those below in the statement CREATE TABLE in Oracle. And if so, how do write you?
    >

    You did not mention your Oracle database version. Depending on your version, you can do. If you're on 11 GR 1 material or above, you can follow these steps:

    CREATE TABLE DTPartInv
         ( partinv_partnbr VARCHAR2(10) NOT NULL,
         partinv_prodname VARCHAR2(25),
         partinv_desc VARCHAR2(25),
         partinv_manufact VARCHAR2(25),
         partinv_instock INTEGER NOT NULL,
         partinv_category VARCHAR2(20),
         partinv_purchdate DATE,
         partinv_loc VARCHAR2(15),
        partinv_price NUMBER(6,2),
        partinv_vendor VARCHAR2(20),
        partinv_reorder INTEGER NOT NULL,
        partinv_serial VARCHAR2(20),
        partinv_flag as (case when partinv_instock < partinv_reorder then 'X' else 'O' end),
        CONSTRAINT DTPartInv_partinv_partnbr_pk
        PRIMARY KEY (partinv_partnbr)
      ) ;
    
    Table created.
    

    -Test it now

    -Box partinv_instock when <> _
    SQL > insert into DTPartInv (partinv_partnbr, partinv_instock, partinv_reorder) values ('Test', 10, 20);

    1 line of creation.

    -Box when partinv_instock = partinv_reorder_
    SQL > insert into DTPartInv (partinv_partnbr, partinv_instock, partinv_reorder) values ('Test2', 10, 10);

    1 line of creation.

    -Box when partinv_instock > partinv_reorder_

    SQL > insert into DTPartInv (partinv_partnbr, partinv_instock, partinv_reorder) values ('Test3', 20, 10);

    1 line of creation.

    SQL> select partinv_partnbr, partinv_flag from DTPartInv;
    
    PARTINV_PA P
    ---------- -
    Test       X
    Test2      O
    Test3      O
    
    3 rows selected.
    

    Happy?

    Therefore, always mention the version of database when you post specific requests as features differ from one version to the next.

    Concerning

  • Tile or cut large images in the tables? Completely outdated?

    I'm working through the tutorials on Lynda.com XHTML

    The instructor did a demo to decide a large image with sections that have animated connections. He slices the static parts and slices the lively parties and then combines them into a 3 x 3 slice slice table.

    He said "I'd rather do with tables, since that's what it was designed for.

    I know tables are outdated, but I don't know if it is in all respects. As if I was going to do a table of data, I would definitely use tables...

    I'm not sure when this video was made, but it is still in practice and a good practice?


    It then shows a similar demonstration to reconcile slices using CSS. Is - this too outdated? Are people still decide large images?

    Unlike print design where everything is static and immutable, web pages must be flexible and web accessible for all users, devices, and displays.

    Slices of the image have their positive and negative points.  Occasionally, you may need to create a flexible container that resizes the content.

    3 slices in a CSS image formatting ~

    http://ALT-Web.com/demos/image-slices-in-a-CSS-based-layout.shtml

    That said, you can add visual interest to web pages without a lot of images using CSS.

    design of web pages 2-image ~

    http://ALT-Web.com/templates/2-image-Web-design.shtml

    Finally, take a look at the CSS Zen Garden , where the power of CSS is demonstrated.

    Each page contains identical HTML tags but with very different styles.

    I hope that it will inspire you to move away from tables and use CSS for primary layouts.

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB

  • Get tables in BT via SequenceContext and PropertyObject TestStand

    I apologize if this has been asked before (it probably has) but TestStand, LabVIEW, PropertyObject and table are common search terms that generate a ton of results and I've not found any thread or info from the knowledge base.

    I spent along the SequenceContext of TestStand to a vi.  From there on, I get out of the AsPropertyObject property.  I see all the Nice GetValX methods but none that say to get a table of people.  Am I missing something obvious or is the technique to call GetNumElements and then iterate using GetValXByOffset to reconstruct the table in LabVIEW?

    Hey SmokeMonster.

    Why not use just the TestStand Set Property.vi?  I have a picture of him.

    If you don't use the right way is to use SetValVariant.  If you open this TestStand Set Property.vi, you will see how they do.

    Hope this helps,

  • Search in the journal table

    Hello

    I'm looking in a logging table (T1)

    (a) the early line for each 'name '.

    (b) these names without any entry in the table of logging. Possible names are defined in table T2.

    I have a solution (see below), but I think that there must be a more adequate.

    Any help is appreciated.

    Thanks, Hans

    Here are the definitions of table;

    CREATE TABLE 'T1' ('NAME' VARCHAR2 (20 BYTE) 'INFO', DATE 'LOG_DATE', 'STATUS' VARCHAR2(20 BYTE), VARCHAR2 (20 BYTE));

    CREATE TABLE 'T2' (VARCHAR2 (20 BYTE) 'NAME');

    And some test values

    Insert into T1 (NAME, STATE, LOG_DATE, INFO) values ('A', '0', to_date ('14.12.2015 12:09:51 ',' DD.)) MM YYYY HH24:MI:SS'), ' (INFO A 0');

    Insert into T1 (NAME, STATE, LOG_DATE, INFO) values ('A', '1', to_date ('14.12.2015 12:10:16 ',' DD.)) MM YYYY HH24:MI:SS'), ' (INFO A 1');

    Insert into T1 (NAME, STATE, LOG_DATE, INFO) values (' B ', 1', to_date ('14.12.2015 12:10:38 ',' DD.) ") MM YYYY HH24:MI:SS'),'INFO B 1');

    Insert into T1 (NAME, STATE, LOG_DATE, INFO) values (' B ', ' 0', to_date ('14.12.2015 12:11 ',' DD.) ") MM YYYY HH24:MI:SS'),'INFO B 0');

    Insert into T2 (NAME) values ('A');

    Insert into T2 (NAME) values ('B');

    Insert into T2 (NAME) values ('C');

    My solution:

    with a (too)

    Select t1.name, max (log_date) MaxLogDate from T1 group by name

    ),

    b like)

    Select t1.name, t1.status, t1.log_date, t1.info

    Of

    a, t1

    where

    T1. Name = B.SID and

    T1.log_date = a.MaxLogDate)

    Select t2.name, b.log_date, b.status

    b outer join t2 on t2.NAME = b.name right

    b.name order;

    What gives these results:

    'NAME '."LOG_DATE.'STATUS '.
    « A »"14.12.2015 12:10:16.« 1 »
    « B »"14.12.2015 12:11.« 0 »
    « C »""

    ""

    using the rank function

    Select t2.name, t.log_date, t.status

    de)

    SELECT t1.name, t1.log_date, t1.status, row_number () over (partition by t1.name t1.log_date desc order) rn

    from t1

    ) t

    join right t2 on t2.name = t.nom and t.rn = 1

    order of t2.name

  • Two foreign keys of a table in a single column

    Hi gurus

    I wonder that can we add two foreign keys of a table on a single column, I think the answer is, but what should be the reason behind this?

    Appreciate if someone there explain to me...

    Concerning

    Muzz

    Hello Muzz,

    Perhaps the example of human Chen reveals a design error.
    If a student has a 'teacher_id' "teacher" FK and FK for "emp" becaue each teacher is an EMP, I guess that the correct design would be to have only the FK of 'teacher' and to have another pointing to the 'emp' table in the 'teacher' tabe FK

    But we can imagine comical situations...
    CREATE TABLE PEOPLE (id NUMBER of KEY PRIMARY, name VARCHAR2 (20 CHAR),...);
    CREATE TABLE SCIENTIST (id people KEY PRIMARY NUMBER (id) REFERENCES, discipline VARCHAR2 (20 CHAR),...);
    CREATE TABLE POLICEMAN (id REFERENCES to KEY PRIMARY NUMBER (id), hire_date people DATE,...);

    First table = all.
    2nd: a subset of the first, with people having the profile of 'scientific '...
    3rd: a subset of the first, with people being a policeman.
    It might be people first table and in none of the 2nd and 3rd, 1st and 2nd, 1st and 3rd only or in the 3 tables.

    Then we can have a fourth table of 'something' referring to a person who must be a scientist and a police officer.

    Here is a sqlplus session illustrating; the last piece: I try inserting several lines in xxxx, only the last is accepted.

    SQL > CREATE TABLE PEOPLE (id NUMBER of the PRIMARY KEY, name VARCHAR2 (20 CHAR));
    Table created.

    SQL > CREATE TABLE SCIENTIST (people of REFERENCES of KEY PRIMARY NUMBER id (id), discipline VARCHAR2 (20 CHAR));
    Table created.

    SQL > CREATE TABLE POLICEMAN (people of REFERENCES of KEY PRIMARY NUMBER id (id), DATE hire_date);
    Table created.

    SQL > CREATE TABLE XXXX (id PRIMARY KEY NUMBER, people_id NUMBER, any other VARCHAR2 (30 CHAR));
    Table created.

    SQL > ALTER TABLE ADD CONSTRAiNT fk_xxsci FOREIGN KEY (people_id) scientific xxxx REFERENCES (id);
    Modified table.

    SQL > ALTER TABLE ADD CONSTRAiNT fk_xxpol FOREIGN KEY (people_id) police xxxx REFERENCES (id);
    Modified table.

    SQL > INSERT INTO person VALUES (100, 'John');
    1 line of creation.

    SQL > INSERT INTO person VALUES (120, 'Mary');
    1 line of creation.

    SQL > INSERT INTO person VALUES (103, 'Tom');
    1 line of creation.

    SQL > INSERT INTO person VALUES (123, "Bruno");
    1 line of creation.

    SQL > INSERT INTO VALUES of scientific (120, 'Chemistry');
    1 line of creation.

    SQL > INSERT INTO scientific VALUES (123, 'Mathematics');
    1 line of creation.

    SQL > INSERT INTO VALUES of policeman (103, DATE ' 2001-04-01');
    1 line of creation.

    SQL > INSERT INTO VALUES of policeman (123, DATE ' 1998-07-01');
    1 line of creation.

    SQL > INSERT INTO xxxx VALUES (1, 456, "nothing");
    ERROR on line 1:
    ORA-02291: integrity constraint (SYS. FK_XXPOL) violated - key parent not found

    SQL > INSERT INTO xxxx VALUES (1, 100, "only to people");
    ORA-02291: integrity constraint (SYS. FK_XXPOL) violated - key parent not found

    SQL > INSERT INTO xxxx VALUES (1, 120, "only the learned");
    ORA-02291: integrity constraint (SYS. FK_XXPOL) violated - key parent not found

    SQL > INSERT INTO xxxx VALUES (1, 103, "only police officer");
    ORA-02291: integrity constraint (SYS. FK_XXSCI) violated - key parent not found

    SQL > INSERT INTO xxxx VALUES (1, 123, 'ok');
    1 line of creation.

    Best regards

    Bruno Vroman.

  • Followed by using OBIEE 11 g seems to try to insert in a table not specified in NQSconfig

    Hi all

    A former member of the staff to the United Nations, for it to work I had implemented monitoring using the tables S_NQ_DB_ACCT and S_NQ_ACCT of the use.

    Another Member of staff then decided he wanted to customize our monitoring of its use and creates a table called USG_Tracking_F replacing S_NQ_DB_ACCT and S_NQ_ACCT.

    From what I see, the layer of the RPD was updatees with the pool connection pointing to the new table. The NQSconfig file has also been updated with the new definition of table etc. and I checked the config of the mbean server and it refers to USG_Tracking_F.

    I also confirmed that the data exists in the new table and not in old pictures.

    The question is that something always seeks to INSERT IN S_NQ_DB_ACCT about 200 times per hour.

    Following error message:

    [nQSError: 17001] Oracle error code: 2291, message: ORA-02291: integrity constraint (OBI_BIPLATFORM. FK_S_NQ_DB_ACCT) violated - key parent not found

    beak call OCIStmtExecute: INSERT IN S_NQ_DB_ACCT (ID, LOGICAL_QUERY_ID, QUERY_TEXT, QUERY_BLOB, TIME_SEC, ROW_COUNT, START_TS, START_DT, START_HOUR_MIN, END_TS, END_DT, END_HOUR_MIN) VALUES (: 1,: 2,: 3,: 4,: 5,: 6,: 7: 8: 9,: 10:11:12).

    The server has been restarted several times, as this change was made so I can exclude.

    I also removed the old tables of the RPD layer in the case which was linked.

    Anyone has an idea why OBIEE is still trying to insert into the old paintings?

    See you soon,.

    Adam

    S_NQ_DB_ACCT (physical request details) were introduced more recently in OBIEE and does not have an MBean that it directly controls. I think that OBIEE assumes that it is in the same schema/catalog like the monitoring logic (S_NQ_ACCT) use that is customizable by the MBean.

    That is why the mucking with the tables provided by OBIEE is generally a bad idea - better to build above them (view/mview/whatever) than trying to replace. The spirit of simple problems like this one you ever - every time as schema changes (in 11.1.1.9 there are some new added columns), you need to update your custom solution.

    In order to resolve your problem, you can either try and difficulty that you have, perhaps by removing the constraint (he's going to make mistakes, but the knacker of your data integrity) - or just replace the config vanilla & tables and instead build on measure on top of, rather than instead of.

    Hope that helps.

  • Modify a filter table by default to add '%' to the filter string.

    Hello

    I use Jdev Version 11.1.2.3.0.

    I have a table with a default filter. I try to filter by a string and the table is empty after the filtering. I must add % chain (String%) to get all the results beginning with this string.

    I want to change the filter, so it automatically adds the '%' to the searchString = > searchString %, because users will not be aware of the %...

    Basically I want all results that have this searchString to appear. I saw in some tutorials on the filters in the table that people seek in the chain and do not add % and it works.

    Kind regards

    Pamela.

    It works for me in 12.1.3 (and I think this has also worked in 11.1.2.3 but I'm not sure)

    However, you can try with custom queryListener, like this: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/30-table-filter-queries-169172.pdf

    Or you can try to replace getCriteriaItemClause() in your VO, something like this: 11.1.1.6.0 JDeveloper: escape operators QBE in Tables blockable. JDev & ADF Goodies

    Dario

  • How to perform account on a Table hierarchical Oracle based on the Parent link

    Hello


    I have the following to Oracle 11 g R2 hierarchical table definition:


    Table Name: TECH_VALUES:
      ID,
      GROUP_ID,
      LINK_ID
      PARENT_GROUP_ID,
      TECH_TYPE

    Above the hierarchical table definition, some examples of data might look like this:


    ID      GROUP_ID      LINK_ID      PARENT_GROUP_ID      TECH_TYPE 
    ------- ------------- ------------ -------------------- --------------
    1       100           LETTER_A     0
    2       200           LETTER_B     0
    3       300           LETTER_C     0
    4       400           LETTER_A1    100                  A 
    5       500           LETTER_A2    100                  A 
    6       600           LETTER_A3    100                  A 
    7       700           LETTER_AA1   400                  B 
    8       800           LETTER_AAA1  700                  C 
    9       900           LETTER_B2    200                  B 
    10      1000          LETTER_BB5   900                  B 
    12      1200          LETTER_CC1   300                  C
    13      1300          LETTER_CC2   300                  C
    14      1400          LETTER_CC3   300                  A
    15      1500          LETTER_CCC5  1400                 A
    16      1600          LETTER_CCC6  1500                 C
    17      1700          LETTER_BBB8  900                  B
    18      1800          LETTER_B     0
    19      1900          LETTER_B2    1800                 B 
    20      2000          LETTER_BB5   1900                 B 
    21      2100          LETTER_BBB8  1900
                     B


    Keeping in mind that there are only three Types of technology, i.e. A, B and C, but could not span on different LINK_IDs , how can I do a count on these three different TECH_TYPEs based solely on the ID of parent link where the parent group id is 0 and there are children below them?

    NOTE: It is also possible to have parents in dual link ID such as LETTER_B and all values of children but different group ID.

    I'm basically after a table/report query that looks like this:

    Link ID        Tech Type A         Tech Type B          Tech Type C
    -------------- ------------------- -------------------- -------------------
    LETTER_A      
    3                   1                    1
    LETTER_B      
    0                   3                    0
    LETTER_C      
    2                   0                    3
    LETTER_B      
    0                   3                    0

    Be hierarchical and my table can consist more of 30 000 files, I must also ensure that performance to produce the report above shown here query is fast.

    Obviously, in order to produce the report above, I need to gather all necessary County outages based on TECH_TYPE for all parents of the link id where the PARENT_GROUP_ID = 0 and store it in a table according to the guidelines of this report layout.

    Hope someone can help with maybe a combined query that performs the counties as well as stores the information in a new table called LINK_COUNTS, which will be based on this report. Columns of this table will be:

    ID,

    LINK_ID,

    TECH_TYPE_A,

    TECH_TYPE_B,

    TECH_TYPE_C

    At the end of this entire requirement, I want to be able to update the LINK_COUNTS table based on the results returned by the sample data above in a SQL UPDATE transaction as the link ID parent top-level already exists within my table LINK_COUNTS, just need to provide values for breaking County for each parent node link , i.e.

    LETTER_A

    LETTER_B

    LETTER_C

    LETTER_B

    using something like:

    UPDATE link_counts

    SET (TECH_TYPE_A,TECH_TYPE_B,TECH_TYPE_C) =

       (with xyz  where link_id = LINK_COUNTS.link_id .... etc

    Which must match exactly the above table/report

    Thank you.

    Tony.

    Hi, John,.

    Thanks for posting the sample data.

    John Spencer wrote:

    ...  If you need to hide the ID column, then you could simply encapsulate another external query around me. ...

    Or simply not display the id column:

    Select link_id, -id,

    Count (case when tech_type = 'A' end then 1) tech_a.

    Count (case when tech_type = 'B' then 1 end) tech_b,.

    Count (case when tech_type = "C" then 1 end) tech_c

    of (connect_by_root select link_id link_id,)

    the connect_by_root ID, tech_type

    of sample_data

    Start with parent_group_id = 0

    connect prior group_id = parent_group_id)

    Link_id group, id

    order by link_id, id;

    Same results, using SELECT... PIVOT

    WITH got_roots AS

    (

    SELECT CONNECT_BY_ROOT link_id AS link_id

    Id CONNECT_BY_ROOT ID

    tech_type

    OF sample_data

    START WITH parent_group_id = 0

    CONNECT BY PRIOR group_id = parent_group_id

    )

    SELECT link_id, tech_a, tech_b, tech_c

    OF got_roots

    PIVOT (COUNT (*)

    FOR tech_type IN ('A' AS tech_a

    'B' AS tech_b

    'C' AS tech_c

    )

    )

    Id ORDER BY link_id

    ;

  • Query information from the parent table and a row of child table information

    I have trouble writing a query that should not really be this hard. Just my brain isn't working today. I went in circles asking myself,... "Why doesn't this work! ... Shouldn't this work"... in any case

    I have a table of PEOPLE and a table of ADDRESSES. A person can have multiple addresses (one to many). We are not address the scenario of "what-if" of a single address belonging to several different people, that is close.

    PEOPLE

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

    Person_Id PK

    First name

    Last_name

    ADDRESSES

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

    Address_Id

    Subscription_type

    Address_Info

    Person_id FK

    Address_types include: WPA, HPA, WMP, HMP, and HMA

    I want to be able to pull a name of people and a specific address for the user. A person can only have one type of address that are associated with them, or they may have four different address types associated with them. The query should look to see if they have an address type of WPA, first. If they do, then enter the Address_Info for this address type. If they are not, then watch to see if they have a subscription_type of HMA. If so, enter their details. If they have not, then fair value must be set to zero.

    I tried to use the case statements and decodes and I get several lines for people who have an address type of WPA and HMA. I just need a line, but I have a problem. Any help on this would be greatly appreciated. Thanks in advance. This should be simple enough for you gurus out there. Not so much for me if

    Something like:

    WITH AN ACE)

    SELECT DISTINCT PERSON_ID,

    NVL)

    MAX)

    SUBSCRIPTION_TYPE CASE

    WHEN 'WPA' THEN ADDRESS_INFO

    END

    ) OVER (PARTITION BY PERSON_ID).

    MAX)

    SUBSCRIPTION_TYPE CASE

    WHEN "HMA" THEN ADDRESS_INFO

    END

    ) OVER (PARTITION BY PERSON_ID)

    ) ADDRESS_INFO

    ADDRESSES

    WHERE SUBSCRIPTION_TYPE IN)

    "WPA."

    "HMA.

    )

    )

    SELECT PERSON_NAME,

    ADDRESS_INFO

    PEOPLE P,.

    A

    WHERE P.PERSON_ID = A.PERSON_ID (+)

    /

    SY.

Maybe you are looking for