Sql developer - To_Char not a recognised function

Hi All
I have a SQL Server 2005 database connected through Oracle SQL Developer V 1.5.1 . I am attempting to convert the system date to a character date in the form of YYYYMMDD.
So I used this statement but it comes back with the error that it is not a valid function.
TO_CHAR(sysdate,'YYYYMMDD')
I have searched the net but cant seem to fix this, does it mean that TO_CHAR only works if you are connected to an Oracle Database?
If so is there another function I can use for this?
cheers

mitroberts wrote:
I have searched the net but cant seem to fix this, does it mean that TO_CHAR only works if you are connected to an Oracle Database?Different vendors offer different functionality, it's true.
mitroberts wrote:
If so is there another function I can use for this?You'd have to ask (or google) someone knowledgeable in SQLServer, this is an Oracle forum, so likely not the best stomping grounds for you to see results in.
Through the magic of google, i found you a potential answer ... it took me all of 5 seconds to scan the search results and determine this looked promising. Something to consider in the future (it'll actually save you time).
http://social.msdn.microsoft.com/Forums/en/transactsql/thread/7d4a392f-6d3d-432a-9f95-285cc2a0dee2

Similar Messages

  • My SQL Developer is not working correctly! help

    hello!!
    My problem here is not like I can't live or work but it is REALLY annoying, see my SQL Developer is not taking any key different from letters and the space bar, I mean, if I use the enter key, doesn't change the line, if i use the backspace key doesn't erase if I use F5/F9 doesn't execute the query(s)!!!! and so the arrow keys don't work!!!
    any ideas why is that happening? and if so howcan i fix it?

    There is a well known but still unresolved bug causing this kind of behavior, if you are on SQL Developer 1.5.X you can work around the problem by loading default accelerators from:
    Tools -> Accelerators -> Load Preset -> Default
    If you are on 2.1.X the preset can be loaded from
    Tools -> Preferences -> Accelerators -> Other Actions -> Load Keyboard
    In 2.1 this problem has not been reported so far, so if you are in 1.5.X you may consider upgrading.

  • Oracle SQL Developer does not browse Sybase's objects

    I had installed and configured jtds-1.2.5.jar in Oracle SQL Developer for Sysbase connection. Oracle SQL Developer does not browse any objects. Why? Can you please provide a solution?

    Hi,
    Can you provide some more information into what you are experiencing.
    What version of SQL Developer are you using?
    Did you install the jtds jar under the
    Tools > Preferences > Database > Third Party JDBC Driver
    Is the Sybase tab available in the new connection dialog?
    Did you select the default database in the connection dialog?
    Can you run a query against the Sybase database from the SQL Developer worksheet?
    Note that JTDS 1.2 is the only supported version. There maybe issues with other versions.
    Regards,
    Dermot.
    SQL Developer Team

  • SQL Developer does not support Oracle 8i

    Hi,
    I was waiting a tool from Oracle like SQL Developer for a long time, finally it came, but I am a little disapointed, so Why SQL Developer does not support Oracle 8i? Other free tools like SQUIRREL can do it. I also have worked in previous projects using PL/SQL Developer and it works fine...Why a native Oracle tool can not do it?
    I am in a project where we have to upgrade the Oracle database to a newer version, but I cannot have access to the old one...
    I know there are some threads in this forum, and some people can work with 8i with no issues. Can anyone who works with SQL Developer and Oracle 8i please tell me how to do it?
    Thanks,
    --Javier
    Edited by: javierlarota on Dec 9, 2009 5:40 AM
    Edited by: javierlarota on Dec 9, 2009 5:41 AM

    That's what I thought, the issue is more commercial ($$$) than technical. Anyway...I downloaded the version 1.1 but now I am getting an ORA-02248: invalid option for ALTER SESSION error. 00604. 00000 "error occurred at recursive SQL level %s".
    Thanks,
    --Javier                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • SQL Developer is not able to identify the Tnsnames.ora file

    Hi,
    I have installed the following in the laptop having Win XP:
    1) Oracle 10gR2 Client software in the D: drive of laptop. Tnsnames.ora is located in this clients Network\Admin path. This client is used to access the databases on the other servers.
    2) Oracle 10gR2 Database software in the E: drive of laptop. Right now there is not Tnsnames.ora file in this softwares Network\Admin path. This db software has been installed to create local databases in the laptop.
    3) Oracle SQL Developer Version 2.1.1.64 is also installed in C: drive of laptop.
    The problem which now I'm facing is that the SQL Developer is not able to identify the Tnsnames.ora file mentioned in the above point-1 which contains entries of databases on the different servers. Could you please help me out in solving this problem?
    Thanks in advance.
    MAK

    I forget what version I was using at the time, but when I had an ORACLE_HOME defined for the environment and TNSNAMES file defined in SQL Developer (different one than was in ORACLE_HOME), that I would see results from both tns files. I don't know if that is still the case. I have since dropped my ORACLE_HOME environmental variable.

  • Connection ... able to connect using sql developer, but not sqlplus or toad too

    Hi folks, having this issue, with only one of my so many databases, what might be the reason and how to fix/correct this, please assist.
    Able to connect using sql developer, but not sqlplus or toad too; sqlplus error: ORA-12154: TNS:could not resolve the connect identifier specified
    thanks in advance.

    SQLDEVELOPER works since it use JDBC Thin & does not use tnsnames.ora
    ORA-12154 ALWAYS only occurs on SQL Client & no SQL*Net packets ever leave client system
    ORA-12154 [B]NEVER[/B] involves the listener, the database itself or anything on the DB Server.
    ORA-12154 occurs when client requests a connection to some DB server system using some connection string.
    TNS-03505 is thrown by tnsping & is same error as ORA-12154 thrown by sqlplus or others.
    The lookup operation fails because the name provided can [B]NOT[/B] be resolved to any remote DB.
    The analogous operation would be when you wanted to call somebody, but could not find their name in any phonebook.
    The most frequent cause for the ORA-12154  error is when the connection alias can not be found in tnsnames.ora.
    The lookup operation of the alias can be impacted by the contents of the sqlnet.ora file; specifically DOMAIN entry.
    TROUBLESHOOTING GUIDE: ORA-12154 & TNS-12154 TNS:could not resolve service name [ID 114085.1]
    http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/

  • SQL script works in SQL Developer but not when scheduled

    I have a script that I can run, logged onto my server as a user with full permissions and into my database as SYSDBA, that produces a CSV file on the server when I run it from SQL Developer ON the server. HOWEVER, when I set it up as a scheduled job, using those SAME CREDENTIALS (same Windows/network user; same database user), I get no output. The job indicates that it's running successfully, but no file gets created.
    Any advice is greatly appreciated.
    Here's the script:
    WHENEVER SQLERROR EXIT FAILURE;
         set serveroutput on
         DECLARE
         my_query varchar2(5000);
         BEGIN
         my_query := q'[
    SELECT client_id, JOB_NAME, SCHEDULE_TYPE, TO_CHAR(START_DATE,'MM/DD/YYYY HH24:MM') AS START_DATE,
    REPEAT_INTERVAL, ENABLED, STATE, RUN_COUNT,
    TO_CHAR(LAST_START_DATE,'MM/DD/YYYY HH24:MM') AS LAST_START, LAST_RUN_DURATION,
    TO_CHAR(NEXT_RUN_DATE,'MM/DD/YYYY HH24:MM') AS NEXT_RUN
    FROM DBA_SCHEDULER_JOBS
    WHERE instr(client_id,'10.') is not null
    ORDER BY LAST_START_DATE DESC
         p2k.ccsd_any_query_to_csv('HRISEDB_E_OUTPUT_MK', 'dbserver_job_output.csv',my_query);
         end;
    =================================================================
    Here's the called procedure (I don't really understand it -- I gleaned it from others on the internet):
    -- DDL for Procedure CCSD_ANY_QUERY_TO_CSV
    set define off;
    CREATE OR REPLACE PROCEDURE "CCSD_ANY_QUERY_TO_CSV" (p_dir in varchar2, p_filename in varchar2, p_query in varchar2) AUTHID CURRENT_USER
    is
    l_output utl_file.file_type;
    l_theCursor integer default dbms_sql.open_cursor;
    l_columnValue varchar2(4000);
    l_status integer;
    l_query long;
    l_colCnt number := 0;
    l_separator varchar2(1);
    l_col_desc dbms_sql.desc_tab;
    l_col_type varchar2(30);
    l_datevar varchar2(8);
    BEGIN
    l_query := 'SELECT SYSDATE FROM DUAL; ';
    dbms_sql.parse(l_theCursor, p_query, dbms_sql.native);
    dbms_sql.describe_columns(l_theCursor, l_colCnt, l_col_desc);
    l_output := utl_file.fopen( p_dir, p_filename, 'w' );
    dbms_sql.parse( l_theCursor, p_query, dbms_sql.native );
    for i in 1..l_col_desc.count LOOP
    utl_file.put( l_output, l_separator || '"' || l_col_desc(i).col_name || '"' );
    dbms_sql.define_column( l_theCursor, i, l_columnValue, 4000 );
    l_separator := ',';
    end loop;
    utl_file.new_line( l_output );
    l_status := dbms_sql.execute(l_theCursor);
    while ( dbms_sql.fetch_rows(l_theCursor) > 0 ) loop
    l_separator := '';
    for i in 1 .. l_colCnt loop
    dbms_sql.column_value( l_theCursor, i, l_columnValue );
    utl_file.put( l_output, l_separator || '"' || l_columnValue || '"');
    l_separator := ',';
    end loop;
    utl_file.new_line( l_output );
    end loop;
    dbms_sql.close_cursor(l_theCursor);
    utl_file.fclose( l_output );
    execute immediate 'alter session set nls_date_format=''dd-MON-yy'' ';
    exception
    when others then
    execute immediate 'alter session set nls_date_format=''dd-MON-yy'' ';
    raise;
    end;
    /

    hello,
    does oracle showing any errors in user_scheduler_job_run_details for this job ? I would advise try inserting some debug statement to identify where exactly its stuck. Also please check sample configurations syntax for user_scheduler_jobs.
    Cheers
    Sush

  • Why does the query work in SQL Developer, but not in APEX?

    Hi, guys:
    I have a silly question. I have a complicated query, and I tested it successfully with SQL developer, and result is correct. However, when I put it into APEX to generate a report, it always reports no data found. I also know the condition related to "other marks" select list in the where clause part causes this problem. It also looks strange: before I add this condition, everything works OK; after I add this condition, even I do not choose the "other marks" select list, other components do not work neither. I always got no data found result. Could anyone help me on this problem? You can also visit our developing site as http://lsg-solutions.com:8888/apex/f?p=206 to check the problem.
    Thanks a lot
    Sam
    select distinct 'MAP','Detail',so.doc_number as "DOC Number", so.offender_id as "Offender ID", so.first_name||' '|| so.middle_name||' '||so.last_name as "Offender Name",
    so.date_of_birth as "Date of Birth",
    (select sc1.description from sor_code sc1 where sc1.code_id=so.race) as "Race",
    (select sc2.description from sor_code sc2 where sc2.code_id=so.sex) as "Sex",
    (select sc8.description from sor_code sc8 where sc8.code_id=so.hair_color) as "Hair Color",
    (select sc9.description from sor_code sc9 where sc9.code_id=so.eye_color) as "Eye Color",
    replace(replace(nvl2(sl.address1, sl.address1||' '||sl.address2 ||' '||sl.city ||' '||sl.county||' '||(select sc3.description from sor_code sc3 where sc3.code_id=sl.state)||' '||sl.zip, 'No Known Address'),'#'),',') as "Address",
    replace(replace(nvl2(sl.physical_address1,sl.physical_address1||' '||sl.physical_city ||' '||sl.physical_county||' '||(select sc4.description from sor_code sc4 where sc4.code_id=sl.physical_state)||' '||sl.physical_zip, 'No Known Address'),'#'),',') as "Physical Address",
    sl.status as "Status",
    sl.jurisdiction as "Jurisdiction",
    to_char(sl.ADDRESS_LATITUDE) as "Address Latitude",to_char(sl.address_longitude) as "Address Longitude",
    to_char(sl.physical_address_latitude) as "Physical Latitude",to_char(sl.physical_address_Longitude) as "Physical Longitude",
    decode(rox.habitual, 'Y', 'Habitual', '') as "Habitual",
    decode(rox.aggravated, 'Y', 'Aggravated', '') as "Aggravated",
    rox.status as "Registration Status",
    rox.registration_date as "Registration Date",
    rox.end_registration_date as "End Registration Date"
    from sor_location sl, sor_offender so, registration_offender_xref rox, sor_last_locn_v sllv
    where rox.offender_id=so.offender_id
    and sllv.offender_id(+)=so.offender_id
    and sl.location_id(+)=sllv.location_id
    and rox.status not in ('Merged')
    and rox.reg_type_id=1
    and upper(rox.status)='ACTIVE'
    and nvl(rox.admin_validated, to_date(1,'J'))>=nvl(rox.entry_date, to_date(1,'J'))
    and (((select sc11.description from sor_code sc11 where sc11.code_id=so.race and sc11.description=:P5_SL_RACE) is not null ) or (:P5_SL_RACE is null))
    and (((select sc12.description from sor_code sc12 where sc12.code_id=so.sex and sc12.description=:P5_SL_SEX) is not null ) or (:P5_SL_SEX is null))
    and (((select sc13.description from sor_code sc13 where sc13.code_id=so.hair_color and sc13.description=:P5_SL_HAIR_COLOR) is not null ) or (:P5_SL_HAIR_COLOR is null))
    and (((select sc14.description from sor_code sc14 where sc14.code_id=so.eye_color and sc14.description=:P5_SL_EYE_COLOR) is not null ) or (:P5_SL_EYE_COLOR is null))
    and (( so.offender_id in(select sm.offender_id from sor_code sc15, sor_mark sm, sor_offender so1 where sm.offender_id=so1.offender_id and sc15.code_id=sm.code and sc15.description=:P5_SL_OTHER_MARKS and sm.description is not null)) or (:P5_SL_OTHER_MARKS is null))

    My suggestion would be to put some instrumentation into your query and see what values you are using.. Or even simpler take out ALL the where clauses you can until data starts to sho wup and then add them back in one at a time until you find the culprit..
    My bet would be on any date comparisons you are doing between page items and database columns..
    Thank you,
    Tony Miller
    Dallas, TX

  • Query returns record in SQL Developer but not in iSQLPlus

    ... back in a minute, I may not have done a commit at the end of the insert.
    The problem I was having was I hadnt commited the record in SQL Developer but the queries where returning records in this environment but not in iSQLPlus or Apex and it was confusing me.
    Message was edited by:
    Benton
    Message was edited by:
    Benton

    Finally got to know the reason why Timezone Abbr woudn't show up in SQL Plus.
    I ran below query in SQL PLUS
    SELECT SESSIONTIMEZONE, CURRENT_TIMESTAMP, systimestamp, LOCALTIMESTAMP FROM DUAL;
    SESSIONTIMEZONE CURRENT_TIMESTAMP SYSTIMESTAMP LOCALTIMESTAMP
    -05:00 08-SEP-12 12.00.31.575228 AM -05:00 08-SEP-12 12.00.31.575223 AM -05:00 08-SEP-12 12.00.31.575228 AM
    Now executed the same query in SQL Developer:
    SESSIONTIMEZONE CURRENT_TIMESTAMP SYSTIMESTAMP LOCALTIMESTAMP
    America/Chicago     08-SEP-12 12.08.32.072424000 AM AMERICA/CHICAGO     08-SEP-12 12.08.32.072420000 AM -05:00     08-SEP-12 12.08.32.072424000 AM
    The difference between the 2 outputs is the way in which time_zones were respresented. In SQL PLUS, it is shown as an offset whereas in SQL Developer as a time zone region name. Now there are many "time sone regions" that follow an offset of -5:00. This confuses Oracle and a "UNK"(Unknown) for a query like the one below when trying to execute in SQL PLUS:
    select extract(timezone_abbr from from_tz(cast(sysdate as timestamp),SESSIONTIMEZONE)) from dual;
    EXTRACT(TI
    UNK
    Therefore we need to specify the exact Time Zone Region(TZR) in order to obtain the corresponding TZD(Daylight Savings Format i.e. CDT or CST). This we do by altering the session environment vaiable time_zone
    alter session set time_zone='America/Chicago';
    Now executing the queries to find the abbreviated time zone( in TZD format) will finally work to return a non-null char value.
    select extract(timezone_abbr from from_tz(cast(sysdate as timestamp),SESSIONTIMEZONE)) from dual;
    EXTRACT(TI
    CDT
    select to_char(CURRENT_TIMESTAMP, 'TZD') from dual;
    TO_CHA
    CDT

  • Why does SQL Developer sometimes not allow me to "Disconnect"?

    Sometimes when I'm ready to close SQL Developer, I try to get out gracefully, but the "Disconnect" option for the only connection I have open is greyed out. Why? The only option I know then is to close SQL Developer by clicking the "x" in the upper, right corner.
    My version of SQL Developer is a bit old: I have SQL Developer 2.1.0.63. We have an Oracle11.1.0.7 database. I have a 64-bit Windows7 desktop. I think my Java version is also a bit old, but it seems to be compatible with the EBS R12.0.6 application that I need to support. I'm not a Java expert. If I go to a C:\ prompt, and type: "java -version", It returns: "1.4.2_04".

    Actually, I think the link Alessandro posted is helpful. I cannot reproduce the behavior on Win XP, but can on Linux (somewhat). That is, Properties gets greyed out at times, but not Disconnect or Apply Filter. Retrying the right-click resolves the problem, as he notes.
    So I assume my point (1) would be more nearly correct if restated as "Bug or timing issue".
    As for (3), I really cannot give a good example. If I open a Tool menu item like Monitor SQL or Monitor Sessions on, say, the SYSTEM user, the Disconnect option is not greyed out and if used will close all the open windows for that connection. If I run Debug on a package/procedure/function, Disconnect also remains enabled. Clicking on it produces a "Cannot Disconnect" dialog warning with this text: "The database connection cannot be closed while an active debugging session exists". Perhaps I'm mistaken entirely, or just confused after seeing that behavior on some older version of SQL Developer
    -Gary

  • Can SQL Developer control versioning of stored functions and procedures?

    Hi all. I have a problem with my project, for developing Oracle functions and procedures. My team want to control versioning of that.
    I found that Oracle SQL Developer support versioning features with CVS and Subversion. But I think it just about the files not functions and procedures.
    We don't want to control version of files and copy it to stored somethings..
    Do you have any idea?
    Thanks for reading this post.

    Since K asked :)
    Both SQL Navigator and Toad for Oracle support controlling PL/SQL at the FILE and DATABASE level.
    [Controlling Objects in the Database with Toad|http://www.toadworld.com/BLOGS/tabid/67/EntryID/136/Default.aspx]

  • Sql Developer Launcher Not Working In Linux

    Hello,
    System Details:
    Fedora 19
    Sql Developer Version: Version 4.0.0.12
    Java Version:  OpenJDK 1.7.0-40
    I can launch Sql Developer from the command line successfully.
    /opt/sqldeveloper/sqldeveloper.sh
    But when I attempt to use the launcher icon, I receive a SIGSEGV error.  Here is the top of the hs_error.log file.
    # A fatal error has been detected by the Java Runtime Environment:
    #  SIGSEGV (0xb) at pc=0x000000317a062e00, pid=7680, tid=140636646749952
    # JRE version: OpenJDK Runtime Environment (7.0_40-b60) (build 1.7.0_40-mockbuild_2013_10_02_16_56-b00)
    # Java VM: OpenJDK 64-Bit Server VM (24.0-b56 mixed mode linux-amd64 compressed oops)
    # Problematic frame:
    # C  0x000000317a062e00
    The ~/.sqldeveloper/jdk file contains the following:
    /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.2.7.fc19.x86_64
    And my /usr/share/applications/sqldeveloper.desktop file contains the following:
    [Desktop Entry]
    Encoding=UTF-8
    Name=SQL Developer
    Comment=Oracle SQL Developer
    Icon=/opt/sqldeveloper/icon.png
    Exec=/opt/sqldeveloper/sqldeveloper.sh
    Terminal=true
    Type=Application
    Categories=GNOME;Oracle;
    I'm just switching from Ubuntu to Fedora so this has not worked in the past.
    Thank you for any help,
    Ann

    The solution in https://forums.oracle.com/thread/2594033 worked.  I added the 2nd line below to /opt/sqldeveloper/sqldeveloper.sh.
    #!/bin/bash
    unset -v GNOME_DESKTOP_SESSION_ID
    cd "`dirname $0`"/sqldeveloper/bin && bash sqldeveloper $*
    Previously, I incorrectly updated ~/.bashrc to unset GNOME_DESKTOP_SESSION_ID.  That's why running Sql Developer from the command line worked, but not from the launcher.
    Thanks su.

  • SQL Query works in SQL Developer, but not always in MII

    Hi all,
    I encountered a strange behaviour with a query in MII 12.0.2. Maybe someone has a guess what happens.
    I have created a SQL query which runs against Oracle 10g tables. I have tested the query using SQL Developer, and it throws a couple of lines, depending on the contents of the where clause.
    Next I have copied the query to a MII SQL Query (FixedQuery). However, the output is empty most of the time, without showing any errors. After some testing I got the impression that older data are not displayed, but there is no time or date setting in MII.
    As the SQL Developer always returns rows, I am unsure where to search for the error.
    Regards
    Michael

    Michael,
    I would imagine that you have sub-select statements in your FixedQuery, all which will fall subject to the RowCount property of the query template (SQL defaults to 100), which is issued through the driver and typically honored by the database when returning the data from your request.
    Most of the native database query tools allow you to make unbound query requests with no limit on rows, which would probably account for the difference between SQL Developer and the query template.
    For SQLServer it's ROWCOUNT:  http://msdn.microsoft.com/en-us/library/ms188774.aspx
    For Oracle it's ROWNUM:  http://www.oracle.com/technology/oramag/oracle/06-sep/o56asktom.html
    So the answer would be not to make the query template row count some rediculous number, but more appropriately refine the way that the database request is issued.
    Regards,
    Jeremy

  • Query works in SQL Developer but not in Oracle APEX

    The query below runs and produces the correct result in SQL Developer, but when I try to put it into a PL/SQL process in Apex I get the error shown. There is no semi-colon at the end of the query in APEX.
    The error is:
    ORA-06550: line 10, column 54: PL/SQL: ORA-00933: SQL command not properly ended ORA-06550: line 2, column 1: PL/SQL: SQL Statement ignored ORA-06550: line 11, column 21: PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following: ( begin case declare end exception exit for goto if loop mod null pragma raise return select update while with.
    The query is:
    SELECT *
    FROM
    (SELECT *
    from T3_LEADS
    WHERE
    (SYSDATE - Last_Mailed_Date) > 60 OR Last_Mailed_Date is null
    WHERE MARKET_ID = 'Salt_Lake_City' AND rownum <= 100

    That is because when you run a SQL in SQL*Plus or SQLDeveloper the output is displayed on the screen, but in Apex you need to select those values into variables so you can do something with the data.
    delcare
      v_emp_id    employee.emp_id%type;
    begin
      select emp_id
        into v_emp_id
        from employee
      where lname = 'JOHNSON' and fname = 'BILLY';
      -- Then do something with that data
      if v_emp_id between 1 and 10 then
      end if;
    end;Probably a bad SQL for an example. For your SQL though, you are selecting * which you would be able to select into a rowtype variable, but you are probably going to start having problems like "Exact fetch returns more that one row" since your query will probably return more that one value. In those cases you want to use cursors, and loop through the data one record at a time. You can Google all of that.

  • Why will a query work in SQL Developer but not in Apex?

    Here's a good one. I created a dynamic LOV with the following query.
    select
    e.DESCR d,
    ee.ENTRD_EVNT_SK r
    from
    PT_EVNT_IN_DIV eid,
    PT_ENTRD_EVNT ee,
    PT_EVNT e
    where ee.PGNT_SK = :PGNT_SK
    and ee.CNTSNT_SK = :CNTSNT_SK
    and ee.EVNT_IN_DIV_SK = eid.EVNT_IN_DIV_SK
    and eid.EVNT_SK = e.EVNT_SK
    and ee.ENTRD_EVNT_SK not in
    (select js.ENTRD_EVNT_SK
    from PT_JDG_SCR js
    where js.JDG_SK = :JDG_SK
    and js.PGNT_SK = :ai_pgnt_sk
    and js.CNTSNT_SK = :CNTSNT_SK)
    order by 1
    The query works fine in SQL Developer, but Apex gives the following error when compiling it in the LOV editor.
    "1 error has occurred
    - LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query."
    I tried rearranging the entries in the From clause, but that didn't do any good.
    Do you see what I can do to make Apex accept it?
    Thanks,
    Kim

    Kim
    Kim2012 wrote:
    select
    e.DESCR d,
    ee.ENTRD_EVNT_SK r
    from
    PT_EVNT_IN_DIV eid,
    PT_ENTRD_EVNT ee,
    PT_EVNT e
    where ee.PGNT_SK = :PGNT_SK
    and ee.CNTSNT_SK = :CNTSNT_SK
    and ee.EVNT_IN_DIV_SK = eid.EVNT_IN_DIV_SK
    and eid.EVNT_SK = e.EVNT_SK
    and ee.ENTRD_EVNT_SK not in
    (select js.ENTRD_EVNT_SK
    from PT_JDG_SCR js
    where js.JDG_SK = :JDG_SK
    and js.PGNT_SK = :ai_pgnt_sk
    and js.CNTSNT_SK = :CNTSNT_SK)
    order by 1
    The column named ENTRD_EVNT_SK is used twice in a select. Once in the main select and once in the inline query.
    The validation maybe choking on that.
    Try giving the column in the inline query an alias and see if that helps.
    Nicolette

Maybe you are looking for

  • Acrobat 9 Pro Slow opening and closing pdf files - "Not Responding"

    I was responsible for pushing to get and keep 25 enterprises licenses for Adobe Acrobat Pro Vers 9. Corporate is pushing Blue Beam! We are on Acrobat Pro Vers. 9.3.1. Windows XP Pro 32 bit OS.  (PCs and laptops 1 - 3 years old, min 2 GB RAM, 2.1 GHz

  • Sales Order Stock not shown Accounting View

    Dear All, We have STO scenario.  We created a Production Order against a  sales order,after completion of the Prod. Order we made 101 movement. When  we run the report MMBE we are able to see the stock quantity ( 1 unit) in the relevant storage locat

  • Can't preview video file in Organizer?

    Using trial version of Elements and can preview videos. When I switch to Organizer to preview, tag, etc., the screen is black. When I click play, it begins to play but nothing is there. 

  • How to configure HR Administrator

    Hi, I am going to deploy BP - HR Administrator in Portal 7.0. Could any of you please guide me with some documents explaining the process right from the beginning? Greatly appreciate your inputs. Thanks. Venkat

  • Upgrade failed, it corrupt my Firefox and now won't open at all???

    I just received a notice this a.m. to upgrade Firefox. I accept it and followed the defaults. Now, FF won't open at all.