use distinct in sql inner join & where clause and new key word code example Example: query DISTINCT SELECT DISTINCT Column_name FROM table_name;