How can I delete rows from this query?

Here is a working query that finds all rows in my table that have duplicate City and State fields.

SELECT     *
FROM       CityLIst AS a INNER JOIN
                          (SELECT     City, State
                            FROM          CityList
                            GROUP BY City, State
                            HAVING      (COUNT(*) > 1)) AS b ON a.City = b.City AND a.State = b.State


It is returning about 100 instances in my table of duplicates.  Now I want to be able to delete rows...but in my SQL Management Studio the whole table is grayed out, It wont let me delete any of the results.  Does someone know an easy way I can delete records?  I only want one instance of any row with a particular City, State.  
arthurh88Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

James MurrellProduct SpecialistCommented:
it may be down to permissions on your access - sorry
cyberkiwiCommented:
This keeps only one row.  But if you have permission issues, this won't work

;with tmp as (
SELECT *, ROW_NUMBER() over (partition by City, State order by city) rn
FROM CityList)
delete tmp where rn>1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
arthurh88Author Commented:
i have full permissions.  that isn't the issue.  its SQL management studio not letting me delete the rows because of the inner join.  See picture
query.jpg
Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

arthurh88Author Commented:
cells are READ ONLY
cyberkiwiCommented:
Have you tried the delete query?
James MurrellProduct SpecialistCommented:
Thanks for the picture, have you tried cyberkiwi query
arthurh88Author Commented:
i  just did and it worked!  Thank you.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.