select count(*) as num from tb_snoir_specific_price sp where id_product = 4556 AND from_quantity < 2 AND (sp.from = "0000-00-00 00:00:00" OR s.from < "2020-02-29 8:43:14") AND (sp.to = "0000-00-00 00:00:00" OR sp.to > "2020-02-29 8:43:14")select count(*) as num from tb_snoir_specific_price sp where id_product = 4555 AND from_quantity < 2 AND (sp.from = "0000-00-00 00:00:00" OR s.from < "2020-02-29 8:43:14") AND (sp.to = "0000-00-00 00:00:00" OR sp.to > "2020-02-29 8:43:14")select count(*) as num from tb_snoir_specific_price sp where id_product = 4554 AND from_quantity < 2 AND (sp.from = "0000-00-00 00:00:00" OR s.from < "2020-02-29 8:43:14") AND (sp.to = "0000-00-00 00:00:00" OR sp.to > "2020-02-29 8:43:14")select count(*) as num from tb_snoir_specific_price sp where id_product = 4553 AND from_quantity < 2 AND (sp.from = "0000-00-00 00:00:00" OR s.from < "2020-02-29 8:43:14") AND (sp.to = "0000-00-00 00:00:00" OR sp.to > "2020-02-29 8:43:14")select count(*) as num from tb_snoir_specific_price sp where id_product = 4410 AND from_quantity < 2 AND (sp.from = "0000-00-00 00:00:00" OR s.from < "2020-02-29 8:43:14") AND (sp.to = "0000-00-00 00:00:00" OR sp.to > "2020-02-29 8:43:14")select count(*) as num from tb_snoir_specific_price sp where id_product = 4409 AND from_quantity < 2 AND (sp.from = "0000-00-00 00:00:00" OR s.from < "2020-02-29 8:43:14") AND (sp.to = "0000-00-00 00:00:00" OR sp.to > "2020-02-29 8:43:14")select count(*) as num from tb_snoir_specific_price sp where id_product = 4408 AND from_quantity < 2 AND (sp.from = "0000-00-00 00:00:00" OR s.from < "2020-02-29 8:43:14") AND (sp.to = "0000-00-00 00:00:00" OR sp.to > "2020-02-29 8:43:14")select count(*) as num from tb_snoir_specific_price sp where id_product = 4407 AND from_quantity < 2 AND (sp.from = "0000-00-00 00:00:00" OR s.from < "2020-02-29 8:43:14") AND (sp.to = "0000-00-00 00:00:00" OR sp.to > "2020-02-29 8:43:14")select count(*) as num from tb_snoir_specific_price sp where id_product = 4151 AND from_quantity < 2 AND (sp.from = "0000-00-00 00:00:00" OR s.from < "2020-02-29 8:43:14") AND (sp.to = "0000-00-00 00:00:00" OR sp.to > "2020-02-29 8:43:14")select count(*) as num from tb_snoir_specific_price sp where id_product = 4117 AND from_quantity < 2 AND (sp.from = "0000-00-00 00:00:00" OR s.from < "2020-02-29 8:43:14") AND (sp.to = "0000-00-00 00:00:00" OR sp.to > "2020-02-29 8:43:14")select count(*) as num from tb_snoir_specific_price sp where id_product = 4119 AND from_quantity < 2 AND (sp.from = "0000-00-00 00:00:00" OR s.from < "2020-02-29 8:43:14") AND (sp.to = "0000-00-00 00:00:00" OR sp.to > "2020-02-29 8:43:14")select count(*) as num from tb_snoir_specific_price sp where id_product = 4118 AND from_quantity < 2 AND (sp.from = "0000-00-00 00:00:00" OR s.from < "2020-02-29 8:43:14") AND (sp.to = "0000-00-00 00:00:00" OR sp.to > "2020-02-29 8:43:14")select count(*) as num from tb_snoir_specific_price sp where id_product = 4116 AND from_quantity < 2 AND (sp.from = "0000-00-00 00:00:00" OR s.from < "2020-02-29 8:43:14") AND (sp.to = "0000-00-00 00:00:00" OR sp.to > "2020-02-29 8:43:14")select count(*) as num from tb_snoir_specific_price sp where id_product = 4115 AND from_quantity < 2 AND (sp.from = "0000-00-00 00:00:00" OR s.from < "2020-02-29 8:43:14") AND (sp.to = "0000-00-00 00:00:00" OR sp.to > "2020-02-29 8:43:14")select count(*) as num from tb_snoir_specific_price sp where id_product = 4114 AND from_quantity < 2 AND (sp.from = "0000-00-00 00:00:00" OR s.from < "2020-02-29 8:43:14") AND (sp.to = "0000-00-00 00:00:00" OR sp.to > "2020-02-29 8:43:14")select count(*) as num from tb_snoir_specific_price sp where id_product = 4113 AND from_quantity < 2 AND (sp.from = "0000-00-00 00:00:00" OR s.from < "2020-02-29 8:43:14") AND (sp.to = "0000-00-00 00:00:00" OR sp.to > "2020-02-29 8:43:14")select count(*) as num from tb_snoir_specific_price sp where id_product = 4112 AND from_quantity < 2 AND (sp.from = "0000-00-00 00:00:00" OR s.from < "2020-02-29 8:43:14") AND (sp.to = "0000-00-00 00:00:00" OR sp.to > "2020-02-29 8:43:14")select count(*) as num from tb_snoir_specific_price sp where id_product = 4111 AND from_quantity < 2 AND (sp.from = "0000-00-00 00:00:00" OR s.from < "2020-02-29 8:43:14") AND (sp.to = "0000-00-00 00:00:00" OR sp.to > "2020-02-29 8:43:14")select count(*) as num from tb_snoir_specific_price sp where id_product = 3805 AND from_quantity < 2 AND (sp.from = "0000-00-00 00:00:00" OR s.from < "2020-02-29 8:43:14") AND (sp.to = "0000-00-00 00:00:00" OR sp.to > "2020-02-29 8:43:14")select count(*) as num from tb_snoir_specific_price sp where id_product = 3804 AND from_quantity < 2 AND (sp.from = "0000-00-00 00:00:00" OR s.from < "2020-02-29 8:43:14") AND (sp.to = "0000-00-00 00:00:00" OR sp.to > "2020-02-29 8:43:14")select count(*) as num from tb_snoir_specific_price sp where id_product = 3694 AND from_quantity < 2 AND (sp.from = "0000-00-00 00:00:00" OR s.from < "2020-02-29 8:43:14") AND (sp.to = "0000-00-00 00:00:00" OR sp.to > "2020-02-29 8:43:14")select count(*) as num from tb_snoir_specific_price sp where id_product = 3583 AND from_quantity < 2 AND (sp.from = "0000-00-00 00:00:00" OR s.from < "2020-02-29 8:43:14") AND (sp.to = "0000-00-00 00:00:00" OR sp.to > "2020-02-29 8:43:14")select count(*) as num from tb_snoir_specific_price sp where id_product = 3586 AND from_quantity < 2 AND (sp.from = "0000-00-00 00:00:00" OR s.from < "2020-02-29 8:43:14") AND (sp.to = "0000-00-00 00:00:00" OR sp.to > "2020-02-29 8:43:14")select count(*) as num from tb_snoir_specific_price sp where id_product = 3585 AND from_quantity < 2 AND (sp.from = "0000-00-00 00:00:00" OR s.from < "2020-02-29 8:43:14") AND (sp.to = "0000-00-00 00:00:00" OR sp.to > "2020-02-29 8:43:14")select count(*) as num from tb_snoir_specific_price sp where id_product = 3584 AND from_quantity < 2 AND (sp.from = "0000-00-00 00:00:00" OR s.from < "2020-02-29 8:43:14") AND (sp.to = "0000-00-00 00:00:00" OR sp.to > "2020-02-29 8:43:14")select count(*) as num from tb_snoir_specific_price sp where id_product = 3582 AND from_quantity < 2 AND (sp.from = "0000-00-00 00:00:00" OR s.from < "2020-02-29 8:43:14") AND (sp.to = "0000-00-00 00:00:00" OR sp.to > "2020-02-29 8:43:14")
Array
(
)