473,382 Members | 1,437 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

dmax function between multiple rows

I have a quick question.

I am trying the following

This is my table..tStudents

Name Grades
Ram 20
Ram 30
Ram 50
Lakhan 10
Lakhan 10

I am trying to find the range for each Name.. i.e the max and min score
for each Guy.

I did Dmax("Grades","tStudents",[Name])

This gives me the entire range of all the students.. I want range per
student..

Please help!!!!!!!!!

Been stuck on this problem for 3 DAYS!

Thanks a lot!~!!!!

Apr 28 '06 #1
2 2943
This is what I am trying..

SELECT DMax("Grade","Table1","Name") AS [Max], Table1.Name,
Table1.Grade
FROM Table1;

Apr 28 '06 #2
Mihir, try this:

select table1.Name, max([grades]) from Table1 group by table1.Name

but you should rename your "name" field to something else, because "name" is
a special word that is used in several places by Access and it will likely
get confused. So make it something like StudentName.

-John

"Mihir" <mi**********@gmail.com> wrote in message
news:11**********************@e56g2000cwe.googlegr oups.com...
I have a quick question.

I am trying the following

This is my table..tStudents

Name Grades
Ram 20
Ram 30
Ram 50
Lakhan 10
Lakhan 10

I am trying to find the range for each Name.. i.e the max and min score
for each Guy.

I did Dmax("Grades","tStudents",[Name])

This gives me the entire range of all the students.. I want range per
student..

Please help!!!!!!!!!

Been stuck on this problem for 3 DAYS!

Thanks a lot!~!!!!

Apr 28 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Scott | last post by:
I have a database with an input form. The field "DailyID" on the form is to increment automatically with each new entry, then reset itself back to "1" at midnight and/or the change of date. ...
4
by: gps | last post by:
I'm trying to use Dmax to dip into a my invoice header table and pull the maxium invoice number out of it. I'm running Access 2007 on Vista Business, but had the same prob with Access 2003 on...
3
by: Ron | last post by:
Hi All, Okay, here's the deal: Access2000/WinXP. Have a database that's split, FE/BE with multiple users having FE and one of those users also has BE (still split though...). Have a form on...
4
by: Ed Marzan | last post by:
Greetings, I have a query that returns varying prices for the same item in the following manner. Item1 Price1 Item1 Price2 Item1 Price3 Item1 Price4
2
by: ontherun | last post by:
Hi, I have a form called Customer based on the table tblCustomer and another form called Job based on the table Job when the user enter the details for the Customer i have a button at the...
2
by: joeyrhyulz | last post by:
Hi, I'm trying to make a very simple update statement (in Oracle) in jet sql that seems much more difficult than it should be. The root of my problem is that I'm trying to update a field on a...
3
by: DancingDave | last post by:
Can anyone tell me why MS Access produces #Error for MaxDate in all the rows in this query? SELECT NAMES., DMax("",""," = " & NAMES.) AS MaxDate FROM INNER JOIN XREF ON NAMES. = XREF.; When I...
1
by: nrtyme | last post by:
Hello, I need to add several new records to Table2 from Table1. Table2 contains a field called that needs to be the previous maximum value of incremented by 1. Below is my code but i keep...
21
by: DanicaDear | last post by:
I have a report named "rptHOTSTICKS_EXPIRING" based on a query named "HOSTICKS_SHIPPING_REPORT Query". The query contains these fields: ORDER_NUM (text) CUST_NUM (text) Name, address, contact...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.