473,395 Members | 1,689 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,395 software developers and data experts.

microsoft query problem

hey

I dont know how to solve this problem.
I got a big table with like 50,000 rows like this:

person from update (title row)
name date date
name date date
name date date
...

with multiple rows for each person. I cant reduce the table in access because the date should be flexible:
from <=[date]
where date is a parameter
and after that I want to group by name with latest update row.

The table is so big so I get some overflow message from MS query when I try to do this. Anything I can do to solve this?
Aug 13 '10 #1
3 1475
gershwyn
122 100+
Can you post the complete SQL you are trying to run, as well as the exact error message you are receiving?

50,000 records isn't that many when it comes to a database (I often work with tables that have over a million.) I suspect the overflow is being caused by something else.
Aug 13 '10 #2
dsatino
393 256MB
I don't think you've really given anyone enough to help you. But here's some stuff I can tell you. 50,000 rows is not a lot from database standpoint. Dates, however do take a lot of memory so it's possible that this is causing the overflow error. Although I've only seen this error with variables. You might also want to check the size of your DB. If it's anywhere near 2GB you'll need to run a Compact/Repair.

Realistically, this table should probably be two tables. One with the Person and the other with the dates. This will allow the person to be listed only once.

My best guess at what you want:
Your Query should Group on the person and Max(date)
Aug 13 '10 #3
I think I can solve this with pivot table instead. easier
thanks anyway
Aug 13 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: justinjoylife | last post by:
Hi - I'm completely new to Microsoft Query Analyzer and I need to learn it for work to do data mining as a Product Manager. Does anyone have any recommendations on how to learn this and where?...
1
by: sausage31 | last post by:
I have a table as follows.... Device LotID Result1 Result2 Result3 aaa 1 5 10 15 bbb 1 2 4 6 aaa 2 ...
5
by: Khurram | last post by:
Hello Experts, I have problem while making a SQL Query. For Example:- I have three tables Table1 Table2(TaskDetail) Table3(Results) Task1 ...
2
by: Bernd Hohmann | last post by:
Dear collegues, small query problem. A table (simplified example)... customer as char(5) inv_date as date amount as double
5
by: Darin L. Miller | last post by:
I'm not too good with advanced SQL queries, so please bear with me on this. I have a query with multiple joins that I am trying to get just the last 10 of each unique record (RecordID)...
29
by: wizofaus | last post by:
I previously posted about a problem where it seemed that changing the case of the word "BY" in a SELECT query was causing it to run much much faster. Now I've hit the same thing again, where...
1
by: jomurf | last post by:
Not sure if this is the right forum. I'm using Microsoft Query to get data from our ERP. However, every time I try to sum a column, I get a syntax error. Here's the sql statement: SELECT...
2
by: Vesper | last post by:
Hi, I am trying to create an ASP file which will search Multiple Values in a Database. Everything is fine if there is one parameter but if there are more I receive an SQL error message: ...
4
trueadvantage
by: trueadvantage | last post by:
Hi... I have 1 little but critical (for me) problem regarding access query. Problem Details: - I have one table which includes Employee Name and Employee ID Table:- EmpName EmpID A ...
3
by: Salad | last post by:
I am using A2003, SP3. If I use the QueryBuilder and select a table and drag the fields to it and then select Query/Append from the menu as the type of query, the first table name (alphabetically)...
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.