Changes between Version 13 and Version 14 of usefulQueries


Ignore:
Timestamp:
10/28/2019 01:39:34 PM (6 years ago)
Author:
volodya
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • usefulQueries

    v13 v14  
    406406}}}
    407407
    408 }}}
     408== [=#point9] Деактивувати постачальників по яким не було жодного приходу ==
     409
     410{{{
     411update t_clients set is_active = 0 where clients_id > 100 and
     412    clients_id not in
     413(
     414select distinct clients_id as id from t_documents where typedoc_id != 11
     415union
     416select distinct objects_id as id from t_documents where typedoc_id != 11
     417 )
     418}}}
     419
     420}}}
Copyright by "ПК Конкурент"®