SELECT 
	lp.id_sucursal AS Sucursal,
	lp.id_listaprecio AS Lista_Precios,
	i.id_linea AS Linea,
	lp.id_item AS Cod_Item,
	i.descripcion AS Item,
	i.unidad1 AS Unidad_Medida,
	i.peso AS Peso_Teorico,
	lp.precio AS Precio

FROM
	lista_precios lp join item i 

USING
	(id_sucursal,id_item) 

WHERE 
	i.estado = '0' 
	AND i.tipo = 1
	AND lp.precio > 1
	AND (lp.id_listaprecio = '13B' OR lp.id_listaprecio = '16' OR
		lp.id_listaprecio = '17' OR
		lp.id_listaprecio = 'AA')

ORDER BY
	Sucursal, Lista_Precios, Cod_Item
