LOV with Select Union - ERROR 30049

Hi, guys.
I'm facing some troubles to deal with Select Union in a Lov.
When I'm trying to run the forms, it shows me the error FRM-30049 in column mapping properties.
Actually, I don't know if Forms supports it. The code below worked out in ORACLE SQLPLUS.
Follows the code:
SELECT (SUBSTR(cust_name,1,15) ||' - '||'Customer'),
cust_cod
FROM customers
UNION
SELECT (SUBSTR(supl_name,1,15)||' - '||'Supplier'),
supl_COD
FROM suppliers;
May someone give me a hint?
Thanks in advance.

I'm sorry.
I've found my error. It was just necessary adjust the column mapping long propertie.
Now, it's working.
Sorry, again.
Have a nice day.
Thanks anyway.

Similar Messages

  • Load from Infoprovider with selection package error

    Hello,
    Requirement: Data transfer from one application to another application in BPC
    Version: BPC 7.5 NW SP08
    Source application: MGMT
    Target Application: LEGAL
    Transformation File: Yes
    Conversation File: Yes for Location Dimension
    Source records: 103 (The data is for only one Location)
    When I run Load from Infoprovider with selection Package (/CPMB/LOAD_INFOPROV_UI package) i am able to load 99 records loading and 4 records are getting error.
    Error Message: 121 ,41513000,,N,AVER,Y,2011,,1030,1030,,,0.0000000
    Line 121 :Dimension:LOCATION member: convert failed in line 121; rejected
    Analysis: Location conversion is already in place and other 99 records are able to success on the same conversion rule. I have checked transformation, Conversion files. When I validate the transformation file with data then also i am seeing same error.
    Note: I am using same package to load data from BW Cube to  MGMT application that time i am able to load without error, When I load the same data from MGMT to LEGAL then this error is coming.
    I appreciate any clue on this error.
    Thanks,
    Sri
    Edited by: sribpc on Oct 10, 2011 8:02 PM

    We are able to solve the problem,
    In the Account Dimension for one of the property we maintained some value with comma in it. That created a bad data and system throwing error.
    After changing Account dimension attribute then the package is working fine.
    Thanks for the support.

  • APEX 4.01 Tabular form with select list error

    When i create a tabular form and i add a select list(query based LOV) the form is not displayed but gives me the next error
    report error:
    ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    somebody have an idea what is happening here
    is this still a bug in APEX 4.01?
    hope to have an answer soon.
    Hugo Perfors

    Hi Jari,
    It returns about 1100 records which i think is not much.
    But even when i narrow the amount of records the problem is not solved.
    it this a bug?
    Best
    Hugo

  • LOV with subselect shows return_value instead of display_value

    Hi,
    I have the following dynamic SQL based LOV with a union in it that does not display correctly in the application.
    SELECT role_name d, role_seq r
    FROM apex_app_roles ar
    WHERE security_level = 1
    AND :F2500_APP_USER in
    (SELECT au.user_id FROM
    apex_app_user au,
    apex_app_user_roles auar
    WHERE ar.role_seq = auar.role_seq
    AND auar.user_seq = au.user_seq)
    UNION
    SELECT role_name d, role_seq r
    FROM APEX_APP_ROLES ar
    WHERE security_level = 0
    ORDER BY 1
    The problem I have is the first part of the SQL is displaying the return_value instead of the display_value. If I comment out the following the proper value is displayed in the application.
    AND :F2500_APP_USER in
    (SELECT au.user_id FROM
    apex_app_user au,
    apex_app_user_roles auar
    WHERE ar.role_seq = auar.role_seq
    AND auar.user_seq = au.user_seq)
    We currently have version 4.0.1.00.03 installed.
    Is there an issue with this version and what I am trying to do or is there something wrong with what I'm doing? The SQL returns the proper results if I run it in the SQL workshop so I'm at a loss here and if anyone can help it would be greatly appreciated.
    Thanks,
    Bruce

    The value is correct. I can run the entire SQL in workshop using parameter substitutions and it returns all the values correctly. So running this
    SELECT role_name d, role_seq r
    FROM apex_app_roles ar
    WHERE security_level = 1
    AND :F2500_APP_USER in
    (SELECT au.user_id FROM
    apex_app_user au,
    apex_app_user_roles auar
    WHERE ar.role_seq = auar.role_seq
    AND auar.user_seq = au.user_seq)
    UNION
    SELECT role_name d, role_seq r
    FROM APEX_APP_ROLES ar
    WHERE security_level = 0
    ORDER BY 1
    returns all the rows and looks like this.
    D     R
    ACP_ADMIN     3
    READ_ONLY     2
    READ_WRITE_ALL     1
    SERVICE_DESK_ADMIN     4

  • Error while selecting NULL value from Popup Key LOV(numeric or value error)

    Hi,
    I have a item P1_DEPTNO with following properties.
    P1_DEPTNO - Popup Key LOV (Displays description, returns key value)
    LOV - P1_DEPT_LOV
    select deptname d, deptno r from deptP1_DEPTNO item properties
    List of Values
      Named LOV - P1_DEPT_LOV
      Display Null - Yes // changed to Yes, so that it can accept NULL values.
      Null display value - NULL
      Null return value -   (blank)PL\SQL Process -
    declare
    v1 number;
    begin
    if :P1_DEPTNO is null OR :P1_DEPTNO = '' then
        v1 := 0;
    else
        v1 := :P1_DEPTNO;
    end if;
    // rest of the PL\SQL process
    end;Now, when I run the page and select NULL value from Popup LOV and submit, I get the following error.
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error.When, I select any other value other than NULL, then it's working perfectly fine.
    Only in case of NULL value, I am getting this error.
    ANY idea, why this error is coming??
    Thanks,
    Deepak

    Hi Varad,
    I did the following change
    Null display value - (blank) // by default it is displaying '%' in the select this
    Null return value - -1
    but when I select % (null value) from the popup list, it displays the return value -1 in the text field.
    My question is why it is displaying the return value -1 in the text field...*It should display the display value in the text field (i.e blank in this case)*
    then, I did the following change
    Null display value - (blank) // by default it is displaying '%' in the select this
    Null return value - // a single space, so that when I select %(null value) from the list, it should display blank in the text field...
    then I did the following change in the PL\SQL process.
    PL\SQL process
    declare
    v1 number;
    begin
    if :P1_DEPTNO = ' ' then // -- checking the value of single space ' ' when we select %(null) in the popup list, BUT even I select %(null), control is not coming here.
        v1 := 0;
    else
        v1 := :P1_DEPTNO;
    end if;
    // rest of the PL\SQL process
    end;Thanks,
    Deepak

  • Extra sort field in LOV with Union

    I'm building an LOV that is based on a single table, but the list needs to be broken up into two groups to show preferred vs. non-preferred values. I would like to display the preferred values in the table first (sorted) and then the non preferred values (sorted) second. I am able to do this in SQL with a UNION and by creating an extra "sort" column for the ORDER BY clause. The problem is, Dynamic LOV only allows a query to return exactly two columns, hence I can't include my sort column. Below is the query that works in SQL Builder, but no LOV. Any suggestions on how I can do this in an LOV without including the 3rd column?
    /* Preferred companies */
    select     CC_COMPANIES.NAME||'*' as display_value,
         CC_COMPANIES.ID as return_value,
    'A'||CC_COMPANIES.NAME as sort_value
    from     CC_WATCHLIST CC_WATCHLIST,
         CC_COMPANIES CC_COMPANIES
    where CC_WATCHLIST.ITEM_ID=CC_COMPANIES.ID
    and CC_WATCHLIST.MEMBER_ID=:CC_MEMBER_ID
    and      CC_WATCHLIST.CATEGORY_ID = 6
    UNION
    /* the rest of the companies */
    select     CC_COMPANIES.NAME as display_value,
         CC_COMPANIES.ID as return_value,
    'Z'||CC_COMPANIES.NAME as sort_value
    from     CC_WATCHLIST CC_WATCHLIST,
         CC_COMPANIES CC_COMPANIES
    where CC_COMPANIES.ID not in (select CC_WATCHLIST.ITEM_ID from CC_WATCHLIST where CC_WATCHLIST.MEMBER_ID=:CC_MEMBER_ID
    and      CC_WATCHLIST.CATEGORY_ID = 6
    and CC_WATCHLIST.ITEM_ID=CC_COMPANIES.ID)
    ORDER BY sort_value

    Jeff,
    Try this:
    select x.display_value, x.return_value from (
    /* Preferred companies */
    select CC_COMPANIES.NAME||'*' as display_value,
    CC_COMPANIES.ID as return_value,
    'A'||CC_COMPANIES.NAME as sort_value
    from CC_WATCHLIST CC_WATCHLIST,
    CC_COMPANIES CC_COMPANIES
    where CC_WATCHLIST.ITEM_ID=CC_COMPANIES.ID
    and CC_WATCHLIST.MEMBER_ID=:CC_MEMBER_ID
    and CC_WATCHLIST.CATEGORY_ID = 6
    UNION
    /* the rest of the companies */
    select CC_COMPANIES.NAME as display_value,
    CC_COMPANIES.ID as return_value,
    'Z'||CC_COMPANIES.NAME as sort_value
    from CC_WATCHLIST CC_WATCHLIST,
    CC_COMPANIES CC_COMPANIES
    where CC_COMPANIES.ID not in (select CC_WATCHLIST.ITEM_ID from CC_WATCHLIST where CC_WATCHLIST.MEMBER_ID=:CC_MEMBER_ID
    and CC_WATCHLIST.CATEGORY_ID = 6
    and CC_WATCHLIST.ITEM_ID=CC_COMPANIES.ID)
    ORDER BY sort_value) xJoel

  • OnChanger="get_ajax_select_xml(this);" with  select list (query named LOV)

    Hello,
    i used Vikas'example Re: cascading lov for tabular form
    i have a problem with Select list (query based LOV)
    when run tabular form i have the following error:
    report error:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    the number of rows of the Lov are 900
    the display variable is 70 char
    is there any limit?
    Thank in advance
    Costanti

    Leo,
    Thanks for the response, but I don't think you quite understand my problem. If I go to the Column Attributes screen for the group_id field, I have the "Display As" drop down set to "Select List (query based LOV)", not "Select List (named LOV)". This requires that the sql query be written in the "List of values definition" text area below. Within that text area I have the following query:
    SELECT DISPLAY_NAME, GROUP_ID
    FROM APPLICATION_GROUPS
    WHERE APP_ID = ?????
    ORDER BY 1
    The APP_ID that I need to reference is for the current row of data that is being processed. Therefore, I can't use a :PNNN_APP_ID variable, because that field does not exist on the page.
    Hopefully this explains it a little better.
    Thanks,
    Kris

  • On closing Photoshop CC, I am getting an error message on screen that read's "Selective Palette error: no element found at line 1. Are you able to assist with this problem?

    Can anyone shed some light on this error message I am getting upon closing Photoshop CC
    I am getting an error message on screen that read's "Selective Palette error: no element found at line 1. Are you able to assist with this problem?

    Same issue here in WI and for me it was at 6:36p CST.
    I'm changed my password, removed iCloud from my phone ... tried 3G and WIFI with no luck. I also cannot check it on my Mac or iPad. I was able to get contacts and calenders back on my phone but no mail yet.
    Did the whole Apple support thing and apparently I'm part of the 1%
    EDIT: Question: are all of you former MobileMe users as well? Just wondering because I know there were going to be some changes as they completely move MobileMe over to iCloud and drop the "extra" services. I just can't remember if it was just a single cut off date or a series of dates. THAT email is stuck in my iCloud folders.

  • Using LOV with Validation on the Numeric Fields results in Error

    Dear JHeadstart Team,
    During my work with lov I encountered another problem. I defined a lov and attached the lov to a numeric field and check the LOV for validation. Now when I use LOV using the LOV button it works fine but when I enter some numbers and then press tab the LOV was not shown correctly and resulted in the following errors and the worst thing is that you can not navigate to any other pages and all try to navigate to other pages results in errors too. When we put the same LOV on a string field (which is not desirable for us) it worked fine.
    It seems to me like a bug. Am I right? Is ther any solution or workaround for this problem?
    Thanks in advance,
    Navid
    16:31:29 DEBUG (LovItemBean) -Cleared value of item HrTrainingCourseSchedulesTitle
    16:31:29 DEBUG (LovItemBean) -Cleared value binding #{bindings.HrTrainingCourseSchedulesTitle.inputValue} of item HrTrainingCourseSchedulesTitle
    16:31:29 ERROR (ApplyRequestValuesPhase) -java.lang.ClassCastException: java.lang.Long
    javax.faces.el.EvaluationException: java.lang.ClassCastException: java.lang.Long
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:130)
         at oracle.adf.view.faces.component.UIXComponentBase.__broadcast(UIXComponentBase.java:1079)
         at oracle.adf.view.faces.component.UIXEditableValue.broadcast(UIXEditableValue.java:247)
         at oracle.adf.view.faces.component.UIXSelectInput.broadcast(UIXSelectInput.java:215)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:249)
         at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:307)
         at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at com.pooya.controller.jsf.PooyaAuthenticationFilter.doFilter(PooyaAuthenticationFilter.java:256)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.ClassCastException: java.lang.Long
         at oracle.jheadstart.controller.jsf.bean.LovItemBean.validateWithLov(LovItemBean.java:101)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
         ... 31 more

    Hi Navid,
    We ran into the same bug and have the next workaround for it:
    We extended the JHeadstart class 'LovItemBean' and we have overridden the method 'validateWithLov(...)' with:
      public void validateWithLov(ValueChangeEvent valueChangeEvent)
        Object newValue = valueChangeEvent.getNewValue();
        if(newValue != null && !(newValue instanceof String))
          newValue = newValue.toString();
          ValueChangeEvent newEvent = new ValueChangeEvent(valueChangeEvent.getComponent(), valueChangeEvent.getOldValue(), newValue);
          newEvent.setPhaseId(valueChangeEvent.getPhaseId());
          super.validateWithLov(newEvent);
        else
          super.validateWithLov(valueChangeEvent);
      }Next step is to use a custom template in your JHeaedstart Application Structure file for 'LOV_ITEM_BEAN'. In this custom template you should use your own class as 'managed-bean-class' instead of the default JHeadstart one.
    Now you can safely generate LOV with validation of number fields.
    Maybe something the JHeadstart can pcik up in the next release of JHeadstart :-)
    Hope this helps.
    Pascal

  • ORA-20001:Error fetching column value:Query must  begin with SELECT or WITH

    Hi all,
    I have implemented an application with a master-detail form using Apex 3.1.2 and I imported that to Apex 3.2 on different server. Everything else seems to be fine except when I add detail record (clicking on Add Rows), I am getting following error.
    =================
    report error:
    ORA-20001: Error fetching column value: ORA-20001: Query must begin with SELECT or WITH
    ====================
    Both the databases have same version 10gR2. I didn't make any change after importing it as well. Can someone let me know what could be the issue? Thanks in advance.
    SHY

    May we know your first name?
    Can you put the application in your workspace on apex.oracle.com so we can take a look?
    Scott

  • The selected signed file could not be authenticated. The file might have been tampered with or an error might have occured during download. Please verify the MD5 hash value against the Cisco Systems web site

    I am trying to load any 9.0.3 firmware on my UCM 5.0.4.2000-1 server. Every newer firmware I load throws the following error. I have verified the MD5 is correct and also downloaded the file several times with the same result. I can load the same firmware file on another UCM server and it loads fine. Any ideas?
    Thanks in advance!
    Error Message:
    The selected signed file could not be authenticated. The file might have been  tampered with or an error might have occured during download. Please verify the  MD5 hash value against the Cisco Systems web site:  9b:b6:31:09:18:15:e7:c0:97:9f:e6:fe:9a:19:94:99
    Firmware File: cmterm-7970_7971-sccp.9-0-3.cop.sgn
    UCM version: 5.0.4.2000-1

    Thanks for your reply. We have a lab environment where I maintain  UCM 5.0, 5.1, 6.0, 6.1, 7.0, 7.1 and 8.0 servers each running the latest released firmware for our QA testing team. I have downloaded and installed the latest device packages but find that if I try to install any firmware newer then 8.3.1 on either 5.0.4 or 6.0 i start getting MD5 hash authentication errors. It looks like 9.0.3 firmware should work on UCM 5.0 and 6.0 so I am lost as to why I can't seem to update any firmware for any model phone if it is newer then version 8.3.1 on either 5.0 or 6.0. while 5.1 and 6.1 work without issues. Maybe it is just a bug. I mostly wanted to see if anyone else has experienced this or if it is just me.

  • Error in ibot/agent with recipients based on a Analysis with a union

    I'm getting the error code 77006. I think it's a bug in obiee 11.1.6 with a "Get Recipients from the Analysis Used in the Agent Condition" option when using a Analysis with a union.
    When i rewrite the analysis without the union the ibot/agent runs without an error.
    Does anyone know if this issue was ever solved in a patch?
    thanks
    full error output:
    [nQSError: 77006] Oracle BI Presentation Server Error: A fatal error occurred while processing the request. The server responded with: An invalid object was accessed during evaluation.
    Error Codes: QBB4RZQS:SDKE4UTF
    Location: saw.delivers.rpc.getMetadata, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool.socketrpcserver, saw.threads
    Expression: requestVariables.PREFERRED_CURRENCY
    Error Codes: AGEGTYVF
    AgentID: /shared/Agents/Common/Eenmalige opstarten/test2
    ...Trying main Agent loop again.... Sleeping for 3 seconds.[nQSError: 77006] Oracle BI Presentation Server Error: A fatal error occurred while processing the request. The server responded with: An invalid object was accessed during evaluation.
    Error Codes: QBB4RZQS:SDKE4UTF
    Location: saw.delivers.rpc.getMetadata, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool.socketrpcserver, saw.threads
    Expression: requestVariables.PREFERRED_CURRENCY

    What is the role of PREFERRED_CURRENCY in your report?

  • Dynamic LOV with dates and selected default value

    Hello,
    I have a dynamic lov with dates. Query looks like this:
    select distinct concat(to_char(b.send_day_time,'YYYY.MM.DD HH24'),':00') display_value, to_char(b.send_day_time,'YYYY.MM.DD HH24') return_value
    from ...
    No I want to select a specific date as the default value. I put the following code for the default value:
    declare
    begin
    return to_char ('2008.02.19 10:00');
    end;
    But it doesn't work.The date (string) exists in the lov but it is not selected.
    Can someone tell me where the problem is?
    Thx in advance.
    Greetings,
    hamburger

    Hi hamburger,
    As return value you specified to_char(b.send_day_time,'YYYY.MM.DD HH24'),
    so your default value should be like to_char('2008.02.19 10'). Also pay attention to select the "Default Value Type".
    Hope this helps.
    chrissy

  • LOV with PL/SQL in APEX 4.0

    I want to create a LOV in APEX 4.0 with the help of PL/SQL block,but when I am pasting my PL/SQL block code in the List Of Values area and try to run it, it is showing me error "Rendering Page ITEM F300_P1510_PROJECT_TASK raised the following error: ORA-20001: Query must begin with SELECT or WITH" where F300_P1510_PROJECT_TASK is my LOV name.
    Please help me how to fix this.

    Hi,
    The way to do this that comes to mind, and I know it works because I have done it, is rather long and uses Ajax
    1. Create an On Demand Application Process that returns this as a string
    <optgroup label="Swedish Cars">
    <option value="volvo">Volvo</option>
    <option value="saab">Saab</option>
    </optgroup>
    <optgroup label="German Cars">
    <option value="mercedes">Mercedes</option>
    <option value="audi">Audi</option>
    </optgroup>2. Write a javascript function (HTML Header) that will
    a. Make an Ajax call to the Application Process in step 1
    b. replace the options in the select tag with the result of the ajax call
    3. Call the js function in step 2 using onload from HTML Body Attribute.
    The pure SQL PL/SQL way would be as follows:
    a. Create a PIPELINED function that returns the display, return pairs of values
    b. Use the above function in SELECT in the LOV
    Maybe there is a simpler way, but it eludes me.
    Regards,
    Edited by: Prabodh on Aug 20, 2010 4:23 PM

  • LOV with 'ALL' option

    I need to create an LOV with individual campus codes along with the option for selecting all of them. For my ALL option (in static list), I have the literal 'ALL' as my display and the string of (1,2,4,5 etc) as my return. This, however, does not work. I have also tried adding tic mark(s) to the string ('1','2','4' etc)... she still no work. Anyone know of a work-around?
    Thanks.

    radgid is right and its very useful.
    but but..... if you explicitly required this thing then try this:
    --not tested in Apex but running in sql*Prompt
    Create table Campus
    (Campus_code Number,
    Campus_Name varchar2(30));
    insert into campus
    Select Rownum, dbms_random.string('a',10) RandNames from dual
    Connect by level <=5;
    SELECT Campus_Name,
    LTRIM(MAX(SYS_CONNECT_BY_PATH(Campus_code,',')) KEEP (DENSE_RANK LAST ORDER BY curr),',') Return_val
    FROM (SELECT 'ALL' Campus_Name,
    Campus_code,
    ROW_NUMBER() OVER (PARTITION BY 'ALL' ORDER BY Campus_code) AS curr,
    ROW_NUMBER() OVER (PARTITION BY 'ALL' ORDER BY Campus_code) -1 AS prev
    FROM Campus)
    GROUP BY Campus_Name
    CONNECT BY prev = PRIOR curr AND Campus_Name = PRIOR Campus_Name
    START WITH curr = 1
    Union All
    Select Campus_Name, To_Char(Campus_Code) Campus_Code from Campus order by Campus_Name

Maybe you are looking for

  • Going from mac to pc- genius bar screwed me

    Okay I had my ipod since january and I had a problem with it once, my computer was taking too long to recognize it. So I took it into the genius bar and he connected it to his macintosh, I am an adament PC user (i know i know i need to get a mac), I

  • Export Audio to Movie - where is that function in Logic 9?

    I have noticed that a very useful function in my Logic Pro 8 (version 8.0.2) options/movie/export audio to movie is not found in the Logic 9 version. One of my friends has this version (and an Intel Mac) but I cannot help him working with music and v

  • LVOOP technique for passing classes down to subVIs

    Hello LVOOP experts, A quick question regarding performance of LVOOP. I finally got around to implementing something non-trivial with LV classes, just for fun though. If my architecture consists of a state machine, with a typedef'ed shift-registered

  • What are the basic instaletion steps in LINUX?

    hi,         please any one send me basic installation steps in Linux.if you don't mind how it will be installed by step by step explanation.send to my e.mail id [email protected] regards, balaram reddy.

  • Steps to factory setting ??

    I'm trying to recovery my girl friends Laptop model L355-S7817.  I'm holding the zero key down when pressing the power button to turn the PC on.  It starts up normally and goes to desk  top.  Are these the correct steps to set back to factory setting