refactor
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
select f_lwlawid, count(*)
|
||||
from lwlawtext
|
||||
group by f_lwlawid
|
||||
order by COUNT(*) desc
|
||||
|
||||
|
||||
select * from lwlaw
|
||||
where id not in
|
||||
(select f_lwlawid from lwlawtext)
|
||||
|
||||
|
||||
|
||||
select l1.*,lp.* from lwlawtext l1 left join lwphase lp on l1.f_lwphaseid=lp.id
|
||||
where l1.f_lwlawid = 2016487
|
||||
Reference in New Issue
Block a user