I'm creating a query which checks if a client made payments for a given month and if not set charges of 20% of the agreed monthly payment.
this is what i currently have:
SELECT
DAY(paydate) AS PayDay,
clientid
FROM
transactions,clients
where
transactions.clientid=client.clientid
and transactions.product=invoices.product
and DAY(paydate)> 10
order by
client.clientid
Thanks for your help