Create stationary column that references another column

I have an analysis with a single column, region.

I have an another regional director named column that are not included in the analysis.

When I hover over a value in the column of the region, I would like to see the hover popup to show me the value in the field regional manager.

I know how to create the first part of the hover using something like this as a custom display format:
[html]<span title=\""Manager is: "\">#,###
But I can't understand how I can put the value of the regional Manager column after the "is:" to make the hover says something like Manager is: Sam Smith ".

Is this possible?

Don't worry, it's not ;-)

in any case, that you are looking for this formula in the column:

'' || "Region"."Region" || ''

Then simply change the data format of the column to format HTML and your Uncle Bob.

Tags: Business Intelligence

Similar Questions

  • How to create a .bat file that references another hard drive?

    I am trying to create a simple .bat file that creates a text file listing all the files in the folder designated on the top line. However when I tried the version below, he created a list of the files on my desktop instead. How can I make 'look' the path on my internal D drive?

    CD D:\inetpub\kthings
    dir > C:\tftDocuments.txt
    Start C:\tftDocuments.txt

    Hello

    Information about batch files
    http://www.computerhope.com/batch.htm

    First, you need to access the real player if you're not already on it.

    D:
    CD D:\inetpub\kthings
    dir > C:\tftDocuments.txt

    You can display on the screen or have an application to display.

    TYPE tftDocuments.txt

    Or

    Notepad tytDocuments.txt

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

    Maybe an application such as this one would be useful.

    KarenWare - printer - free directory
    http://www.KarenWare.com/PowerTools/ptdirprn.asp

    I hope this helps.

  • Procedure that injects another procedure

    Hello everyone,

    I need to create a procedure that removes another procedure as follows:

    create or replace procedure drop_any_proc (proc_name varchar2) is
    drop procedure proc_name;
    end;

    Please let me know.

    Noor ul Huda

    In essence:

    create or replace procedure drop_any_proc (proc_name varchar2) is
    begin
      execute immediate 'drop procedure ' || proc_name;
    end;
    

    But I would add even more around it... of error management and safety nets and wonder why I want such a procedure :)

  • How to create a dynamic RTF report that creates dynamic columns based on the selection of dynamic columns in a table?

    Hi all

    Suppose I have table, whose structure changes frequently on a daily basis.

    For example. / / desc my_table gives you after the name of the column the day 1

    SQL > my_table DESC;

    Output

    Name

    Age

    Phone


    Day 2, two other columns are added, viz, address and salary.

    SQL > my_table DESC;

    Output

    Name

    Age

    Phone

    Address

    Salary


    Now, I want to create a Dynnamic RTF report which made extracting data from all columns from my_table daily. For this, I have defined a simultaneous program with XML output type and include in annex a data/definition of data model that takes XML as input and gives the final result of the conc program in EXCEL layout. I am able to do that for a constant number of columns, but don't know how to do it when the number of columns to display dynamically changes.

    For 1 day my XML file should be like this.

    <?xml version="1.0" encoding="UTF-8"?>
    <dataTemplate name="XYZ" description="iExpenses Report" Version="1.0">
    <dataQuery>
    <sqlStatement name="Q2">
    <![CDATA[
    SELECT Name
    ,Age
    ,Phone
    FROM my_table
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_my_table" source="Q2">
      <element name="Name" value="Name" />
      <element name="Age" value="Age" />
      <element name="Phone" value="Phone" />
    </group>
    </dataStructure>
    </dataTemplate>
    
    

    And my day 1, EXCEL output RTF model should be like this.
    Name age phone

    Swapnill 23 12345

    For 2 days my XML file should be like this. With 2 new columns selected in the SELECT clause.

    <?xml version="1.0" encoding="UTF-8"?>
    <dataTemplate name="XYZ" description="iExpenses Report" Version="1.0">
    <dataQuery>
    <sqlStatement name="Q2">
    <![CDATA[
    SELECT Name
    ,Age
    ,Phone
    ,Address
    ,Salary
    FROM my_table
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_my_table" source="Q2">
      <element name="Name" value="Name" />
      <element name="Age" value="Age" />
      <element name="Phone" value="Phone" />
      <element name="Address" value="Address" />
      <element name="Salary" value="Salary" />
    </group>
    </dataStructure>
    </dataTemplate>
    
    

    And my day 2, exit EXCEL model RTF should be like this.
    Name address telephone pay

    23 12345 Madrid 100000 Swapnill

    Now, I don't know below things.

    • Make the dynamic XML as we did in the day 1 there are 3 columns in the SELECT statement and the day 2, 5 columns. I want to create a dynamic XML which must not be changed if the new columns are added into my_table. I don't know how to create this query and also create their corresponding items below.
    • Make the RTF model dyanamic as day 1 there are 3 exit EXCEL columns and the day 2, 5 columns. I want to create a dynamic RTF model that would display all the columns selected in XML dynamic. I don't know how the RTF will create new XML tags and how it will know where to place them in the report. Means, I can create model RTF day 1, by loading the XML data for 3 columns and place 3 tags XML in the model. But how he will create and place the tags for the new columns the day 2?

    Hope so, you got my requirement, it's difficult. Please let me know how I can implement the necessary solution using the RTF dynamically without any manual intervention.

    Kind regards

    Patricia K.

    Post edited by: SwapnilK

    Hi guys,.

    I was able to solve above the requirement.

    I created a procedure that would create & update (attached to the data definition) XML file dynamically for each race. This dynamic XML contains the SQL statement for the data query that is built dynamically. I am updating this XML file using XDOLoader utility to the definition of data. Then run my program customized to generate the excel output.

    Exit excel retrieves correct number of columns dynamically (3 on Day1 and Day2 5), with corresponding data records.

    Kind regards

    Patricia K.

  • Create a column of table on RPD

    Hello

    I'm modeling a SPR file.

    Is it possible to create a column in a table based on another column?

    Kind regards

    Hello

    You can add additional columns in the layer of logic (Business Model).

    See you soon.

    Daan Bakboord

    Oracle BI by Bakboord

  • Creating a column of date a year column and then conditional calculation

    Hi here's my data:
    with Table_1
    as
    (
          select to_date('01-JUL-2009 20:10','DD-MON-YYYY HH24:MI') incident_date, 2005 Car_Year    from dual
          union all
          select to_date('23-MAR-2010 12:12','DD-MON-YYYY HH24:MI') incident_date, 2005 Car_Year  from dual
          union all
          select to_date('25-JUL-2010 23:30','DD-MON-YYYY HH24:MI') incident_date, 2005 Car_Year  from dual
          union all
          select to_date('09-JAN-2010 08:30','DD-MON-YYYY HH24:MI') incident_date, 2005 Car_Year  from dual
          union all
          select to_date('08-JAN-2010 08:30','DD-MON-YYYY HH24:MI') incident_date, 2005 Car_Year  from dual
          union all
          select to_date('08-JAN-2011 20:30','DD-MON-YYYY HH24:MI') incident_date, 1960 Car_Year  from dual
          union all
          select to_date('26-JUL-2010 00:00','DD-MON-YYYY HH24:MI') incident_datet, 2005 Car_Year  from dual
    )
    select * from Table_1
    I want to create a column, as shown below in the 30 - June:
    with Table_1
    as
    (
          select to_date('01-JUL-2009 20:10','DD-MON-YYYY HH24:MI') incident_date, 2005 Car_Year, to_date('30-JUN-2005')  Approx_car_year   from dual
          union all
          select to_date('23-MAR-2010 12:12','DD-MON-YYYY HH24:MI') incident_date, 2008 Car_Year, to_date('30-JUN-2008')  Approx_car_year  from dual
          union all
          select to_date('25-JUL-2008 23:30','DD-MON-YYYY HH24:MI') incident_date, 2007 Car_Year, to_date('30-JUN-2007')  Approx_car_year  from dual
          union all
          select to_date('09-JAN-2005 08:30','DD-MON-YYYY HH24:MI') incident_date, 2004 Car_Year, to_date('30-JUN-2004')  Approx_car_year  from dual
          union all
          select to_date('08-JAN-2009 08:30','DD-MON-YYYY HH24:MI') incident_date, 2005 Car_Year, to_date('30-JUN-2005')  Approx_car_year  from dual
          union all
          select to_date('08-AUG-2011 20:30','DD-MON-YYYY HH24:MI') incident_date, 1960 Car_Year, to_date('30-JUN-1960')  Approx_car_year  from dual
          union all
          select to_date('26-JUL-2010 00:00','DD-MON-YYYY HH24:MI') incident_datet, 2010 Car_Year, to_date('30-JUN-2010')  Approx_car_year  from dual
    )
    select * from Table_1
    Once this is done, I would like to make a similar calculation to excels FRACTION function and the following results noting the STATE what the column Approx_car_age is > 50 I would like to as its default null value.
    with Table_1
    as
    (
          select to_date('01-JUL-2009 20:10','DD-MON-YYYY HH24:MI') incident_date, 2005 Car_Year, to_date('30-JUN-2005')  Approx_car_year, '4.003285871' Approx_car_age  from dual
          union all
          select to_date('23-MAR-2010 12:12','DD-MON-YYYY HH24:MI') incident_date, 2008 Car_Year, to_date('30-JUN-2008')  Approx_car_year, '1.727189781' Approx_car_age from dual
          union all
          select to_date('25-JUL-2008 23:30','DD-MON-YYYY HH24:MI') incident_date, 2007 Car_Year, to_date('30-JUN-2007')  Approx_car_year, '1.069767442' Approx_car_age from dual
          union all
          select to_date('09-JAN-2005 08:30','DD-MON-YYYY HH24:MI') incident_date, 2004 Car_Year, to_date('30-JUN-2004')  Approx_car_year, '0.528767123' Approx_car_age from dual
          union all
          select to_date('08-JAN-2009 08:30','DD-MON-YYYY HH24:MI') incident_date, 2005 Car_Year, to_date('30-JUN-2005')  Approx_car_year, '3.526834611' Approx_car_age from dual
          union all
          select to_date('08-AUG-2011 20:30','DD-MON-YYYY HH24:MI') incident_date, 1960 Car_Year, to_date('30-JUN-1960')  Approx_car_year, '' Approx_car_age from dual
          union all
          select to_date('26-JUL-2010 00:00','DD-MON-YYYY HH24:MI') incident_datet, 2010 Car_Year, to_date('30-JUN-2010')  Approx_car_year, '0.071232877' Approx_car_age from dual
    )
    select * from Table_1
    I created two columns using an alter table statement that is Approx_car_year, Approx_car_age.
    On these columns, I will update the table SET Approx_car_age =... .etc
    I do not require the Approx_car_year column so if there is a way to perform the calculation without it would be great.

    Thank you much in advance.

    Banner:
    Oracle Database 11 g Release 11.2.0.2.0 - 64 bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    "CORE 11.2.0.2.0 Production."
    AMT for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production

    Hello

    This is the select query which will calculate the two columns you are looking for-

    SQL>
    SQL> with Table_1
      2  as
      3  (
      4        select to_date('01-JUL-2009 20:10','DD-MON-YYYY HH24:MI') incident_date, 2005 Car_Year   from dual
      5        union all
      6        select to_date('23-MAR-2010 12:12','DD-MON-YYYY HH24:MI') incident_date, 2008 Car_Year  from dual
      7        union all
      8        select to_date('25-JUL-2008 23:30','DD-MON-YYYY HH24:MI') incident_date, 2007 Car_Year  from dual
      9        union all
     10        select to_date('09-JAN-2005 08:30','DD-MON-YYYY HH24:MI') incident_date, 2004 Car_Year  from dual
     11        union all
     12        select to_date('08-JAN-2009 08:30','DD-MON-YYYY HH24:MI') incident_date, 2005 Car_Year  from dual
     13        union all
     14        select to_date('08-AUG-2011 20:30','DD-MON-YYYY HH24:MI') incident_date, 1960 Car_Year  from dual
     15        union all
     16        select to_date('26-JUL-2010 00:00','DD-MON-YYYY HH24:MI') incident_datet, 2010 Car_Year  from dual
     17  )
     18  SELECT t.incident_date
     19        ,t.car_year
     20        ,t.approx_car_year
     21        ,CASE
     22            WHEN approx_car_age > 50 THEN
     23             NULL
     24            ELSE
     25             approx_car_age
     26         END approx_car_age
     27    FROM (SELECT incident_date
     28                ,car_year
     29                ,to_date(car_year || '0630', 'YYYYMMDD') approx_car_year
     30                ,(incident_date - to_date(car_year || '0630', 'YYYYMMDD')) / 365 approx_car_age
     31            FROM table_1) t
     32  /
    
    INCIDENT_DATE   CAR_YEAR APPROX_CAR_YEAR APPROX_CAR_AGE
    ------------- ---------- --------------- --------------
    01-Jul-09 8:1       2005 30-Jun-05       4.007781582952
    23-Mar-10 12:       2008 30-Jun-08       1.730159817351
    25-Jul-08 11:       2007 30-Jun-07       1.073915525114
    09-Jan-05 8:3       2004 30-Jun-04       0.529737442922
    08-Jan-09 8:3       2005 30-Jun-05       3.529737442922
    08-Aug-11 8:3       1960 30-Jun-60
    26-Jul-10           2010 30-Jun-10       0.071232876712
    
    7 rows selected
    
    SQL> 
    

    And you can if you want to use in the update statement (not tested) update statement.

     UPDATE TABLE
       SET approx_car_year = to_date(car_year || '0630', 'YYYYMMDD')
          ,approx_car_age =
            CASE
               WHEN ((incident_date - to_date(car_year || '0630', 'YYYYMMDD')) / 365) > 50 THEN
                NULL
               ELSE
                ((incident_date - to_date(car_year || '0630', 'YYYYMMDD')) / 365)
            END WHEN approx_car_age > 50 THEN NULL ELSE approx_car_age END;
    

    Please note that I am assuming that you also want to update approx_car_year table column. If this column is not present in the table or you don't want to update, then you can remove it from the update statement mentioned above.

    I hope this helps.

    -Gregory

  • Need to create a trigger that generates multiple rows in another table

    {size: 12} Hello

    I use Oracle9i (9.2.0.4.0)

    My problem is:
    I need to create a trigger that create different in the other table lines when someone will introduce a new line in the first table.

    For this, I use the table 4:

    1. first one where you want the trigger.
    2. a second just to take information.
    3. a third to make a trip meter.
    4. the fourth is the table where I want to create new lines. {size}

    Here is a summary of these 4 tables:

    {color: blue} Table 1
    STOJOU
    Number ¿Nulo? Tipo
    STOFCY_0 NOT NULL VARCHAR2 (9)
    ITMREF_0 NOT NULL VARCHAR2 (60)
    LOT_0 NOT NULL VARCHAR2 (45)
    VCRTYP_0 NOT NULL NUMBER (3)
    VCRNUM_0 NOT NULL VARCHAR2 (45)
    VCRLIN_0 NOT NULL NUMBER (10)
    QTYSTU_0 NOT NULL NUMBER
    NUMVCR_0 NOT NULL VARCHAR2 (45) {color}

    {color: blue} Table 2
    ITMMASTER
    Number ¿Nulo? Tipo
    ITMREF_0 NOT NULL VARCHAR2 (60)
    ZCOEFI_0 NOT NULL NUMBER {color}

    {color: blue} Table 3
    ZCTUART;
    Number ¿Nulo? Tipo
    CTUART_0 NOT NULL NUMBER (10)
    CTUDATE_0 NON NULL DATE {color}

    {color: blue} Table 4
    ZUART
    Number ¿Nulo? Tipo
    ZUARTDM_0 NOT NULL VARCHAR2 (102)
    STOFCY_0 NOT NULL VARCHAR2 (9)
    STOCOU_0 NOT NULL NUMBER
    ITMREF_0 NOT NULL VARCHAR2 (60)
    LOT_0 NOT NULL VARCHAR2 (45)
    CREDAT_0 NOT NULL DATE
    QTYSTU_0 NOT NULL NUMBER
    STA_0 NOT NULL VARCHAR2 (3)
    VCRLIN_0 NOT NULL NUMBER (10)
    VCRNUM_0 NOT NULL VARCHAR2 (45)
    VCRTYP_0 NOT NULL NUMBER (3) {color}

    I do this trigger:
    CREATE OR REPLACE TRIGGER CREA_REGISTROS_TRAZA
    AFTER INSERT ON STOJOU
    FOR EACH ROW
    DECLARE
       n INTEGER;
       ct NUMBER;
       fecha_actual VARCHAR2;
       fecha_old VARCHAR2;
       codigo_dm VARCHAR2;
    BEGIN
       fecha_actual := TO_CHAR(SYSDATE, 'DD/MM/YYYY');
       -- SELECT TO_CHAR(sysdate, 'DD/MM/YYYY') INTO fecha_actual FROM DUAL;
       SELECT TRUNC((STOJOU.QTYSTU_0/ITMMASTER.ZCOEFI_0),0) INTO n FROM STOJOU INNER JOIN ITMMASTER ON STOJOU.ITMREF = ITMMASTER.ITMREF;
          FOR i IN 1 .. n
       LOOP
          SELECT CTUART_0,TO_CHAR(CTUDAT_0, 'DD/MM/YYYY') INTO ct,fecha_old FROM ZCTUART;
          IF fecha_old <> fecha_actual THEN
            ct := 0;
          END IF;
          ct := ct + 1;
          INSERT INTO ZCTUART
            (CTUART_0,CTUDAT_0)
          VALUES
            (ct,SYSDATE);
          codigo_dm := SUBSTR('000000000000000000000',1,20 - LENGHT(NEW.ITMREF_0)) || NEW.ITMREF_0 || SUBSTR('0000000000',1,10 - LENGHT(NEW.LOT)) || NEW.LOT || SUBSTR('0000',1,4 - LENGHT(ct)) || ct;
          INSERT INTO ZUART
            (ZUARTDM_0,ITMREF_0,CREDAT_0,STA_0,QTYSTU_0,LOT_0,STOFCY_0,VCRLIN_0,VCRNUM_0,VCRTYP_0)
          VALUES
            (codigo_dm,NEW.ITMREF_0,SYSDATE,0,NEW.QTYSTU_0,NEW.LOT_0,NEW.STOFCY_0,NEW.VCRLIN_0,NEW.VCRNUM_0,NEW.VCRTYP_0);
       END LOOP;
    END CREA_REGISTROS_TRAZA;
    /
    {size: 12} And the error message I get States is just:
    "The trigger was created with compilation errors."
    Thanks for the help {size}

    You must prefix your NEW "columns" with a colon, as in: NEW.

  • Create a column of number starting at a variable

    I want to create a column on a report that will number the lines sequentially starting at an input variable.

    Production is expected to be something like the following if 100 was entered as a variable starting:

    100 first line details
    101 second line details
    102 third line details


    The variable should be entered as a parameter.

    Hello
    In case the solution given by Rod does not work, perhaps because of sorting you can try this:

    1. create a calculated item, say called BASEVALUE and enter 1 for the calculation

    2. create this second calculation:

    * Sum (BASEVALUE) (ORDER BY sorting your items LINES UNBOUNDED PRECEDING) + variable departure*, so if your sort were growing sorted POINTS and MYDATE down with a 500 starting point it would be as follows:

    SUM (BASEVALUE) OVER (ORDER BY ASC, DESC MYDATE ROWS UNBOUNDED PRECEDING ELEMENTS) + 500

    3. remove the spreadsheet BASEVALUE so that it does not appear

    Best wishes
    Michael

  • I receive in my Start menu another instance of Firefox to select that reference the site pornhub, which went never consciously to. How permanently remove this instance in my Start menu?

    I have the menu item "Mozilla Firefox" habitual, frequent of the websites listed in my Start menu in Windows 7. But another element of Mozilla Firefox/instance appear very often in my Start menu that references the site pornhub. I was never consciously
    This site and did NOT want to see it listed in my menu start.
    How can I permanently remove or disable this?

    Do a check with some malware malware, analysis of programs on the Windows computer.

    You need to scan with all programs, because each program detects a different malicious program.

    Make sure that you update each program to get the latest version of their databases before scanning.

    See also:

  • How can I create a column 2 "vertical on the left side of my rhythm of House for the installation of the buttons?

    How can I create a column 2 "vertical on the left side of my rhythm of House for the installation of the buttons?

    How can I create a column 2 "vertical on the left side of my rhythm of House for the installation of the buttons?

    With a column CSS floated.

    But ask yourself this important question.  How this column 2 "wide will look on smaller web devices like tablets and mobile phones using the portrait?   2 "on a mobile phone is a big part of the space.

    Nancy O.

  • I've created a form that uses the value field text to fill the text of another field.  Does not take into account changes

    I've created a form that uses the value field text to fill the text of another field.  However, if I need to change the text, the second field does not update this change.  Instead of reset the form each time, is the Javascript code to update the fields if they have been modified?

    For example I Text1 and Text2.

    When I type in Hello in Text1 I see Hello in Text2.

    Later, if I decide to change to Goodbye Text1, Text2 remains Hello.

    The shape of the hoe can recognize this change?

    Thank you

    Edit: I think I have misunderstood the situation.

    If you want to both fields have the same value, just to give them the same name.

  • Creating a button that highlights himself and another object

    Hi all

    I have a specific function, I am applying for my InDesign document for export to interactive PDF and SWF/html format.
    The function that I am creating is:
    I have a picture of a typical WYSIWYG toolbar. I created highlight buttons that sit on top of each icon in the image. When the reader hovers over this image of an icon (with the cursor) I want it highlight and also a piece of text lower on the page to highlight as well (which is a definition and an explanation of the icon). So I want the reversal of my first button action to also trigger another action, which is to highlight a piece of text somewhere else on the page. I managed to get so I put the cursor on the first button (icon image), it highlights, and the text below the page. But this isn't quite what I want. I want the text already exists, then highlight. Basically I want the two buttons to be connected. So that whenever I have fly over a part of the image of a created button, it will highlight, and a piece of exploratory text highlight simultaneously elsewhere on the page. A bit like an infographic. It is surely possible?

    Thanks in advance for your help.

    Generally, the animations as this is to export a SWF file are better be done in Adobe Flash.

    In Indesign that kind of market, too. Only for export as SWF, you can assign to the action "go to the State." For a text block, you can assign different status, where the 1st State would be 'normal' and the 2nd status would be "highlighted". Highlighted applies to the object "text frame", so that you can assign a contour or background. Better than nothing.

    Example: Dropbox - test_highlight.indd

  • Create two columns and floated in a footer

    Hello everyone!

    I'm a bit new to webcoding...

    What I need help is to create two columns in a page footer section, with the floating attributes.

    What I have tried is to add two div in the footer section, but when I specify to be floated in the footer, they end up BEING ABSENT.

    Would REALLY appreciate your response and support!

    Thank you and best what is the Sweden

    Andreas

    The problem is caused by floating children and the item container not self clearing floats.

    Have a look at this article.

  • Is it possible to create interactive drop-down lists that reference the tables on pages separate from the PDF?

    I'm looking to create a user to input PDF in the drop-down lists are used to search for tables, however, I'm not very familiar with the options that are available or if this is even possible?  Also, is it possible to write a substantive code that could read the text of the user entered to perform a search or even solve an equation? Can someone let me know if these elements are possible and/or let me know what adobe program may be required to accomplish these tasks? Thank you!

    PDF documents have no concept of "tables" as MS Word or MS Excel has. There is content that looks like a table.

    Acrobat JavaScript knows tables and form fields. So we could have a table in JavaScript and complete a series of fields that looks like a table. You can use JavaScript to find the table.

    JavaScript in Acrobat can accept user entries in the fields and pop-up windows.

    It is possible to solve theoretical equations the user if the good rating or coding is used.

    D.P. Story is an evangelist generated LaTex PDF to create PDFS with mathematical symbols, and he also created the AcroTex product that allows to create educational tools that includes mathematics calculation self placement tests.

  • I am trying to create a function that would be on the table type returns.

    Gurus,

    I am trying to create a function that returns a table nested with 3
    columns in a table as a guy.

    my query is like

    Select col1, col2, col3 from table_1;

    I am a bit newbie in Oracle and have never used collections.
    Can you please guide?

    >
    I am a bit newbie in Oracle and have never used collections.
    >
    Then you should start with the documentation
    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28370/TOC.htm

    Chapter 5 is all about collections using PL/SQL and examples
    >
    I am trying to create a function that returns a table nested with 3
    columns in a table as a guy.
    >
    This isn't enough of a description to know what you're trying to do, or how you plan to use the service. The query you provided is completely irrelevant to the question you are asking.

    You ask about functions in pipeline? Here is an example of this

    -- type to match emp record
    create or replace type emp_scalar_type as object
      (EMPNO NUMBER(4) ,
       ENAME VARCHAR2(10),
       JOB VARCHAR2(9),
       MGR NUMBER(4),
       HIREDATE DATE,
       SAL NUMBER(7, 2),
       COMM NUMBER(7, 2),
       DEPTNO NUMBER(2)
      )
      /
    
    -- table of emp records
    create or replace type emp_table_type as table of emp_scalar_type
      /
    
    -- pipelined function 
    
    create or replace function get_emp( p_deptno in number )
      return emp_table_type
      PIPELINED
      as
       TYPE EmpCurTyp IS REF CURSOR RETURN emp%ROWTYPE;
        emp_cv EmpCurTyp;
        l_rec  emp%rowtype;
      begin
        open emp_cv for select * from emp where deptno = p_deptno;
        loop
          fetch emp_cv into l_rec;
          exit when (emp_cv%notfound);
          pipe row( emp_scalar_type( l_rec.empno, LOWER(l_rec.ename),
              l_rec.job, l_rec.mgr, l_rec.hiredate, l_rec.sal, l_rec.comm, l_rec.deptno ) );
        end loop;
        return;
      end;
      /
    
    select * from table(get_emp(20))
    

Maybe you are looking for

  • Please, HELP to decipher my report EtreCheck!

    Here are my results from EtreCheck.  My iMac is so slow it's hard to do something. (I'm impatient probably too!) I don't know what to do with this information. Any help would be amazing! Caroline EtreCheck version: 3.0.2 (306) Report generated 2016-0

  • Satellite L510 - no HDD Recovery area more

    I bought a new Satellite L510. When I used for the first time. I deleted the two partitions except the c partition, thinking that it was of no use. Now when I click on toshiba recovery media creator, I get a message that «no area HARD drive recovery»

  • a script running

    We continue a pop up saying that there is a script running more and when we push stop script that does not block

  • Junk folder says 2 unread messages, but none appears in the window.

    My Junk folder shows 2 unread emails, but when I open the file, no email appear in the window.  I try to empty my junk e-mail folder, and it is said that the two files cannot be deleted.   What can I do to fix the problem?

  • How to connect my Samsung wave with my laptop via wifi?

    original title: wifi connection HOW TO CONNECT MY SAMSUNG WAVE 525 WITH MY DELL INSPIRON 1525 BY WIFI