Click here to Skip to main content
15,891,621 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL
sql1 := 'select distinct l.displayname,l.Employee_Level as jobprofile from ph_mstlevelmapping l join PH_MstEmployee e
        on e.Employee_Level = l.Employee_Level   where e.Business = '|| Business ||' and e.Unit = '|| Unit ||' and e.Functions = '|| Function1 ||' and e.Department= '|| Department ||' and  e.EmployeeName <> '|| 'Admin' ||' and e.Employee_Level <> ''  order by jobprofile';



What's wrong in this statement can sombody temme.... m gettin this error at runtime

VB
ORA-00936: missing expression
ORA-06512: at "GSFINANCE.USP_GET_JOBPROFILE_4_GOALTEMP", line 40
ORA-06512: at line 15



please help me with this ....!!!!!!
Posted
Comments
nikki88 6-Nov-12 2:17am    
is that all of the code?

1 solution

SQL
sql1 := 'select distinct l.displayname,l.Employee_Level as jobprofile from ph_mstlevelmapping l join PH_MstEmployee e
        on e.Employee_Level = l.Employee_Level
    where e.Business = '|| Business ||' and e.Unit = '|| Unit ||' and  e.Functions = '|| Function1 ||' and e.Department= '|| Department ||' and  e.EmployeeName <> '''|| 'Admin' || ''' and e.Employee_Level <> '' ''  order by jobprofile';
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900