IZ
Size: a a a
IZ
VV
AM
AM
AM
IZ
AM
DE
SELECT ((select count(*) from table1) + (select count(*) from table2 where ....)) / (select count(*) from table3 where ...);
АД
table_1.t_sum >= table_2.t_price / 2
в запросе:SELECT table_1.* FROM table_1 LEFT OUTER JOIN table_2 ON table_1.application_id = table_2.id WHERE table_1.application_id = 222 AND table_1.t_sum >= table_2.t_price
DE
table_1.t_sum >= table_2.t_price / 2
в запросе:SELECT table_1.* FROM table_1 LEFT OUTER JOIN table_2 ON table_1.application_id = table_2.id WHERE table_1.application_id = 222 AND table_1.t_sum >= table_2.t_price
АД
DE
АД
DE
DE
АД
SELECT table_1.* FROM table_1 LEFT OUTER JOIN table_2 ON table_1.application_id = table_2.id WHERE table_1.application_id = 222 AND ( table_1.t_sum >= table_2.t_price / 2 )
АД
DE