Something like this:
select * from EmpTable into cursor CX where EMPNO = nEmp ;
and KDATE = dShift and SHIFTNO = nShift
if reccount(CX) = 0
*-- then he's not there
In other words, forget about the VFP concatenations, just ask the
question field by field.
Dan Covill
San Diego
On 09/21/11 05:37, Ajoy Khaund wrote:
> Hi,
>
> I have a composite key in VFP like
>
> Padl(empno,4,'0') + DTOS(kdate) + Str(shiftno,1)
>
> I use this index to do a seek to find out if a record exists for a particular
> employee on a particular date in a particular shift.
>
> How can I do that in sql. I am going to use cursor adaptors.
>
> TIA
>
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.