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

crosstab quey fails in case of table.field syntax is used in subquery

Dear All,

I have a very hard time with an ACCESS 2000 crosstab query.
The basic query the crosstab is based on looks like this:

SELECT DokumenteNachNummer.Dokumente_ID ,
const_VerteilerCodes.VerteilerCodes_ID ,
Exists (SELECT * FROM Verteiler
WHERE Verteiler.Dokumente_ID =DokumenteNachNummer.Dokumente_ID AND
Verteiler.VerteilerCodes_ID=const_VerteilerCodes.V erteilerCodes_ID) AS
Verteilen
FROM DokumenteNachNummer, const_VerteilerCodes;

As you can see there is an EXIST subquery which just determines if a
certain condition matches. As the field names for the where clause are
in both tables and have the same name I had certainly to prefix the
fileds by the table names. Running the basic query shows the expected
result !
But when I generate a crosstab query and run it I get an error masage
"Mcrosoft Jet database engine does not recognize
'DokumentNachNummer.Dokument_ID'as a valid filed name or expression'
My crossatb sql looks like this:
TRANSFORM First(VerteilerListe.Verteilen) AS FirstOfVerteilen
SELECT VerteilerListe.Dokumente_ID
FROM VerteilerListe
GROUP BY VerteilerListe.Dokumente_ID
PIVOT VerteilerListe.VerteilerCodes_ID;

I think this behaviour is quite odd !
I have nod idea how can I escape from this situation

Any help is highly welcome

Rolf

Nov 13 '05 #1
0 1090

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

Similar topics

17
by: kalamos | last post by:
This statement fails update ded_temp a set a.balance = (select sum(b.ln_amt) from ded_temp b where a.cust_no = b.cust_no and a.ded_type_cd = b.ded_type_cd and a.chk_no = b.chk_no group by...
8
by: Donna Sabol | last post by:
First, I should start by saying I am creating a database to be used by some very impatient, non-computer literate people. It needs to be seameless in it's operation from their point of view. I...
1
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to...
2
by: Sherman H. | last post by:
I have a few questions for crosstab and popup form questions: 1. I created a crosstab as follows: IT Financial Operation John 21 22 ...
7
by: newguy | last post by:
I am trying to get the totals of a table by client by type of income. This query will get what I am looking for with each unique combination as a row: SELECT Sales.Client, BillCode.Type,...
0
by: M Fadhilah via DBMonster.com | last post by:
Dear All, I am newbie in postgresql, i am using postgressql 8.0 for windows and i try using crosstab for my table. my table structure is account_id text account_parent text...
14
by: Tina | last post by:
My employer tracks productivity/performance of clinicians (how much they bill) each week, its averages for the month, and the 6 months. These averages are compared to their expected productivity....
27
by: Bob | last post by:
running access 2k; mdb w/ linked tables to another mdb (front/back-end); trying to run a query that updates a table FROM information from a crosstab query. I AM NOTT trying to update the...
6
by: keyur1719 | last post by:
Hi, I have a crosstab query which is based on a simple select query. Here is how the query works.. The base query gets it date from employee table and their incentives table for the given...
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
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.