473,406 Members | 2,707 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.

Why does Access get confused with the result set?

I built a query in Query Analyzer and mapped it to Access 2002. The result
set returned is identical except cells in some records in the Access result
have #Deleted. This cast a shadow of doubt on the reliability of Access.
Am I doing something incorrect? Comments?

Access query

SELECT [dbo_Accounts$].Account, [dbo_Regions$].Region_nm, [dbo_Sites$].Site,
dbo_Results.[ELAPSED TIME]
FROM [dbo_Sites$] INNER JOIN ([dbo_Regions$] INNER JOIN ([dbo_Accounts$]
INNER JOIN dbo_Results ON [dbo_Accounts$].Account_ID =
dbo_Results.ACCOUNT_ID) ON [dbo_Regions$].Region_ID = dbo_Results.REGION_ID)
ON [dbo_Sites$].SITE_ID = dbo_Results.SITE_ID
WHERE (((dbo_Results.[ELAPSED TIME])>=30));

Result set
Query2 Account Region_nm Site ELAPSED TIME
MIS17570 Southwest Mesa #Deleted
MIS17570 Southwest Mesa #Deleted
MIS13640 Northwest Everett 77
MIS17570 Southwest Mesa #Deleted
davec Northwest Renton 75
davec Northwest Renton 73
MIS13640 Northwest Everett 73
Query Analyzer

select acc.account, reg.region_nm, sit.site, res.[elapsed time]
from accounts$ as acc
join results as res on res.account_id = acc.account_id
join regions$ as reg on reg.region_id = res.region_id
join sites$ as sit on sit.site_id = res.site_id
where res.[elapsed time] >= 30
order by res.[elapsed time] desc

Result set

MIS17570 Southwest Mesa 80
MIS17570 Southwest Mesa 79
MIS13640 Northwest Everett 77
MIS17570 Southwest Mesa 76
davec Northwest Renton 75
davec Northwest Renton 73
MIS13640 Northwest Everett 73

Nov 12 '05 #1
2 1604
It's in the documentation and the Help. Access' dialect of SQL has some
differences from SQL Server. You might well get some anomalies if you tried
to use SQL Server's flavor of SQL in Oracle, or Informix, or DB2, or even
Sybase SQL Server.

Larry Linson
Microsoft Access MVP

"Robert" <st*******@boeing.com> wrote in message
news:Hs********@news.boeing.com...
I built a query in Query Analyzer and mapped it to Access 2002. The result set returned is identical except cells in some records in the Access result have #Deleted. This cast a shadow of doubt on the reliability of Access.
Am I doing something incorrect? Comments?

Access query

SELECT [dbo_Accounts$].Account, [dbo_Regions$].Region_nm, [dbo_Sites$].Site, dbo_Results.[ELAPSED TIME]
FROM [dbo_Sites$] INNER JOIN ([dbo_Regions$] INNER JOIN ([dbo_Accounts$]
INNER JOIN dbo_Results ON [dbo_Accounts$].Account_ID =
dbo_Results.ACCOUNT_ID) ON [dbo_Regions$].Region_ID = dbo_Results.REGION_ID) ON [dbo_Sites$].SITE_ID = dbo_Results.SITE_ID
WHERE (((dbo_Results.[ELAPSED TIME])>=30));

Result set
Query2 Account Region_nm Site ELAPSED TIME
MIS17570 Southwest Mesa #Deleted
MIS17570 Southwest Mesa #Deleted
MIS13640 Northwest Everett 77
MIS17570 Southwest Mesa #Deleted
davec Northwest Renton 75
davec Northwest Renton 73
MIS13640 Northwest Everett 73
Query Analyzer

select acc.account, reg.region_nm, sit.site, res.[elapsed time]
from accounts$ as acc
join results as res on res.account_id = acc.account_id
join regions$ as reg on reg.region_id = res.region_id
join sites$ as sit on sit.site_id = res.site_id
where res.[elapsed time] >= 30
order by res.[elapsed time] desc

Result set

MIS17570 Southwest Mesa 80
MIS17570 Southwest Mesa 79
MIS13640 Northwest Everett 77
MIS17570 Southwest Mesa 76
davec Northwest Renton 75
davec Northwest Renton 73
MIS13640 Northwest Everett 73

Nov 12 '05 #2
I think I was not clear. When I indicated I mapped the SQL query to Access
I did not copy the SQL code. I built the query from the Design View. Both
queries act/react the same way. The problem is Access is not returning a
consistent result set. It is returning cells that are undefined or deleted.
If Accsss is acting this way there is a problem in the way it works or my
query is doing something expected. Where in the documentation are you
refering? thanx
"Larry Linson" <bo*****@localhost.not> wrote in message
news:pK*****************@nwrddc01.gnilink.net...
It's in the documentation and the Help. Access' dialect of SQL has some
differences from SQL Server. You might well get some anomalies if you tried to use SQL Server's flavor of SQL in Oracle, or Informix, or DB2, or even
Sybase SQL Server.

Larry Linson
Microsoft Access MVP

"Robert" <st*******@boeing.com> wrote in message
news:Hs********@news.boeing.com...
I built a query in Query Analyzer and mapped it to Access 2002. The

result
set returned is identical except cells in some records in the Access

result
have #Deleted. This cast a shadow of doubt on the reliability of Access. Am I doing something incorrect? Comments?

Access query

SELECT [dbo_Accounts$].Account, [dbo_Regions$].Region_nm,

[dbo_Sites$].Site,
dbo_Results.[ELAPSED TIME]
FROM [dbo_Sites$] INNER JOIN ([dbo_Regions$] INNER JOIN ([dbo_Accounts$]
INNER JOIN dbo_Results ON [dbo_Accounts$].Account_ID =
dbo_Results.ACCOUNT_ID) ON [dbo_Regions$].Region_ID =

dbo_Results.REGION_ID)
ON [dbo_Sites$].SITE_ID = dbo_Results.SITE_ID
WHERE (((dbo_Results.[ELAPSED TIME])>=30));

Result set
Query2 Account Region_nm Site ELAPSED TIME
MIS17570 Southwest Mesa #Deleted
MIS17570 Southwest Mesa #Deleted
MIS13640 Northwest Everett 77
MIS17570 Southwest Mesa #Deleted
davec Northwest Renton 75
davec Northwest Renton 73
MIS13640 Northwest Everett 73
Query Analyzer

select acc.account, reg.region_nm, sit.site, res.[elapsed time]
from accounts$ as acc
join results as res on res.account_id = acc.account_id
join regions$ as reg on reg.region_id = res.region_id
join sites$ as sit on sit.site_id = res.site_id
where res.[elapsed time] >= 30
order by res.[elapsed time] desc

Result set

MIS17570 Southwest Mesa 80
MIS17570 Southwest Mesa 79
MIS13640 Northwest Everett 77
MIS17570 Southwest Mesa 76
davec Northwest Renton 75
davec Northwest Renton 73
MIS13640 Northwest Everett 73


Nov 12 '05 #3

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

Similar topics

20
by: | last post by:
If I need to check if a certain value does exist in a field, and return either "yes" or "not" which query would be the most effestive?
3
by: Jon Ole Hedne | last post by:
My Access 2002-application need to work with tables from both Oracle and Access. To solve this, I want to run some querys on three views in Oracle and import the results into temporary...
10
by: Lauren Wilson | last post by:
Ok I have searched the MS website for info on this. I am totally confused. If I want to deploy an Access 2003 app and allow my users to run it using Access 2003 Runtime, where do I get the...
6
by: rahul8143 | last post by:
hello, I am really confused over following for code snippets. No problem that they are working codes but how? how they are evaluated by compiler? It will be my pleasure if you explain me all...
17
by: Hazz | last post by:
In this sample code of ownerdraw drawmode, why does the '(ComboBox) sender' line of code need to be there in this event handler? Isn't cboFont passed via the managed heap, not the stack, into this...
0
by: ASP.Confused | last post by:
The old message looked a little stale, so I am re-posting it here. Anybody have any ideas of what I could do?!? The previous responses to this question are below. If you want to look at the...
6
by: InnoCreate | last post by:
Hi everyone. I've recently written a classic asp website which uses an MS Access datasource. I know this is less than an ideal data source as it has limited functionality. I have a search form on...
4
by: mos | last post by:
Hi! According the article: You may experience an access violation when you access an STL object through a pointer or reference in a different DLL or EXE...
5
by: =?Utf-8?B?TWFydHluIEZld3RyZWxs?= | last post by:
From the amount of articles about this one I’m sure this gets asked a lot, but I haven’t yet found a succinct article which explains what is required in its entirety. I work using Visual...
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
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.