20 lines
409 B
SQL
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 |