473,406 Members | 2,352 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,406 software developers and data experts.

Grouping on a numeric field: Doesn't seem to work in this query

I'm trying to smoke out duplicate return records for Fund/ReturnDates
in which the ReturnRate differs.

We are loading a DB using data from several vendors and if a given
fund's return for a given date differs among vendors, we want to know
about it.

-----------------------------
SELECT ttblReturnStage_Monthly.FundID,
ttblReturnStage_Monthly.ReturnDate,
ttblReturnStage_Monthly.ReturnRate

FROM ttblReturnStage_Monthly

GROUP BY
ttblReturnStage_Monthly.FundID,
ttblReturnStage_Monthly.ReturnDate,
ttblReturnStage_Monthly.ReturnRate

HAVING (((Count(ttblReturnStage_Monthly.RecordID))>1));
-----------------------------

ttblReturnStage_Monthly.ReturnRate is a Double with six decimal places.

The actual values are mostly only four decimal places.

Can anybody see what I'm doing wrong that this query thinks many
records with the same FundID/ReturnDate/ReturnRate are dupes?

Nov 13 '05 #1
2 1213
I guess I should add that ttblReturnStage_Monthly.RecordID is an
AutoNumber PK.

Nov 13 '05 #2
> GROUP BY
ttblReturnStage_Monthly.FundID*,
ttblReturnStage_Monthly.Return*Date,
ttblReturnStage_Monthly.Return*Rate
Oops! RCI strikes once again. I see the error of my ways.

SHB:
--------------------------------- GROUP BY
ttblReturnStage_Monthly.FundID*,
ttblReturnStage_Monthly.Return*Date


(+ a few more queries to ID the rates that don't agree...)
---------------------------------

Nov 13 '05 #3

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

Similar topics

7
by: Rick Caborn | last post by:
Does anyone know of a way to execute sql code from a dynamically built text field? Before beginning, let me state that I know this db architecture is built solely for frustration and I hope to...
3
by: ahaque38 | last post by:
Hello. Using A2K SP3, I am having the following problem with a report using "Sorting and Grouping". I have recently added a grouping in the reports for "Category2<>'CONTRACTS'". I have...
8
by: Mike MacSween | last post by:
tblCourses one to many to tblEvents. A course may have an intro workshop (a type of event), a mid course workshop, a final exam. Or any combination. Or something different in the future. At...
1
by: S. van Beek | last post by:
Dear reader, How can I filter a numeric field with Like as criteria in a query. To filter a numeric field with <10 as criteria this will com back with the result of those records for which...
1
by: Regnab | last post by:
I often want to query the database with certain parameters in my query which I do not want included in the query result. The problem is when I want to group on 1, sum the 2nd (and group by) and...
8
by: chrisdavis | last post by:
Hi All..I have been using Access for about 10 years now but something occurred to me that when I'm trying to GROUP and MAX, it's pulling it for different fields. Example: I have times by hour...
9
by: JakeTheSnake | last post by:
Hello, I'm new here, but am really impressed with the positive attitude! I was wondering if someone could give me some help or point me in the right direction. I have a query that returns the...
2
by: jgscott3 | last post by:
I have a query that simply totals a number of fields from a linked table. If I run it several times, it works fine for a couple of runs and then inexplicably returns a numeric field overflow error...
2
by: evablue | last post by:
Hello to all, I am quite new to sql and I don't understand why a query has a certain output.I apologise for the long post but I'd rather describe exactly what I am doing in, hoping that someone...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.