Mark-101232 (10/5/2012)
Try this
SELECT AssetID, AssetName, MAX(Relationship) AS Relationship, MAX(Company) AS Company
FROM myTable
GROUP BY AssetID, AssetName
Thanks Mark, but the problem is "Relationship" and "Company" columns are from different tables. Hence using two Select queries with a Union
Where as AssetID and AssetName are from a single table. Therefore there are 3 tables involved