Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Overflow error

Posted on 2011-09-15
3
Medium Priority
?
380 Views
Last Modified: 2012-05-12
I keep getting an overflow error on a the below:

SELECT Query1.RCTrack, Query1.RCDate, Query1.RCRace, Query1.Horse, Sum(Query1.RCWT) AS SumOfRCWT, Sum(Query1.NFIN) AS SumOfNFIN, Sum(Query1.RWNF) AS SumOfRWNF, Sum(Query1.RWBEYER) AS SumOfRWBEYER, Sum(Query1.AdjBeyer1) AS SumOfAdjBeyer1, Sum(Query1.AdjBeyer) AS SumOfAdjBeyer, Sum(Query1.NFC) AS SumOfNFC, Sum(Query1.RWFC) AS SumOfRWFC, Sum(Query1.SPEED) AS SumOfSPEED, Sum(Query1.NODDS) AS SumOfNODDS, Sum(Query1.RWOP) AS SumOfRWOP, Sum(Query1.RWSP) AS SumOfRWSP, Sum(Query1.RWPUR) AS SumOfRWPUR, Sum(Query1.RWWT) AS SumOfRWWT, Sum(Query1.RWDST) AS SumOfRWDST, Sum(Query1.NPOST) AS SumOfNPOST, Sum(Query1.ADJLENS) AS SumOfADJLENS, Sum(Query1.RWFINLENS) AS SumOfRWFINLENS INTO [SUMS OF FACTORS]
FROM Query1
GROUP BY Query1.RCTrack, Query1.RCDate, Query1.RCRace, Query1.Horse;


There are 712,000 rows in this.  This is Tracks G through I.  In tracks A through B, I did not get an overflow with the same code.  A through B has 1,310, 000 rows.

0
Comment
Question by:JackJackson54
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
LIONKING earned 2000 total points
ID: 36544428
It appears that it's not because of the rows, but my initial guess would be that one of the fields doesn't support the number that the SUM function is returning...

Have you tried casting your fields to larger values? What are the original field types?
0
 

Author Comment

by:JackJackson54
ID: 36544892
'

They all are double because of decimals
0
 
LVL 13

Expert Comment

by:LIONKING
ID: 36544974
Mmm... Maybe casting them as decimals could help...
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question