I need to do the following:
SQL = "select amount, count(amount) from table1 group by amount having count(*) =1"
This returns all unique records, but I need to add another criteria to that statement ie: I need to select all unique records only if a second value is met as well! This is what I had in mind but it doesn't work, I have tried so many variations!
SQL = "select amount, count(amount) from table1 group by amount having count(*) = 1 And msgsent = 1"
So I need to get all unique amounts but only if
msgsent = 1 and
not = 0 Basicly I need to verify against two fields! Can this be done?
Software/Hardware used:
ASKED:
February 20, 2009 1:08 AM
UPDATED:
February 20, 2009 2:13 PM