بتاريخ: 14 أبريل 200719 سنة comment_97030 i have the table :transactio , dtransthe structure of transaction is (g_no,pro_no,unit,count,amount,exp_date)the structure of dtrans is (g_no,pro_no,unit,count,amount)declarebegingdelete from dtrans;insert into dtrans select g_no,pro_no,unit,sum(count),sum(amount) from transactionwhere to_char(exp_date,'yyyy) = 2006group by g_no , pro_no,unit;end;/الرسالة بتقول not asingle-group group functionعلما بان نفس عملية الادخال تتم بنجاح اذا اجريتها فى الsql وتفشل عند كتابتها فى plsql blockارجو المساعدة تقديم بلاغ
بتاريخ: 14 أبريل 200719 سنة comment_97042 اخى الكريم زود group by count,group by amountوشوف ايه النتيجة تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.