How to remove duplicate records from a view? I need to keep them on the physical table, but in the view, I don't want the duplicates
Here is the query I used:
CREATE VIEW myview
AS
SELECT DISTINCT *
FROM [roug].[dbo].[Table_1]
ORDER BY id
for the table :
id| name age
----------
c1 ann 12
u2 joe 15
c1 ann 12
c1 ann 12
u5 dev 13
u3 Jim 16
u3 Jim 16