Results 1 to 3 of 3
  1. #1
    natalia is offline Novice
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Sep 2010
    Location
    dwarfsville
    Posts
    6

    ratio 1:10- catering service


    hello,

    I have a database which is based on a catering system.
    Attached is a scrrenshot of the different tables I have which include the different fields.

    I want to do a query that will state how many staff will be needed for each event, ie if there were 100 number of guests i will need 1 member of staff to 10 guests so therefore i would need 10 members of staff!

    Thankyou!!

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    A query can have a 'calculated field'. Presuming one of the fields in guest quantity - then you would create a calculated field for the employee quantity. One needs also to get to know the IIF statement in order to make a more flexible/useable formula.

    Designing a database requires everyone to have a textbook, easily found at Amazon or a big book store. Examples of these tasks will be shown.

  3. #3
    slave138's Avatar
    slave138 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Oct 2010
    Location
    WI
    Posts
    233
    In your query (which should include the No_of_Guests field from the Orders table) select an empty field and enter:
    No_of_Staff: -Int(-[Orders].[No_of_Guests]/10)

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Service to Cost by Quarter HELP!!!
    By campanellisj in forum Database Design
    Replies: 5
    Last Post: 09-26-2010, 06:58 AM
  2. Ratio calculation - Need help
    By Kai in forum Queries
    Replies: 5
    Last Post: 06-14-2010, 08:25 PM
  3. Select last 2 dates of service
    By kfinpgh in forum Queries
    Replies: 1
    Last Post: 11-25-2009, 07:34 PM
  4. Database and Software as a Service
    By Hcasty in forum Programming
    Replies: 1
    Last Post: 09-11-2009, 03:03 AM
  5. SQL service connection
    By selma_ in forum Import/Export Data
    Replies: 5
    Last Post: 08-20-2009, 04:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums