hi
I wrote query in sqland I want it select data from database that doesnt show repeated number from Mobile column below is code
SELECT ROW_NUMBER() OVER
(
ORDER BY [name] asc
)AS RowNumber
,id
,name
,Email
,Distinct Mobile2
,PhoneHome1
INTO #Results
FROM PhoneBook
but below error accure:
Msg 156, Level 15, State 1, Procedure phone_Information, Line 16 Incorrect syntax near the keyword 'Distinct'.
best regards
Neda