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. Other Discussions
  3. IT & Infrastructure
  4. Oracle Query

Oracle Query

Scheduled Pinned Locked Moved IT & Infrastructure
helpdatabaseoracle
2 Posts 2 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

    create or replace PROCEDURE PEAP_SelectEmpAppraiser ( AppraiserID IN VARCHAR2 DEFAULT NULL, Cur_RCT1 OUT GLOBALPKG.RCT1 ) AS BEGIN EXECUTE IMMEDIATE 'TRUNCATE TABLE PEAP_SelectEmployeesByApr'; Hi all.... I dont know where to post this issue..so am putting it here ... 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... 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; /

    D 1 Reply Last reply
    0
    • S sandhya14

      create or replace PROCEDURE PEAP_SelectEmpAppraiser ( AppraiserID IN VARCHAR2 DEFAULT NULL, Cur_RCT1 OUT GLOBALPKG.RCT1 ) AS BEGIN EXECUTE IMMEDIATE 'TRUNCATE TABLE PEAP_SelectEmployeesByApr'; Hi all.... I dont know where to post this issue..so am putting it here ... 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... 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; /

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You're looking for the "General Database[^]" forum...

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      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