サブクエリprobを使用してテーブルに挿入するためのクエリがあります。サブクエリには2つの列があり、where条件とgroup by句があります。
サブクエリは正常に実行されています。だれか助けてください。plz
クエリ: Account_name はテキスト型です
insert into trial_bal (Account_name,Debit) values (
select convert(text,convert(varchar(max),Accounts)),SUM(ISNULL( Debit,0))-SUM( ISNULL(Credit,0))
from general
where Acount_Type='Assets'
group by convert(varchar(max),Accounts)
);