Imagine a list of different services each have their own row in a MySQL table.
these services go for a certain price in a specified time span (date from and date till). Each service can have multiple time time spans with corresponding prices.
The number of time spans vary per service and time spans are also different for each service.
How should I set up the table so I can quickly get the price for a specific service on a fixed date?
And how should the MySQL select query look like?
Thanks,
Ron
these services go for a certain price in a specified time span (date from and date till). Each service can have multiple time time spans with corresponding prices.
The number of time spans vary per service and time spans are also different for each service.
How should I set up the table so I can quickly get the price for a specific service on a fixed date?
And how should the MySQL select query look like?
Thanks,
Ron