I have the following query:
select * from members,subscriptions
where members.MemberID = subscriptions.MemberID
and subscriptions.Year = 2009
and members.ASSCID = 15
and subscriptions.Untildate between '$2009-01-01' and '2009-12-31'
order by members.Memberlastname
Members pay either their annual subscription once (annual subscription) or pay 2 times, one in January and one in June (six-month subscription). I want to pull out members who paid at least once.
The above expression will bring several members twice (those who paid in both January and June).
Is it possible to pull out members who paid at least once (regardless of whether they paid an annual or six-month subscription). Avoid duplicates.
source
share