Questions tagged as 'distinct'

1
answer

Query without repeated data SQL Server

You will see I need to send to ask for an amount n of questions, where that amount is given by a parameter. The query is already functional and sends them to the parameter randomly. What happens now is that it shows questions that are repea...
asked by 03.10.2018 / 23:06
1
answer

consult a single distinct with condition

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 th...
asked by 31.07.2018 / 15:28
0
answers

MYSQL SELECT DISTINCT query does not work in MYSQL 5.7.21

In the previous MySQL version of the hosting this sentence worked for me without problems: "SELECT DISTINCT Mes FROM recogida ORDER BY ID DESC" Where the column ID is unique code for each entry in the table and Month is the month + y...
asked by 02.10.2018 / 16:34
1
answer

SQL Server sum and distinct - Add once with repeated records

I have this table of expenses and I need to add the Total column. The problem is that the table takes into account the products, and when making the sum I added several times the total of a note (because in the same note there were seve...
asked by 24.04.2018 / 23:48