vbrich Posted October 4, 2006 Share Posted October 4, 2006 I have a sql question that somebody probably knows off the top of their head. I have a table with data like this...TABLE> ID> FIELD1> FIELD2> FIELD3> TYPEI need to find how many rows contain data where the set (FIELD1, FIELD2, FIELD3) is the same, but the (TYPE) is different. In other words, all the fields have different values, but if the set of the 3 (FIELD1 = 1, FIELD2 = 2, and FIELD3 = 3) is the same, then I need to find instances where TYPE is not the same. I hope I am explaining this clearly. Basically, if there is more than 1 row where FIELD1=X, FIELD2=Y, and FIELD3=Z, I need to know if TYPE is different among the rows. Ideas? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now