Good Morning Pro's,
I am trying to write a script that selects a group based on the criteria within that group. I'm looking to pull in only records that meet that criteria.
With the GROUP BY, SQL will pull in my GROUP even if there are two records with 'A' or 'B', rightfully so. I'm trying to only select the group when all Columns meet the criteria of 'A'. In otherwards, if there is a 'B' in the Group, I'd like to NOT SELECT it.
Any creative solutions are welcome. Thanks guys!
P
I am trying to write a script that selects a group based on the criteria within that group. I'm looking to pull in only records that meet that criteria.
Code:
SELECT ColumnA FROM Table GROUP BY ColumnA HAVING ColumnA = 'A'
Any creative solutions are welcome. Thanks guys!
P
Comment