Results 1 to 3 of 3
  1. #1
    rblundell is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    1

    Query Problem

    Thanks to anyone in advance that can help. Your help is really appreciated!



    Basically I'm building a database for a university assessment came across a big problem, cannot get my head around it at all.

    I have a table called Service_TABLE with the price of each service on each car. I created a Query to display the highest service that was made on all the cars that were serviced. However it seems to display all the prices for every service on each car over and over again. Really stuck :|

    Some useful screenshots below :

    Query Design View : http://tinypic.com/r/2gybuxg/6
    Query Result : http://tinypic.com/r/24dj3vq/6

    What is wrong with this code??

    SELECT MAX(Service_TABLE.Service_cost), Vehicle_TABLE.Vehicle_ID
    FROM Service_TABLE, Vehicle_TABLE;

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You need a join in the query or you get a cartesian product.

  3. #3
    genesis is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jul 2009
    Posts
    39
    can you attach your database with the tables and query that you state here?

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

Similar Threads

  1. query problem i have a problem wi
    By maxx3 in forum Queries
    Replies: 0
    Last Post: 06-29-2009, 02:29 AM
  2. query problem
    By maxx3 in forum Queries
    Replies: 35
    Last Post: 05-29-2009, 04:07 PM
  3. Top 25 query problem
    By tmcrouse in forum Queries
    Replies: 3
    Last Post: 05-07-2009, 09:02 AM
  4. problem with query
    By kiethb in forum Queries
    Replies: 3
    Last Post: 04-24-2009, 11:42 AM
  5. Problem in Query
    By Bruno Trindade in forum Queries
    Replies: 4
    Last Post: 03-28-2009, 04:10 PM

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