SELECT o.id, o.date_send, ag.description agency, v.code method FROM basket o JOIN vn2008.Agencias ag ON ag.Id_Agencia = o.agency_id JOIN vn2008.Vistas v ON v.vista_id = o.delivery_method_id SELECT item_id, warehouse_id, SUM(amount) amount FROM basket_item GROUP BY warehouse_id CREATE TEMPORARY TABLE tmp.bionic_calc (INDEX (item_id)) ENGINE=MEMORY SELECT a.Id_Article item_id FROM vn2008.Articles a JOIN vn2008.Tipos t ON t.tipo_id = a.tipo_id WHERE #filter; CALL bionic_calc (); SELECT a.Id_Article item_id, a.description, b.available, b.price, b.producer, a.Foto, a.Article, a.Categoria, a.Medida, IF(a.Tallos > 1, a.Tallos, NULL) Tallos, c.name color FROM tmp.bionic_item b JOIN vn2008.Articles a ON a.Id_Article = b.item_id LEFT JOIN vn2008.producer p ON p.producer_id = a.producer_id LEFT JOIN vn.inkL10n c ON c.id = a.Color LEFT JOIN vn.originL10n o ON o.id = a.id_origen WHERE b.available > 0 ORDER BY a.relevancy DESC, a.Article, a.Medida LIMIT 400; SELECT a.description, o.name origin FROM vn2008.Articles a LEFT JOIN vn.originL10n o ON o.id = a.id_origen WHERE a.Id_Article = #item CALL bionic_from_item (#item); SELECT p.warehouse_id, w.name warehouse, p.grouping, p.price, p.rate, l.available FROM tmp.bionic_lot l JOIN tmp.bionic_price p ON p.warehouse_id = l.warehouse_id JOIN vn2008.warehouse w ON w.id = p.warehouse_id ORDER BY warehouse_id, grouping;

Catalog

Size , Category

Color

from

SELECT r.id, l.name, r.color FROM vn2008.reinos r JOIN vn.itemCategoryL10n l ON l.id = r.id WHERE r.display != FALSE ORDER BY name

Choose a realm

Filter by

CALL item_available (); SELECT DISTINCT t.tipo_id, l.name FROM vn2008.Tipos t JOIN vn2008.Articles a ON a.tipo_id = t.tipo_id JOIN tmp.item_available i ON i.item_id = a.Id_Article JOIN vn.itemTypeL10n l ON l.id = t.tipo_id WHERE #filter ORDER BY name CALL item_available (); SELECT DISTINCT c.Id_Tinta, l.name FROM vn2008.Tintas c JOIN vn2008.Articles a ON a.Color = c.Id_Tinta JOIN vn2008.Tipos t ON t.tipo_id = a.tipo_id JOIN vn.inkL10n l ON l.id = c.Id_Tinta JOIN tmp.item_available i ON i.item_id = a.Id_Article WHERE #filter ORDER BY name CALL item_available (); SELECT DISTINCT p.producer_id, p.name FROM vn2008.producer p JOIN vn2008.Articles a ON a.producer_id = p.producer_id JOIN vn2008.Tipos t ON t.tipo_id = a.tipo_id JOIN tmp.item_available i ON i.item_id = a.Id_Article WHERE #filter ORDER BY name CALL item_available (); SELECT DISTINCT o.id, l.name, o.Abreviatura FROM vn2008.Origen o JOIN vn2008.Articles a ON a.id_origen = o.id JOIN vn2008.Tipos t ON t.tipo_id = a.tipo_id JOIN vn.originL10n l ON l.id = o.id JOIN tmp.item_available i ON i.item_id = a.Id_Article WHERE #filter ORDER BY name CALL item_available (); SELECT DISTINCT a.Categoria, a.Categoria category FROM vn2008.Articles a JOIN vn2008.Tipos t ON t.tipo_id = a.tipo_id JOIN tmp.item_available i ON i.item_id = a.Id_Article WHERE #filter ORDER BY a.Categoria

Order by

@

Size , Category

Color

Origin