select a.KeyId,
(select COUNT(KeyId) from [DB_zhaocai].[dbo].[DB_ShouCang] where sID=a.KeyId and usertype=1 and usernameid=16) sc
from [DB_zhaocai].[dbo].[DB_ZBGGO] a
select a.KeyId,
(select COUNT(KeyId) from [DB_zhaocai].[dbo].[DB_ShouCang] where sID=a.KeyId and usertype=1 and usernameid=16) sc
from [DB_zhaocai].[dbo].[DB_ZBGGO] a