Declare @Cpny [char](10) select @Cpny ='CpnyId' select * from Account where not Acct in (select distinct Acct from GLTRan where CpnyId = @Cpny) Change the value for Parameter @Cpny to your Company Id You will get a list of accounts unused for that Company Ray
↧