Its me again. Everything works fine. However, it taking too long to execute the query on a table containing 400K records. The query has been running for 3+ hours. Any ideas on how to speed it up? I know that that hard to do because no one is here but I just looking for a few ideas.
I not sure it the FOR loop will work with what I am trying to accomplish.
I have one table:
Test1
SSN VARCHAR2(9)
VENDOR_NAME VARCHAR2(30)
Is it possible to use you example to create the following?:
SSN VENDOR_NAMES
123456789 DOE, JANE ~ SMITH, JANE ~ THOMAS, JANE
I created the function [No Errors]. However, no results are displayed.
I set serveroutput on expecting the results to be displayed but nothing.
Do I need to do a DBMS_output.put_line????
No errors. How do I get the following:
Col1 Col2 Col3 Strung-together Col4 Values
----- ---- ---- --------------------------------------------------
1 A YY Oracle,Siebel,Sybase
2 B ZZ Oracle,Siebel,Sybase,DB2,MySQL,SQL Server,Informix
SQL> CREATE OR REPLACE FUNCTION MANYNAMES(SSN VARCHAR2, VENDOR_NAME VARCHAR2)
2 RETURN VARCHAR2
3 IS
4 HOLD_STRING VARCHAR2(4000);
5 SEPARATOR VARCHAR2(2);
6 BEGIN
7 FOR R IN (select ssn, vendor_name
8 from vendors
9 where ssn like...
Carp,
I tried your first suggestion but was unsuccessful.
Could you please explain your statement:
or you might try just ANDing all of the conditions together (with calls to NVL if NULLs are the root of the problem).
I'm have a question. When I execute the following script I get too many records. In the F887rpt table there is only 20,000 records. However when I run the script below 20,100 are selected. I was only expecting to get 20,000 records. Can someone please tell me why I am getting more than...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.