Search code snippets, questions, articles...

SQLAlchemy query to get distinct records from table

To get unique records from one pr multiple columns you can use .distinct() method of SQLAlchemy
Best JSON Validator, JSON Tree Viewer, JSON Beautifier at same place. Check how cool is the tool

The query will return the unique values in city column.

Was this helpful?