how to read non repeated id from sql file quarry

how to read non repeated id from sql file quarry