I'm working on a saas app in php/mysql, i have create db according to below fig.
Now with this structure i need a report with IGA and MDS customers in a particular date between.
Here comes the tricky part. IGA and MDS are codes from a customer table and its will be add into the query in dynamic way and the condition will be applied to all the tables.
ie. "select * from IGA_customers where created between $date1 and $date2" and that query to be made with multiple tables.
Any help would be appreciated. Thanks in advance