Convert the equivalent function stragg columns in oracle sql

Hello

Sorry I forgot my version of Oracle:
SQL> select * from v$version;

BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
PL/SQL Release 10.2.0.3.0 - Production
CORE    10.2.0.3.0      Production
TNS for 64-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
I searched on google but I have not found the solution.


I'm looking for a function equivalent to the SQL stragg discoverer.


Note: stragg function convert columns in lines.

Thank you
SELECT   deptno, stragg ('-' || ename)
    FROM emp_test
GROUP BY deptno;


    DEPTNO STRAGG_STR                                                  
---------- ------------------------------------------------------------
        10 -CLARK-KING-MILLER                                          
        20 -SMITH-FORD-ADAMS-SCOTT-JONES                               
        30 -ALLEN-BLAKE-MARTIN-TURNER-JAMES-WARD                       


3 rows selected.
Published by: Salim champion 2010-01-29 08:32

Hello Salim
This feature does not exist inside the discoverer.

My suggestion would be to create a SQL function, then import it in Finder using the System Administration tool. Now, you will be able to pass the deptno to the function and the function returns a single string containing the concatenated names.

This isn't a function difficult to write and if you would like some help please let us know.

Best wishes
Michael

Tags: Business Intelligence

Similar Questions

  • How to recover the vales separated by commas in the same column in Oracle SQL

    Dear members

    Please give me the solution for the below question

    Oracle table

    Ename product
    A 1,2,3
    B 1,2,3


    Product column has data like this only separated by commas

    Output should be like this.

    Ename, product
    A 1
    A 2
    A 3
    B 1
    B 2
    B 3

    Can we get the output above using just Oracle SQL select statement?
    I tried in Google I got an answer in SQL server, there is something called "Cross apply split" function, I'm not sure in Oracle.

    Welcome to the forum.

    Here is another interesting site, with lots of useful examples:
    http://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:2189860818012 #2654179200346949517

    Also, be sure to read the SQL and PL/SQL FAQ:
    http://forums.Oracle.com/forums/Ann.jspa?annID=1535

  • How to convert the request function

    Please help convert the below given query to a function:
    SELECT
      ITEM_CODE, ITEM_NAME, 
      ROUND(OPSTK/CNV/ML,2) OPSTK, ROUND(OPVAL,3)OPVAL,
      ROUND(INQTY/CNV/ML,2) INQTY, ROUND(INVAL,3) INVAL,
      ROUND(OUTQTY/CNV/ML,2) OUTQTY,ROUND(OUTVAL,3)OUTVAL, 
      ROUND((NVL(OPSTK,0)+NVL(INQTY,0)-NVL(OUTQTY,0))/CNV/ML,2) CLSTK,
      ROUND((NVL(OPVAL,0)+NVL(INVAL,0)-NVL(OUTVAL,0)),3) CL_VAL
    FROM
    (
      SELECT ITEM_CODE, ITEM_NAME, IU_CONV_FACTOR CNV, IU_MAX_LOOSE_1 ML
      FROM   ITEM,ITEM_UOM 
      WHERE  ITEM_CODE = IU_ITEM_CODE AND IU_UOM_CODE = ITEM_UOM_CODE 
    ),
    (
      SELECT SL_ITEM_CODE OP_ICODE,
             SUM(DECODE(RCVD_ISSD,'R',1,'I',-1)*QTY_BU) OPSTK,
             ROUND(SUM(DECODE(RCVD_ISSD,'R',1,'I',-1)*VAL_1),2) OPVAL
      FROM   STK
      WHERE  DT <  TO_DATE(:P249_DATE1,'DD-MM-YYYY')
      GROUP BY SL_ITEM_CODE  
    ),
    (
      SELECT SL_ITEM_CODE TX_ICODE,
             SUM(DECODE(RCVD_ISSD,'R',1)*QTY_BU)INQTY,
             SUM(DECODE(RCVD_ISSD,'R',1)*VAL_1) INVAL,
             SUM(DECODE(RCVD_ISSD,'I',1)*QTY_BU)OUTQTY,
             SUM(DECODE(RCVD_ISSD,'I',1)*VAL_1) OUTVAL
      FROM   STK
      WHERE  DT BETWEEN TO_DATE(:P_DATE1,'DD-MM-YYYY') 
      AND    TO_DATE(:P249_DATE2,'DD-MM-YYYY')
      GROUP BY SL_ITEM_CODE
    )
    WHERE ITEM_CODE = OP_ICODE(+)
    AND   ITEM_CODE = TX_ICODE(+)
    --AND   ITEM_CODE LIKE :P_ITEMCODE
    ORDER BY ITEM_CODE
    Yogesh

    A function in what version of Oracle that renders what?

    Your query selects 7 different values... functions return 1. (do the math).

    What you try to do is highly suspicious, given that the functions are generally not used for these purposes. You push away from the keyboard for a
    a few minutes and then tell us why a function, how it will be used, and when, in the past, you saw a 7 function return values.

  • Guyz I need to convert the database from ms access to oracle 10g

    Hello everyone... I wanan convert my access database to oracle 10g. As I create a form like OVERVIEW MONTHLY after the transfer to oracle 10 g... I wud really cud happy if a few b help me in this matter...
    I'm ready to send database... access to u people can check it out and get back to me with a useful solution!

    Hello

    Oracle SQL Developer migration

    Oracle SQL Developer integrates migration support, offering users the opportunity to migrate objects from database and data from MySQL, Microsoft Access and Microsoft SQL Server, Sybase to Oracle. This document details the installation steps to help prepare your environment for migration of database and provides a brief description of each of the 5 main steps of a migration.

    http://www.Oracle.com/technology/tech/Migration/Workbench/files/omwb_getstarted.html

    Concerning

  • convert the date value in column 1 help

    Am on 10g.

    I have a column: STAMP_DATE with these values:

    I leave the INHERITANCE, as it is, but everything else, I need to convert to the: MMYYYY as in: 092010 for example.

    9 sep means so seven-2009. The number is the year, I am trying to solve this problem.

    Any SQL help would be appreciated, thanks!

    STAMP_DATE
    "LEGACY".
    "9-sep.
    '9 - Oct'
    '9 - Nov'
    "" 9-may
    '9 - Mar'
    "9 - Jun"
    "9 July".
    '9 - Dec'
    "9-Aug.
    "April 9.
    '10-May '.
    '10 - Mar'
    '10-jan.
    '10 Feb.
    "" 10 Apr

    These values were imported from Excel using SQLLDR, so he made them a bit like that.

    with s as
    (select 9 - Sep' double jnk)
    Union
    Select ' 9 - APR ' double jnk
    )
    Select to_char (to_date(jnk||) (("e - 01 ', ' AA-MON-DD '), 'DD-MM-YYYY') s
    /

    Seems to be working at home time tonight.

    -------------
    Sybrand Bakker
    Senior Oracle DBA

  • Necessary to valuate the sequence in another column in oracle

    Hi all

    I have the sql like query below

    Select header_id, order_number of oe_order_headers_all.

    and that's how the display of the data

    heder_id order_number

    111 500001

    121 500400

    I need to display a different field with values of sequence like as below

    ID heder_id order_number

    1 111 500001

    2 121 500400

    so, how to get the sequence value in another column help me please on this.

    Thnaks

    You can use virtual ROWNUM

    Select rownum, header_id, order_number of oe_order_headers_all id

  • Convert the IF function in the custom calculation Script

    Can someone help me with 'IF(Line7<Line8) Line7, framework8' conversion in a custom calculation Script?

    var L7 = Number(this.getField("Line7").value);
    var L8 = Number(this.getField("Line8").value);
    event.value = (L7		   
  • Partitions don't synchronize only not - Oracle SQL Developer 4.1.3.20

    Hello

    First of all, thanks a lot for developers for this great tool.

    I use the Data Modeler which comes with Oracle SQL Developer 4.1.3.20.

    In the 12 c database, I created the following table:

    CREATE

    TABLE MMOURA. TEST_TABLE

    (

    NUMBER OF ID_TEST_TABLE (10) NOT NULL

    DATE_TEST_TABLE DATE NOT NULL

    )

    ORGANIZATION HEAP PCTFREE 10

    LOGGING NOCOMPRESS NO INMEMORY

    NOCACHE NOPARALLEL NOROWDEPENDENCIES DISABLE THE MOVEMENT OF THE LINE;

    I import with Data Modeler and add the partition:

    CREATE

    TABLE MMOURA. TEST_TABLE

    (

    NUMBER OF ID_TEST_TABLE (10) NOT NULL

    DATE_TEST_TABLE DATE NOT NULL

    )

    ORGANIZATION HEAP PCTFREE 10 TABLESPACE SYSTEM NOT LOGGING NOCOMPRESS NO INMEMORY RANGE PARTITION

    (

    DATE_TEST_TABLE

    )

    INTERVAL OF

    (

    NUMTOYMINTERVAL (1, 'MONTH')

    )

    (

    PARTITION P_BEFORE_2010 VALUES LESS THAN (TO_DATE (JANUARY 1, 2010 ',' DD/MM/YYYY "")) NOCOMPRESS

    )

    NOCACHE NOPARALLEL NOROWDEPENDENCIES DISABLE THE MOVEMENT OF THE LINE;

    So I can create a partition and generates the correct code.

    I click on "Synchronize data dictionary with model" and see the differences with the model and the database.

    In the models 'compare', 'Physical Details' is red. 'Partition' is red, "Selected" are marked, "Source table: TEST_TABLE ' is YES and" target Table: TEST_TABLE "is no.

    "Partitioning" is marked, and I can see the new partition "P_BEFORE_2010."

    teste_partition_chamado_oracle.png

    But when I click on 'Overview of DOF', theres no changes:

    -Generated by Oracle SQL Developer Data Modeler 4.1.3.901

    -in: 2016-01-14 14:19:50 BRST

    -site: database Oracle 12 c

    -type: Oracle Database 12 c

    -Oracle SQL Developer Data Model Summary Report:

    --

    -CREATE TABLE 0

    -CREATION OF INDEX 0

    ...

    ...

    In the tool preferences, model, synchronization, it is marked:

    FUNCTION

    PACKAGE

    PROCEDURE

    ROLE

    SEQUENCE

    SYNONYM

    TABLESPACE

    In "Import Options", it is marked:

    Partitions

    Triggered

    What I am doing wrong? Is this some sort of bug?

    Hi Marcio,

    I'm afraid that data Modeler does not "DOF Preview" statements for changes in the distribution.

    Kind regards

    David

  • OBIEE logical column has same SQL but returns different results

    I have a SQL query with a case statement that returns the correct results by operating in Oracle SQL Developer. I've created several logical columns in OBIEE, one for each case in the original query. However, the results returned by each logical column OBIEE are radically different from the original SQL query results, even if the SQL code is virtually identical.

    For example, a column logical OBIEE that returns incorrect results contains the following SQL code:

    SUM (CASE when

    ("Registration - College". "" Effective colleges F. ("" Postal code "like '% a %') or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like '%B %') or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like '%c %') or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like"% %") or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like '%G %') or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like"hour %") or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like"%%J") or

    ("Registration - College". "" Effective colleges F. ("' Postal code ' like '%R %') or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like '%s %') or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like '%T %') or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like"% %") or

    ("Registration - College". "" Effective colleges F. ("" Postal code "like '%x %') or

    ("Registration - College". "" Effective colleges F. ("' Postal code ' like '%Y %')

    THEN 0 OTHERWISE 1 END)

    The case statement in the original SQL query, which returns the correct results, is as follows:

    CASE

    WHEN (postal_zip_code_permanent like "%%K") or (postal_zip_code_permanent like '% %') or (postal_zip_code_permanent like '%m %') or (postal_zip_code_permanent like '%n %') or (postal_zip_code_permanent like "%p %") THEN "Ontario".

    WHEN (postal_zip_code_permanent like '% a %') or (postal_zip_code_permanent like '%B %') or (postal_zip_code_permanent like '%c %') or (postal_zip_code_permanent like '% %') or (postal_zip_code_permanent like '%G %') or (postal_zip_code_permanent like "%hour") or (postal_zip_code_permanent like "%%J") or (postal_zip_code_permanent like "%%R") or (postal_zip_code_permanent like '%s %') or (postal_zip_code_permanent like '%t %') or (postal_zip_code_permanent like '% %') or (postal_zip_ code_permanent like '%x %') or (postal_zip_code_permanent like "%%Y") THEN "Canada, other than Ontario.

    WHEN (substr(postal_zip_code_permanent,1,1) IN ('1 ', '2', '3', '4', '5', '6' ', 7',' 8 ', ' 9',' 0') or (postal_zip_code_permanent like '%d %') or (postal_zip_code_permanent like '%f %') or (postal_zip_code_permanent like ' % I %') or (postal_zip_code_permanent like "% O") or (postal_zip_code_permanent like "%%Q") or (postal_zip_code_permanent like "%%U") or (postal_zip_code_permanent like ' % W ') or (postal_zip_code_permanent like "%%Z")) THEN 'other')

    WHEN (postal_zip_code_permanent like '% + %') or (postal_zip_code_permanent like '%. %') or (postal_zip_code_permanent like ' %? %') or (postal_zip_code_permanent like '% %') or postal_zip_code_permanent IN ('+ ','.', '?)) (',',') And THEN "Invalid."

    WHEN postal_zip_code_permanent is null THEN 'Blank '.

    Of OTHER postal_zip_code_permanent

    END

    Now I see what the problem was. In the original SQL query, each condition is exclusive, for each record will only be categorized in one of the scenarios WHEN. But in OBIEE, each logical column is autonomous, so some records were classified into more than logical column, even if each logical column was supposed to be exclusive.

  • Use of RegExp and connect by level in Oracle SQL

    Hello

    Can someone help me to know about the use of regular expressions and the concept connect by level in oracle SQL?

    Thanks adavance

    Prakash wrote:
    Hello

    select regexp_substr(str, '[^,]+', 1, level) val
    from (select 'a,b,c,d' str from dual)
    connect by level <= length(str) - length(replace(str,','))+1
    
    i  tried my level to understand it but couldn't
    
    Please explain  how it works
    

    Please only put code in tags code, otherwise it's hard to see what you're asking.

    In response to your question look at the query...

    SQL> select regexp_substr(str, '[^,]+', 1, level) val
      2      from (select 'a,b,c,d' str from dual)
      3   connect by level <= length(str) - length(replace(str,','))+1
      4  /
    
    VAL
    -------
    a
    b
    c
    d
    

    OK, so clearly it's split the string anywhere where there is a comma, then, how he does it.

    Firsly we look at connect by clause it when we use it as a generator of line...

    SQL> select level from dual connect by level <= 4;
    
         LEVEL
    ----------
             1
             2
             3
             4
    

    Now, look at how the number 4 is calculated from the string...

    SQL> select length('a,b,c,d') - length(replace('a,b,c,d',','))+1 from dual;
    
    LENGTH('A,B,C,D')-LENGTH(REPLACE('A,B,C,D',','))+1
    --------------------------------------------------
                                                     4
    

    ... looking at the length of the string and the length of it without comma, we can determine how many commas are in the chain and the surmize that there must be 1 more value there are commas.

    Now look at the regular expression...

    SQL> select regexp_substr('a,b,c,d', '[^,]+', 1, 1) from dual;
    
    R
    -
    a
    
    SQL> select regexp_substr('a,b,c,d', '[^,]+', 1, 2) from dual;
    
    R
    -
    b
    
    SQL> select regexp_substr('a,b,c,d', '[^,]+', 1, 3) from dual;
    
    R
    -
    c
    
    SQL> select regexp_substr('a,b,c,d', '[^,]+', 1, 4) from dual;
    
    R
    -
    d
    

    The 4th parameter of the regexp_substr function is the 'presence' of the search string to return.

    The actual regular expression itself is looking for 1 or more characters (sign +) who are not (the ^ symbol) a comma.

    Is that more clear?

  • Oracle SQL Developer/Oracle 11 g/Windows 7 - cannot connect 'sys as sysdba'

    Hello

    I downloaded and installed SQL Developer 3.2.20.09, the latest version, separately from Oracle 11 g, because the version provided with Oracle 11 g did not work properly.

    Now, I'm trying to connect SQL Developer 3.2 to my instance of 11g Oracle installed on Windows 7.

    I can log in with the user name SYS AS SYSDBA using SQLPLUS, text bundled with Oracle 11g, with a password to null and without any problem.

    However, when I try to connect to the same instance using the graphical tool based on Java, Oracle SQL Developer 3.2 I get this error:

    Status: Failure-Test failed: ORA-01031: insufficient privileges

    I already checked the computer management and I am already a member of administrators and 'ORA_DBA' groups.
    I already checked tnsnames.ora, etc. and everything is indicated as it should.
    I also checked my SID and it corresponds to what was named during the installation of Oracle 11 g.

    Is someone can you please tell me why I can't connect using SYS AS SYSDBA?

    Connection to SQL Developer as the user SYS to Getting Started tutorial

  • Oracle SQL Developer in JDeveloper data modeling

    Hello

    See http://www.oracle.com/technology/products/database/sql_developer/files/Modeling.html
    Oracle SQL Developer - early release of the adoptive parent 2 data modeling
    Oracle SQL Developer data modeling is the latest product offering to join the Oracle database tools. SQL Developer data modeling offers complete data and database, modeling, tools and utilities, including entity-relationship, modeling relational (configuration database), Type data and multidimensional modeling, front and rear complete engineering and code generation. It includes the import to and the export to a variety of sources and targets, offers a variety of formatting options and valid models through a predefined set of design rules.

    SQL Developer data modeling can connect to any version of the data base Oracle 9.2.0.1 and later versions, and is platform-independent. Initially available as a standalone product, with the future versions available as an extension of Oracle SQL Developer. The second version of the early adopter has stand-alone and file-based.


    See the screenshots, import.png, multi.png, notation.png, subview.png, erd.png, largemodel.jpg

    question
    These data new modeling capabilities are destined to end up in a future version of JDeveloper (replacing the existing data modeling features in JDeveloper)?

    Thank you very much
    Jan Vervecken

    N °

    Modeling of SQL Developer focuses on ER diagrams and a repository - which we think is targeting a different audience, then the 'physical' offered by JDeveloper modeling.

  • What is the equivalent of the Oracle of the FIRST of Microsoft Access function?

    Use: Oracle 10 g 2 RAC on SUSE Linux 9 (10.2.0.3)

    In the process of conversion of a Microsoft Access database to Oracle, an Access query uses the FIRST function.
    What is the equivalent of the Oracle of the FIRST of Microsoft Access function?

    In the conversion attempt, FIRST_VALUE Oracle has been used. However, the same results was not reached.
    Thank you
    (BLL)

    Query:
    H2. ACCESS:
    SELECT
    TRE. GCUSNO,
    UCASE ([DCUSNO]) AS DCUSNO_STD,
    * FIRST (UCASE ([DNAME])) AS DNAME_STD *.
    * FIRST (UCASE ([DADDR])) AS DADDR_STD *.
    * FIRST (UCASE ([DCITY])) AS DCITY_STD *.
    TRE. DSTATE,
    FIRST (TRE. DZIP) AS DZIP,.
    TRE. DREGN,
    TRE. DDIST,
    TRE. DSLSMN,
    TRE. DCHAIN,
    TRE. MARKET,
    TRE. MKTPGM,
    TRE. EUMKT
    Of
    TRE
    GROUP BY
    TRE. GCUSNO,
    UCASE ([DCUSNO]),
    TRE. DSTATE,
    TRE. DREGN,
    TRE. DDIST,
    TRE. DSLSMN,
    TRE. DCHAIN,
    TRE. MARKET,
    TRE. MKTPGM,
    TRE. EUMKT;



    H2. ORACLE:
    SELECT DISTINCT
    TRE. GCUSNO,
    SUPERIOR (TRIM (TRE. DCUSNO)) AS DCUSNO_STD,
    SUPERIOR (TRIM (TRE. DNAME)) AS DNAME_STD,
    SUPERIOR (TRIM (TRE. DADDR)) AS DADDR_STD,
    FIRST_VALUE (UPPER (TRIM (TRE. (DNAME)) IGNORE NULL VALUES) (TRE ORDER. GCUSNO) AS DNAME_STD,.
    FIRST_VALUE (UPPER (TRIM (TRE. (DADDR)) IGNORE NULL VALUES) (TRE ORDER. GCUSNO) AS DADDR_STD,.
    FIRST_VALUE (UPPER (TRIM (TRE. (DCITY)) IGNORE NULL VALUES) (TRE ORDER. GCUSNO) AS DCITY_STD,.
    TRE. DSTATE,
    TRE. DZIP,
    FIRST_VALUE (UPPER (TRIM (TRE. (DZIP)) IGNORE NULL VALUES) (TRE ORDER. DZIP ASC) AS DZIP,.
    TRE. DREGN,
    TRE. DDIST,
    TRE. DSLSMN,
    TRE. DCHAIN,
    TRE. MARKET,
    TRE. MKTPGM,
    TRE. EUMKT
    CRM. TREUP100R TRE
    GROUP BY
    TRE. GCUSNO,
    SUPERIOR (TRIM (TRE. DCUSNO)),
    TRE. DNAME,
    TRE. DADDR,
    TRE. DCITY,
    TRE. DSTATE,
    TRE. DZIP,
    TRE. DREGN,
    TRE. DDIST,
    TRE. DSLSMN,
    TRE. DCHAIN,
    TRE. MARKET,
    TRE. MKTPGM,
    TRE. EUMKT;

    A slight correction to the post of odie. I think you mean min max to replicate the primary function of access, but see below for sure. So:

    min(upper(trim(tre.dname))) keep (dense_rank first order by tre.gcusno) as dname_std
    

    user10860953 wrote: how it ignores null values?

    The min and max functions automatically ignores nulls, so if there is a null value in tre.dname, it will not be returned, unless all values are null. For example:

    SQL> WITH t AS (
      2     SELECT 65 id, 'ABCD' col FROM dual UNION ALL
      3     SELECT 37, 'DEFG' FROM dual UNION ALL
      4     SELECT 65, 'DEFG' FROM dual UNION ALL
      5     SELECT 65, null FROM dual UNION ALL
      6     SELECT 70, null FROM dual UNION ALL
      7     SELECT 70, null FROM dual UNION ALL
      8     SELECT 37, 'ABC' from dual)
      9  SELECT id,
     10         MIN(col) keep (DENSE_RANK FIRST ORDER BY id) min_dname_std,
     11         MAX(col) keep (DENSE_RANK FIRST ORDER BY id) max_dname_std
     12  FROM t
     13  GROUP BY id;
    
            ID MIN_ MAX_
    ---------- ---- ----
            37 ABC  DEFG
            65 ABCD DEFG
            70
    

    John

  • convert the access query to oracle sql

    I'm trying to convert this query MS Access to oracle sql:

    Sum (IIf (IsNull ([INV_MTL_MATERIAL_TRANSACTIONS1]! [PRIMARY_QUANTITY]), 0,-[INV_MTL_MATERIAL_TRANSACTIONS1]! [PRIMARY_QUANTITY])) AS PRIMARY_QTY


    I tried to convert myself but still no luck.  Invalid number of arguments.


    Sum (if (NVL (INV. MTL_MATERIAL_TRANSACTIONS1. PRIMARY_QUANTITY), 0,-INV. MTL_MATERIAL_TRANSACTIONS1. PRIMARY_QUANTITY)) AS PRIMARY_QTY


    Can someone help me convert this request? Thank you.

    The immediate if (IIF) statement said:

    If primary_quantity is null return 0 for another return negative primary_quantity.

    Since there is no difference at all between 0 and - 0 I would write it as:

    sum (nvl (primary_quantity, 0) * - 1).

    Change a minute later, never send before thinking.

    Because you are just adding up the values obtained, he must not care about NULL values at all as aggregate functions generally ignore nulls, it should just be:

    Sum (primary_quantity * - 1).

    John

  • The writing PLSQL functions with columns as arguments (without aggregation)?

    Forum,

    . . . . Anyone know the shape / syntax of a function (Oracle10g) that works on a column (for example, SUM) without having to specify a GROUP BY clause (aggregators so defined by the user, although his end to adapt, is not quite what I'm looking for)? Web research point to a REF CURSOR argument - can I get an amen?

    . . . . I have a function that adds two objects (type = MDSYS. SDO_GEOMETRY containing geometries 'unknown' for Oracle built in functions do not work on them). To add objects K, the user must call this function time (K-1). This isn't a big problem as long as the number of adds is small (K _ < _ 5?), but what happens if the user needed to add objects N (where N + 1 is the point they go postal)? The solution seems to be to overload the existing function so that it can take a column as an argument and the user can limit the number of objects in the WHERE clause.

    See you soon,.
    Noel

    Published by: Christmas Khan on March 10, 2011 14:37 - Lavalin title of post

    Hi Noel,

    Noel Khan wrote:
    . . . . As indicated during the initial post, aggregate defined by the user are close, but require the end user to use the GROUP BY clause...

    This is not true. Aggregate functions do not require a GROUP BY clause. You have not said

    SELECT  COUNT (*)
    FROM    table_x;
    

    When you want ot know if table_x had been filled? In addition, aggreagate user-defined functions can also be called analytically.

    It would really help if you gave a concrete example of what you wanted to do.

Maybe you are looking for

  • authentication of face in labview

    I'm doing a project on the face using labview .i authentication uses vector quantization algorithm. I just started my project. can anyone suggest me how to vectorize an image?

  • detect the size of the memory

    I am running XP Professional (SP3) on a Dell OPTIPLEX GX 270 (2.40 MHz, Pentium 4). I replaced two 256 meg with two memory modules 512 modules. During cranking up the set up screen shows the total 1024 meg of memory available. Load of XP and "informa

  • How can I remove eztune from my pc and the monitor

    I can't get out the eztune my monitor gateway and keeps going back to the thief mode

  • TSSTcorp dvd +-rw ts-h653g

    I would like to know what are the types of disks, this drive can burn and if possible I would like a link to this information. Thank you.

  • No network level authentication supported Win 7 Home Premiun SP1

    I work from home with a new company and now I am not able to connect to the remote desktop, because he says that the NLA is not supported on my system. Trying him I don't have the option to do so. My previous employers, team COMPUTER messed with some