![]()
![]()
![]()
![]()
codice:sql1="select pl.id as pid,sum(pr.beds) as letto from properties_list pl, estates_list pr where pr.property=pl.id and pl.type=4 order by sum(pr.beds) desc group by pl.id"
in sostanza unisco le due tabelle nel where e poi devono venire fuori ordinati secondo la somma di beds
dove sbaglio?