Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 26th, 2008, 06:11 AM
ldn_man ldn_man is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 1 ldn_man User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 17 sec
Reputation Power: 0
Different results when using views and tables

Hello,

I'm a simple group by query against a view to get subtotals but I'm getting some odd results.

When I run the query directly against the view, the subtotals add up to 205 records even though the view returns 207 records. When I put the view's results into a table using SELECT * INTO and then rerun the query. the subtotals add up to 207 as expected. Does anyone know why I'm getting different results?

Regards

Paulie

Reply With Quote
  #2  
Old April 26th, 2008, 09:33 AM
dykebert's Avatar
dykebert dykebert is offline
Contributing User
Click here for more information. Click here for more information
 
Join Date: Apr 2008
Posts: 346 dykebert User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 Days 10 h 29 m 4 sec
Reputation Power: 1
In my experience something like this is either some sort of bad data or some sort of corruption.

Things you can try to solve the mystery:

1. Copy the SQL to a new query using the same view and see if you get the correct totals.
2. Change the field you are using for the count. This may not be possible if you only have one field that consistently has data.
3. Investigate the original data by tracking down which subtotals are different. There may be some sort wierd corruption in the orignal data that gets cleaned in the Select * into.
4. Create a new Database file and import everything from the old file into it.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > Different results when using views and tables


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT