I have a table with 4 columns
id, descripcion_articulo, cantidad, modelo, marca
and this query:
("select distinct descripcion_articulo from " . TABLE_ENTREGAS . "
where numeracion = '' order by descripcion_articulo ASC")
to generate this query are just the articles that I want to show, this is perfect, but when adding the other columns that are missing the query:
("select distinct id, descripcion_articulo, cantidad, modelo, marca
from " . TABLE_ENTREGAS . "
where numeracion = '' order by descripcion_articulo ASC")
shows more values than I wish, in fact it repeats values of article_description, that I do not want, I only want a single unique value of article_description
I need to add the other elements id
, cantidad
, modelo
, marca
to the query made. how to make the query.
and add an additional column that adds all the quantities it contains = article_description