Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SELECT Query

Former Member
0 Likes
465

Hello all,

I am trying to select a list of leavers from our HR system :

 
  SELECT * 
    FROM pa0000 
   WHERE aedtm > begda         " Backdated leavers 
     AND massn = '54'.         " Leaver 

I want to select people where the date entered on the system i.e. AEDTM

is greater than the actual leave date.

However, typing in the code above gives me the error

'Field "BEGDA" is unknown. It is neither in one of the specified tables'

I guess it is expecting a user defined variable instead of another database

column name.

Does anybody know how I can around this??

i.e. compare one database field against another one

Many thanks

Andy

1 ACCEPTED SOLUTION
Read only

former_member182670
Contributor
0 Likes
434
WHERE pa0000~aedtm > pa0000~begda
2 REPLIES 2
Read only

former_member182670
Contributor
0 Likes
435
WHERE pa0000~aedtm > pa0000~begda
Read only

0 Likes
434

doh !!!!

Thanks Tomek, uch appreciated