I have a database in which a lot of the tables have similar names. For example a table named :
"76 Mercury Starter"
"76 Mercury Engine"
"76 Mercury Exhaust"
"98 Ford Starter"
"98 Ford Engine"
"98 Ford Exhaust"
and so forth.
How would I select Distinct table names from the database and only get one Mercury and one Ford in the query results?
I have tried "select Distinct Name from sysobjects where type like 'U'" but it still comes up with all of the tables. Any help is greatly appreciated.
Rob
Just my $.02.
"76 Mercury Starter"
"76 Mercury Engine"
"76 Mercury Exhaust"
"98 Ford Starter"
"98 Ford Engine"
"98 Ford Exhaust"
and so forth.
How would I select Distinct table names from the database and only get one Mercury and one Ford in the query results?
I have tried "select Distinct Name from sysobjects where type like 'U'" but it still comes up with all of the tables. Any help is greatly appreciated.
Rob
Just my $.02.