Viewing 3 posts - 1 through 3 (of 3 total)
select substring(CompanyName , CHARINDEX(' ',CompanyName)+1, len(CompanyName)), CompanyName from MyCustomers
where CHARINDEX(' ',substring(CompanyName, CHARINDEX(' ',CompanyName)+1, len(CompanyName)))=0
i hope this help.
November 2, 2006 at 1:54 am
select Table1.Name, Table1.Data, Table1.Amount
from Table1 inner join (
SELECT MAX([Table1].Amount) Amount, [Table1].Name
FROM Table1
GROUP BY [Table1].Name) a
on Table1.Name=a.Name and Table1.Amount=a.Amount
September 27, 2006 at 1:14 am
try like this
select *
into beta.work.dbo.Table_backup Table_backup_1
use alias for link server
goppo
romania
June 30, 2005 at 5:03 am
Viewing 3 posts - 1 through 3 (of 3 total)