Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Finding Only Matches

Author  Topic 

CMangano
Starting Member

16 Posts

Posted - 2001-09-12 : 20:03:00
I was wondering if there is a way to find only the rows were a certain column matched. For example, suppose we have the following table:

id value name
-- ----- ----
1 test x
2 this y
3 test z
4 how z

Now I want to return the values for the names x and z. But, I only want to return the values that are exactly the same. So, my query should return

id value name
-- ----- ----
1 test x
3 test z

Can it be done? Thanks in advance.

   

- Advertisement -