I think Wade is correct...Try something like this - it should work but I don't know with as400:declare @yak table (id int, datecol int, timecol int)insert @yakselect 1, 20090707,111111 union allselect 2, 20090707,222222 union allselect 3, 20090709,111111 union allselect 4, 20090710,222222--select * from @yakselect * from @yak where convert(varchar(8),datecol)+convert(varchar(6),timecol) > '20090707222222'
No, you're never too old to Yak'n'Roll if you're too young to die.