Results 1 to 3 of 3
  1. #1
    jharaldson is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2013
    Posts
    2

    Get min record value below each record in a column

    I would like a query to get the min record value below each record in a column and put the value in a column for itself, example output would be the Min column



    Name Score Min
    John 95 80
    Tim 100 80
    Eric 80

  2. #2
    drunkenneo is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jun 2013
    Posts
    199
    If u already have table probably the code will be...

    Update table set min = min(score) where score> min(score)

  3. #3
    jharaldson is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2013
    Posts
    2
    Code:
    select name, score,(select min(score)
    from
    (select name, score
    from
    scores)) as min
    from
    scores;
    this is what i have and it gives me the lowest score overall in the min column, i need the lowest score below the current row

    thanks

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

Similar Threads

  1. Replies: 17
    Last Post: 06-04-2013, 07:36 PM
  2. Replies: 1
    Last Post: 02-22-2013, 02:09 PM
  3. Replies: 3
    Last Post: 04-01-2012, 01:11 PM
  4. Replies: 3
    Last Post: 09-17-2010, 03:45 AM
  5. Lookup values in one column from another record
    By cjayjones in forum Queries
    Replies: 16
    Last Post: 08-05-2009, 02:27 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