Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 231
  • Last Modified:

Over Flow error

while i execute my query i'm getting an over flow error. my query is:

select pname,sum(qty),sum((qty/amount)*qty)as price,amount from sales Group By pname

in my table some records qty and amount is zero. this situation i'm getting this overflow error. i'm using Access database. pls help me...
0
satdream
Asked:
satdream
1 Solution
 
hongjunCommented:
you cannot divide by zero.
0
 
DaveyEssCommented:
Put a where clause on that says "where amount <> 0" as you are dividing by zero sometime which is causing problems.

0
 
satdreamAuthor Commented:
hi friends,
thanks to all....

SatDream
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now