Can someone explain why I'm getting the error below?
Thanks.
[SQL]: select ts,tr.loc_n,bus,route,ttp,grp,des,seq,tpbc
from tr, ppd
where ts >= '2013-05-01 04:00:00.000' and ts <= '2013-06-01 03:59:00.000'
and tr.loc_n=ppd.loc_n
and tr.id-ppd.id
and tr.tr_seq=ppd.tr_seq
and ttp in (2)
and tpbc in (3)
order by ts
[Error]: SQLSTATE = 42000
Microsoft SQL Server Native Client 10.0
An expression of non-boolean type specified in a context where a condition is expected, near 'and'.
select ts,tr.loc_n,bus,route,ttp,grp,des,seq,tpbc from tr, ppd where ts >= '2013-05-01 04:00:
Thanks.
[SQL]: select ts,tr.loc_n,bus,route,ttp,grp,des,seq,tpbc
from tr, ppd
where ts >= '2013-05-01 04:00:00.000' and ts <= '2013-06-01 03:59:00.000'
and tr.loc_n=ppd.loc_n
and tr.id-ppd.id
and tr.tr_seq=ppd.tr_seq
and ttp in (2)
and tpbc in (3)
order by ts
[Error]: SQLSTATE = 42000
Microsoft SQL Server Native Client 10.0
An expression of non-boolean type specified in a context where a condition is expected, near 'and'.
select ts,tr.loc_n,bus,route,ttp,grp,des,seq,tpbc from tr, ppd where ts >= '2013-05-01 04:00: