Jump to content

Force data into unique row format


jonnytekno
 Share

Recommended Posts

I have marketing campaign some data where there is a unique campaign id and then a campaign name. 

But, there can sometimes be more than one campaign name for a single campaign id - this means joining the campaign name to other data where the campaign id exists is hard. I want to be able to force the data into a table where the campaignid and campaign name are always unique, which means I need to drop one of the campaign names, but don't care which (they are practically identical apart from typos etc)

How can I do a select id, name from [table] group by id, name where I know that the id is never going to be duplicated?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...