Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

Here's the table in sql server.. and below is what I want to do. Any help would be appreciated.

TABLE:

Area (column 1) ----- Oregon California California California Oregon Washington Idaho Washington 

I want ALL the cities that are duplicates to be returned, but not the distinct ones. Just the duplicates. Is there a select statement that lets me return only duplicates?

Here's the table in sql server.. and below is what I want to do. Any help would be appreciated.

TABLE:

Area (column 1) ----- Oregon California California California Oregon Washington Idaho Washington 

I want ALL the cities that are duplicates to be returned, but not the distinct ones. Just the duplicates. Is there a select statement that lets me return only duplicates?

Here's the table in sql server.. and below is what I want to do.

TABLE:

Area (column 1) ----- Oregon California California California Oregon Washington Idaho Washington 

I want ALL the cities that are duplicates to be returned, but not the distinct ones. Just the duplicates. Is there a select statement that lets me return only duplicates?

Here's the table in sql server.. and below is what I want to do. Any help would be appreciated.

TABLE: Area (column 1)

Oregon
California
California
California
Oregon
Washington
Idaho
Washington
TABLE:

Area (column 1) ----- Oregon California California California Oregon Washington Idaho Washington 

I want ALL the cities that are duplicates to be returned, but not the distinct ones. Just the duplicates. Is there a select statement that lets me return only duplicates?

Here's the table in sql server.. and below is what I want to do. Any help would be appreciated.

TABLE: Area (column 1)

Oregon
California
California
California
Oregon
Washington
Idaho
Washington

I want ALL the cities that are duplicates to be returned, but not the distinct ones. Just the duplicates. Is there a select statement that lets me return only duplicates?

Here's the table in sql server.. and below is what I want to do. Any help would be appreciated.

TABLE:

Area (column 1) ----- Oregon California California California Oregon Washington Idaho Washington 

I want ALL the cities that are duplicates to be returned, but not the distinct ones. Just the duplicates. Is there a select statement that lets me return only duplicates?

added 6 characters in body; edited title
Source Link
user2246674
  • 7.7k
  • 27
  • 28

How to select not distinctonly duplicate records?

Here's the table in sql server.. and below is what I want to do. Any help would be appreciated.

TABLE: Area (column 1)

Oregon
California
California
California
Oregon
Washington
Idaho
Washington

I want ALL the cities that areare duplicates to be returned. Not, but not the distinct ones. Just the duplicates. Is there a select statement that lets me return only duplicates?

How to select not distinct

Here's the table in sql server.. and below is what I want to do. Any help would be appreciated.

TABLE: Area (column 1)

Oregon
California
California
California
Oregon
Washington
Idaho
Washington

I want ALL the cities that are duplicates to be returned. Not the distinct ones. Just the duplicates. Is there a select statement that lets me return only duplicates?

How to select only duplicate records?

Here's the table in sql server.. and below is what I want to do. Any help would be appreciated.

TABLE: Area (column 1)

Oregon
California
California
California
Oregon
Washington
Idaho
Washington

I want ALL the cities that are duplicates to be returned, but not the distinct ones. Just the duplicates. Is there a select statement that lets me return only duplicates?

Source Link
Nisar
  • 6.1k
  • 18
  • 71
  • 84
Loading