Hi Everyone,
Below is my sql command, now I want that this command should return the result only where the pay period end date is in the year 2007.
---------------------------------------------------
SELECT al.process_level,al.deptname,al.first_name,al.last_name,al.emp_status,al.fte_total,prt.employee,prt.hours
FROM lrsuser.v_associatelist al,lawson.prtime prt
where prt.company=al.company
AND
prt.employee=al.employee
AND
al.group_name='G:ACTIVE'
AND
prt.pay_sum_grp IN ('FLP','PTS','PTU')
AND
al.emp_status IN ('CF','E9','EF','N9','NF','CA','EA','NA','CB','EB','NB');
---------------------------------------------------------
In the database I have a datefield as prt.per_end_date. Please let me know how to do this in AND clause.
Please help.
Thank You!!
Below is my sql command, now I want that this command should return the result only where the pay period end date is in the year 2007.
---------------------------------------------------
SELECT al.process_level,al.deptname,al.first_name,al.last_name,al.emp_status,al.fte_total,prt.employee,prt.hours
FROM lrsuser.v_associatelist al,lawson.prtime prt
where prt.company=al.company
AND
prt.employee=al.employee
AND
al.group_name='G:ACTIVE'
AND
prt.pay_sum_grp IN ('FLP','PTS','PTU')
AND
al.emp_status IN ('CF','E9','EF','N9','NF','CA','EA','NA','CB','EB','NB');
---------------------------------------------------------
In the database I have a datefield as prt.per_end_date. Please let me know how to do this in AND clause.
Please help.
Thank You!!