Files
init_dataParser/_queryies/amar.sql
T
2024-09-14 10:32:42 +03:30

20 lines
409 B
SQL

select co.CAPTION
,count(*)
from lwlaw l
left join cmorganization co on l.[F_CMORGANIZATIONIDApprover]=co.id
group by co.CAPTION
order by count(*) desc
select co.CAPTION
,count(*)
from lwlawtext l1 left join lwlaw l on l1.f_lwlawid=l.id
left join cmorganization co on l.[F_CMORGANIZATIONIDApprover]=co.id
group by co.CAPTION
order by count(*) desc
select * from lwlawtext
where txt is not null