select rtrim(char(number+48)) a into #tb from dbo.spt_values where type='P' and number<10
union all
select char(number+97) from dbo.spt_values where type='p' and number<26
select a.a+b.a+c.a from #tb a,#tb b,#tb c where a.a+b.a+c.a>'000'
order by 1
select rtrim(char(number+48)) a into #tb from dbo.spt_values where type='P' and number<10
union all
select char(number+97) from dbo.spt_values where type='p' and number<26
select a.a+b.a+c.a from #tb a,#tb b,#tb c where ascii(c.a)>48
order by 1