You were all so helpful yesterday in putting together the following T-SQL statement. Now I am trying to continue and build from there, but this time I only want to use the first two characters of the contents of the LICENSE NUMBER field (in the member table). Can you guys rescue me once again?
Select Member.License_Number, Count(1) 'Count', convert(decimal(5, 2), null) as Percentage
Into #count
from Member,Member_Association
WHERE Member.Member_Number=Member_Association.Member_Number AND Member_Association.Status='a'
Group By License_Number
Order By License_Number Asc
update #count set Percentage = 100.0 * [count]/(select sum([count]) from #count)
select * from #count
drop table #count
THANKS AGAIN!!!!!!!!
Select Member.License_Number, Count(1) 'Count', convert(decimal(5, 2), null) as Percentage
Into #count
from Member,Member_Association
WHERE Member.Member_Number=Member_Association.Member_Number AND Member_Association.Status='a'
Group By License_Number
Order By License_Number Asc
update #count set Percentage = 100.0 * [count]/(select sum([count]) from #count)
select * from #count
drop table #count
THANKS AGAIN!!!!!!!!