query_address.fmt 729 B

123456789101112131415161718
  1. select x.address as address from (
  2. select address from db_price_community where houses=:houses
  3. union all
  4. select distinct deal.address from data_data_qiyu_deal deal where deal.houses=:houses
  5. union all
  6. select distinct up.address from data_data_qiyu_up up where up.houses=:houses
  7. union all
  8. select distinct address from db_data_lianjia lj where lj.houses=:houses
  9. union all
  10. select distinct address from db_data_lianjia_up lj where lj.houses=:houses
  11. union all
  12. select distinct o.address from db_data_order o where o.houses=:houses
  13. union all
  14. select distinct o.address from ds_guide_price o where o.houses=:houses
  15. ) x
  16. where x.address is not null
  17. group by x.address
  18. order by address desc