من برای هر یک از جداول یک دیدگاه view ساختم و از همه دیدگاه ها یک دیدگاه دیگر ساختم و مشکلم فعلا در راحترین شکل حل شده
بنظر میرسه قصد دارین تعداد سطرهای هر جدول را در یک ستون بصورت تفکیک شده نشون بدین
خب نیازی به چندین ویو وجود نداره یک ویو کافی هست. یعنی:
create view cou(stu,tea,sab,les,cla,us,yea)
as select *
from (select count(*) from student) stu(stu),
(select count(*) from teacher) tea(tea),
(select count(*) from sabtnam) sab(sab),
(select count(*) from lesson) les(les),
(select count(*) from class) cla(cla),
(select count(*) from user1) us(us),
(select count(*) from year) yea(yea);
یا حتی ساده تر:
create view cou(stu,tea,sab,les,cla,us,yea) as
select (select count(*) from student),
(select count(*) from teacher),
(select count(*) from sabtnam),
(select count(*) from lesson),
(select count(*) from class),
(select count(*) from user1),
(select count(*) from year);