About 826,000 results
Open links in new tab
  1. database - How to select unique records by SQL - Stack Overflow

    When I perform SELECT * FROM table I got results like below: 1 item1 data1 2 item1 data2 3 item2 data3 4 item3 data4 As you can see, there are dup records from column2 (item1 are …

  2. Get unique values from a list in python - Stack Overflow

    Oct 15, 2012 · I want to get the unique values from the following list:

  3. Entity Framework Core add unique constraint code-first

    The OP is asking about whether it is possible to add an Attribute to an Entity class for a Unique Key. The short answer is that it IS possible, but not an out-of-the-box feature from the EF Core …

  4. How can I create unique IDs with JavaScript? - Stack Overflow

    Mar 19, 2019 · I have a form where a user can add multiple select boxes for multiple cities. The problem is that each newly generated select box needs to have a unique id. Can this be done …

  5. Get all unique values in a JavaScript array (remove duplicates)

    I have an array of numbers that I need to make sure are unique. I found the code snippet below on the Internet, and it works great until the array has a zero in it. I found this other script here on

  6. linux - Find unique lines - Stack Overflow

    Dec 8, 2012 · How can I find the unique lines and remove all duplicates from a file? My input file is 1 1 2 3 5 5 7 7 I would like the result to be: 2 3 sort file | uniq will not do the job. Will show all val...

  7. sql - How to select only the first rows for each unique value of a ...

    In the table, one customer like John Smith can have multiple addresses. I need the SELECT query for this table to return only first row found where there are duplicates in 'CName'. For …

  8. How do I create a unique constraint that also allows nulls?

    Apr 20, 2009 · I want to have a unique constraint on a column which I am going to populate with GUIDs. However, my data contains null values for this columns. How do I create the constraint …

  9. c# - Getting unique items from a list - Stack Overflow

    May 26, 2014 · What is the fastest / most efficient way of getting all the distinct items from a list? I have a List<string> that possibly has multiple repeating items in it and only want the …

  10. How to add unique field validation in nest js with class-validator

    Mar 7, 2023 · How to do validation with database like unique filed validation in nest JS using the class validator? I created a custom validation class and tried it. But userService was undefined …