I have one query in SQL Server output,
Suppose i have one table (Ex.StudentMaster) having some fields-No unique constraints. For Ex. RollNumber and Name The table h
You can use DISTINCT which return's distinct combination's of columns.
SELECT DISTINCT RollNo, Name FROM mytable