Is it possible to display everything except the first row from a table in SQL Server 2005? I have this data:
---------------------------------
| ID | Name |
---------------------------------
| 1 | John Smith |
| 2 | John Doe |
| 3 | John Thatcher |
---------------------------------
In my request, I need to get "John Doe" and "John Thatcher." I don't need the โIDโ column to display, so I cannot use ROW_NUMBER here, as shown below:
select Name from Customers where ROW_NUMBER() over (order by Id)>1
Please advice.
Thanks.
UPDATE: Clarification: I would like my query to return only a column of names, but I cannot use table expressions because I use this query as part of string concatenation:
select stuff((select ', '+pfn.FullName from PlaintiffsFullNameView pfn where pfn.SuitId=s.Id for xml path('')),1,1,'') as "CoPlaintiffs"
Now I need to convert this request to return everything except the first plaintiff in a concatenated form.
2:
, :
. ( )
, .
"" , . ( ), , .