Need query help - MAX record

  • I am having trouble writing linking the MAX query that I created back to the table to produce other data elements about the MAX record.  I have created a Word document showing an excerpt from the main data table, how the MAX query pulls in the appropriate records, but then I am stumped on how to create a query joining the MAX table back to the main table to get another data element out.  Any assistance would be greatly appreciated.  Thanks!

    Attachments:
    You must be logged in to view attached files.
  • Thanks for posting your issue and hopefully someone will answer soon.

    This is an automated bump to increase visibility of your question.

  • Welcome to SSC.  I think your question needs some help.  One thing that's a challenge when you first start out is knowing how to ask a question that will get answered. Fortunately, Jeff Moden wrote an article about it. Please read it and follow the instructions outlined in it so that we can help you.

    You don't mention what your ultimate goal is. Return the MAX of a column? (Can you be more specific? Give an example?). If the logic to accomplish it is not immediately obvious, please explain it.

    Also, please put all the explanation and the scripts (CREATE TABLE, SELECT, INSERT...) directly into your post on here (just use the CODE button for that). That way people here can quickly see what you're starting with and quickly answer your question. The way I like to do it is like this:

    1. explain (briefly) what you're trying to accomplish... and what the solution should look like.
    2. provide enough data (create tables, inserts) to recreate your problem
    3. explain what you tried.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply