Hi,
I needed to change part of my query to use a date field now I can't get it to work:
This is the original (works)
select left(substring(pehPErcontrol,5,len(pehPErcontrol)),2) as name from pearhist
This one no work:
select left(substring(cast (pehpaydate as varchar)(pehpaydate,5,len(pehpaydate)),2) as name from pearhist