Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. ASP.net With Oracle

ASP.net With Oracle

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netdatabaseoracle
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sandhya14
    wrote on last edited by
    #1

    Hi all..... This is my oracle statement...while executing its giving an error: 21/29 PL/SQL: ORA-00923: FROM keyword not found where expected please help me to solve this issue.. its urgent... create or replace PROCEDURE PEAP_SelectEmpAppraiser ( AppraiserID IN VARCHAR2 DEFAULT NULL, Cur_RCT1 OUT GLOBALPKG.RCT1 ) AS BEGIN EXECUTE IMMEDIATE 'TRUNCATE TABLE PEAP_SelectEmployeesByApr'; INSERT INTO PEAP_SelectEmployeesByApr SELECT emp_code AS EmployeeID, emp_code || ' ' || l_name || ' ' || f_name AS SurNameFirstName FROM emp_master WHERE (Appraiser = PEAP_SelectEmpAppraiser.AppraiserID); Insert into PEAP_SelectEmployeesByApr SELECT emp_code as EmployeeID ,emp_code || ' ' || l_Name || ' ' || f_Name AS SurNameFirstName FROM emp_master WHERE ( Reporting_To = PEAP_SelectEmpAppraiser.AppraiserID) and isnull ( Appraiser , '') = '' and emp_code not in ( select EmployeeID from PEAP_SelectEmployeesByApr); OPEN Cur_RCT1 FOR SELECT DISTINCT EmployeeID, SurNameFirstName FROM PEAP_SelectEmployeesByApr; END; /

    C S 2 Replies Last reply
    0
    • S sandhya14

      Hi all..... This is my oracle statement...while executing its giving an error: 21/29 PL/SQL: ORA-00923: FROM keyword not found where expected please help me to solve this issue.. its urgent... create or replace PROCEDURE PEAP_SelectEmpAppraiser ( AppraiserID IN VARCHAR2 DEFAULT NULL, Cur_RCT1 OUT GLOBALPKG.RCT1 ) AS BEGIN EXECUTE IMMEDIATE 'TRUNCATE TABLE PEAP_SelectEmployeesByApr'; INSERT INTO PEAP_SelectEmployeesByApr SELECT emp_code AS EmployeeID, emp_code || ' ' || l_name || ' ' || f_name AS SurNameFirstName FROM emp_master WHERE (Appraiser = PEAP_SelectEmpAppraiser.AppraiserID); Insert into PEAP_SelectEmployeesByApr SELECT emp_code as EmployeeID ,emp_code || ' ' || l_Name || ' ' || f_Name AS SurNameFirstName FROM emp_master WHERE ( Reporting_To = PEAP_SelectEmpAppraiser.AppraiserID) and isnull ( Appraiser , '') = '' and emp_code not in ( select EmployeeID from PEAP_SelectEmployeesByApr); OPEN Cur_RCT1 FOR SELECT DISTINCT EmployeeID, SurNameFirstName FROM PEAP_SelectEmployeesByApr; END; /

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      This is complex enough that I would break it down. Type it in one part at a time until you find where the error is. This also has nothing to do with ASP.NET, so it belongs in the SQL forum.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      1 Reply Last reply
      0
      • S sandhya14

        Hi all..... This is my oracle statement...while executing its giving an error: 21/29 PL/SQL: ORA-00923: FROM keyword not found where expected please help me to solve this issue.. its urgent... create or replace PROCEDURE PEAP_SelectEmpAppraiser ( AppraiserID IN VARCHAR2 DEFAULT NULL, Cur_RCT1 OUT GLOBALPKG.RCT1 ) AS BEGIN EXECUTE IMMEDIATE 'TRUNCATE TABLE PEAP_SelectEmployeesByApr'; INSERT INTO PEAP_SelectEmployeesByApr SELECT emp_code AS EmployeeID, emp_code || ' ' || l_name || ' ' || f_name AS SurNameFirstName FROM emp_master WHERE (Appraiser = PEAP_SelectEmpAppraiser.AppraiserID); Insert into PEAP_SelectEmployeesByApr SELECT emp_code as EmployeeID ,emp_code || ' ' || l_Name || ' ' || f_Name AS SurNameFirstName FROM emp_master WHERE ( Reporting_To = PEAP_SelectEmpAppraiser.AppraiserID) and isnull ( Appraiser , '') = '' and emp_code not in ( select EmployeeID from PEAP_SelectEmployeesByApr); OPEN Cur_RCT1 FOR SELECT DISTINCT EmployeeID, SurNameFirstName FROM PEAP_SelectEmployeesByApr; END; /

        S Offline
        S Offline
        sandhya14
        wrote on last edited by
        #3

        SELECT emp_code as EmployeeID ,emp_code || ' ' || l_Name || ' ' || f_Name AS SurNameFirstName FROM emp_master WHERE ( Reporting_To = PEAP_SelectEmpAppraiser.AppraiserID) and isnull ( Appraiser , '') = '' and emp_code not in ( select EmployeeID collate database_default from PEAP_SelectEmployeesByApr) Error: PL/SQL: ORA-00923: FROM keyword not found where expected

        C R 2 Replies Last reply
        0
        • S sandhya14

          SELECT emp_code as EmployeeID ,emp_code || ' ' || l_Name || ' ' || f_Name AS SurNameFirstName FROM emp_master WHERE ( Reporting_To = PEAP_SelectEmpAppraiser.AppraiserID) and isnull ( Appraiser , '') = '' and emp_code not in ( select EmployeeID collate database_default from PEAP_SelectEmployeesByApr) Error: PL/SQL: ORA-00923: FROM keyword not found where expected

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Why do you need collate database_default ? What if you remove it ? You really should move this to the right forum. And if you want to reply to me, you should reply to me, not to yourself.

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          S 1 Reply Last reply
          0
          • S sandhya14

            SELECT emp_code as EmployeeID ,emp_code || ' ' || l_Name || ' ' || f_Name AS SurNameFirstName FROM emp_master WHERE ( Reporting_To = PEAP_SelectEmpAppraiser.AppraiserID) and isnull ( Appraiser , '') = '' and emp_code not in ( select EmployeeID collate database_default from PEAP_SelectEmployeesByApr) Error: PL/SQL: ORA-00923: FROM keyword not found where expected

            R Offline
            R Offline
            r a m e s h
            wrote on last edited by
            #5

            sandhya14 wrote:

            SELECT emp_code as EmployeeID ,emp_code || ' ' || l_Name || ' ' || f_Name AS SurNameFirstName FROM emp_master WHERE ( Reporting_To = PEAP_SelectEmpAppraiser.AppraiserID) and isnull ( Appraiser , '') = '' and emp_code not

            I assume that the Reporting_To, Appraiser and emp_code columns belong to emp_master table. Also you are comparing Reporting_To column to the column of PEAP_SelectEmpAppraiser table. But this table is not in the FROM clause.

            1 Reply Last reply
            0
            • C Christian Graus

              Why do you need collate database_default ? What if you remove it ? You really should move this to the right forum. And if you want to reply to me, you should reply to me, not to yourself.

              Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

              S Offline
              S Offline
              sandhya14
              wrote on last edited by
              #6

              can u just tel me which forum i should post this message?... and if i remove collate database_default am getting this error: PL/SQL: ORA-00933: SQL command not properly ended

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups