sql

求一个sql两个表tb1和tb2tb1.a1是一个chartb2.a1是int我需要找的是tb1.a1中前8位中包含有tb2.a1的数据比如

求一个sql
两个表tb1和tb2
tb1.a1是一个char
tb2.a1是int

我需要找的是tb1.a1中前8位中包含有tb2.a1的数据

比如
tb1.a1=00200
tb2.a1=2
就是我要的了

谢谢

[解决办法]
select * from tb1,tb2 where charindex(rtrim(tb2.a1),left(tb1.a1,8))> 0