Kayleigh
Member
- Local time
- Today, 03:49
- Joined
- Sep 24, 2020
- Messages
- 706
I am planning a DB to manage payouts to various companies on specific day of the month. I have figured out the following structure - a staff table; a junction table recording staff/company/payment info (including day of month); a table recording transactions info.
The process is that each staff is assigned companies to payout every month and the payments should be scheduled ie. created in the transaction table with status 'scheduled' and once processed it moves status and finally it is invoiced.
I would like to write a query to show upcoming payments from the junction table. It should take day of month, combined with this month and year to create date and then can be filtered according to which are in transactions table (meaning it has been created).
Can anyone help me with writing this query please.
The process is that each staff is assigned companies to payout every month and the payments should be scheduled ie. created in the transaction table with status 'scheduled' and once processed it moves status and finally it is invoiced.
I would like to write a query to show upcoming payments from the junction table. It should take day of month, combined with this month and year to create date and then can be filtered according to which are in transactions table (meaning it has been created).
Can anyone help me with writing this query please.