I have a simple query like:
SELECT name FROM people;
The people table does not a have unique id column. I want to add to the query r
people
If you need it only when the query is run, you can use row_number.
row_number
select row_number() over(order by name) as id, name from people