0
Hi, I need some help ! I need to do a query and bring in the Nifs without repeating. I do it like this:
SELECT DISTINCT NIF FROM CustomerRegistrations
But I also want to bring more columns from this table. But I can’t do that:
SELECT DISTINCT NIF, Name, RegistrationDate FROM CustomerRegistrations
Because it will bring repeated NIF’s. I mean, there are NIF’s with different names, but I just want to bring one. Thanks to those who help !
If any of the other columns contain different data they will have to repeat even because the data is different comparing the row.
– Marconi
@Marconi because I understand, I wanted to know if there was possibility to do what I was asking but apparently not.
– D C
If you add the structure of your table with some data and explain what you want to leave in the result try to help in a solution @DC =D
– Marconi
@Marconi I have found another solution, thank you very much for the availability !!
– D C
@DC, share this solution as an answer with us
– Jefferson Quesado