Re: oledb correlated subquery error



(musicgal501@xxxxxxxxxxx) writes:
Thank you very much for replying so promptly! The reason for the
subquery for the 'payTax1OnConsign' field was the fact that the join
is conditional and access will not allow a right(outer) join in this
circumstance. The most strange thing is that for the invoice where the
query fails, there is only one line on the invoice, and only one line
is returned by your query (and mine when I run it in Access). Have you
heard of this before?

Let me it put it this way: I have heard of cases before where people
have been dead sure that it is a way which it isn't. I may have committed
that sin myself, once or thrice.

Without having a script that populates the table and reproduces the
error (if there is any), I cannot really comment. On top of that, Access
is not in my realm, I'm an SQL Server guy.

I guess there could be some kind of corruption, but you are probably
better off asking in an Access newsgroup about that.


--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.



Relevant Pages

  • Re: Query training -- Complex queries
    ... > Update PositionsEOM ... Here you don't have a derived table, but a correlated subquery. ... UPDATE in Books Online. ... is not written for SQL Server. ...
    (microsoft.public.sqlserver.server)
  • Re: How to deal with invoice detail money amounts?
    ... > i'm update a legacy system to SQL Server. ... Don't you have a product SKU code in the Invoice Item table? ...
    (microsoft.public.sqlserver.programming)
  • Re: STORED PROCEDURE - passing table name as a parameter
    ... T-SQL, is that you get problems if the view definition does not fit into ... will need to query other system tables, for instance syscolumns. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)
  • Re: Problem when changing Views
    ... There aree several reasons. ... I use neither of the tools, but I guess that Design View resubmits the ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)
  • Re: SQL 2005: Help files not valid?
    ... Please try the following instructions to remove and reinstall Books Online. ... If this doesn't solve the problem, we'll need to get the Visual Studio folks ... In Add or Remove Programs, select Microsoft SQL Server 2005, and then ... Complete the remaining steps in the Installation Wizard. ...
    (microsoft.public.sqlserver.setup)