I have recently started my AS ICT coursework and I am having one problem with one of my queries. I need to create an invoice query to show the total amount spent by customers while they stay in a camping site (I will use this query to make a report). I have 5 tables, these including information about accommodation prices and also meal prices. I have worked out the total for the cost of the accommodation of customers stay, but I am struggling with the next bit. Customers are able to book many meals while they stay. The meals are on a set menu with certain prices. I need to be able to add the accommodation price for the week on to the total price of all the meals the customer has ordered.
<tbody>
</tbody>
This is one part of my invoice, It shows the [Total cost of accommodation] and the [Total cost of meals]. Basically I need a way to add the TOTAL of the [Total cost of meals] (In this case it is £17.00 but depending on how many meals are ordered by the customer this could be more or less) to the [Total cost of accommodation] (Which in this case is £375.00). I don't like the fact that I have to have the duplicate value of the accommodation due to the fact it is in the same query as the meals booked. Any suggestions on alternate ways that I can setup the query differently will be welcomed.
Thanks.
<caption> Invoice </caption><thead> </thead><tbody> </tbody><tfoot></tfoot> |
<tbody>
</tbody>
This is one part of my invoice, It shows the [Total cost of accommodation] and the [Total cost of meals]. Basically I need a way to add the TOTAL of the [Total cost of meals] (In this case it is £17.00 but depending on how many meals are ordered by the customer this could be more or less) to the [Total cost of accommodation] (Which in this case is £375.00). I don't like the fact that I have to have the duplicate value of the accommodation due to the fact it is in the same query as the meals booked. Any suggestions on alternate ways that I can setup the query differently will be welcomed.
Thanks.