Can't do a null for any field in Vantage except a date field.
From:
vantage@yahoogroups.com [mailto:
vantage@yahoogroups.com] On Behalf Of Thomas Rose
Sent: Tuesday, July 08, 2008 2:05 PM
To:
vantage@yahoogroups.com
Subject: RE: [Vantage] Join problem in BAQ 8.03.403D
I guess part of my problem is that I could do these in my sleep in Access. FWIW, here is what the SQL would look like in Access:
SELECT
InvcHead.InvoiceNum,
OrderHed.OrderNum
FROM
OrderHed LEFT JOIN InvcHead
ON OrderHed.Company = InvcHead.Company AND OrderHed.OrderNum = InvcHead.OrderNum
WHERE
InvcHead.InvoiceNum Is Null;
So, now you have an answer, at least for Access. If it were only this easy in Vista/Vantage...
Thom Rose
Controller
Electric Mirror, LLC
T 425 776-4946 ext. 1024
A 11831 Beverly Park Road, Building D, Everett, WA 98204 USA
www.electricmirror.com<
http://www.electricmirror.com/>
From:
vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> [mailto:
vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>] On Behalf Of Charles Carden
Sent: Tuesday, July 08, 2008 11:54 AM
To:
vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
Subject: {Disarmed} RE: [Vantage] Join problem in BAQ 8.03.403D
In the Main-frame world this would be called an "Unmatched Query". I have never found an effective way to do this type of query using SQL on any PC database. I have also asked several "experts" and none have ever given me an answer. In the past, we imported the data into Excel and then used filters to get the desired results.
If you wanted receipts versus orders you could just run the received-not-invoiced report.
From:
vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com> [mailto:
vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com>] On Behalf Of Mark Wonsil
Sent: Tuesday, July 08, 2008 12:58 PM
To:
vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com><mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] Join problem in BAQ 8.03.403D
> I want a BAQ listing sales orders that have not been invoiced. I outer
> join the OrderHed table to the InvcHead table on Company and OrderNum (the
> default). I then set a criteria that the InvcHead.InvNum equals 0. What I
> get is a list of ALL the sales orders, not just those without an invoice.
> Why does my BAQ select all records instead of only uninvoiced? Here is the
> query phrase:
>
> for each OrderHed no-lock , each InvcHead outer-join where (
> InvcHead.InvoiceNum = 0) and (OrderHed.Company = InvcHead.Company and
> OrderHed.OrderNum = InvcHead.OrderNum) no-lock .
The Outer-Join is creating invoice headers for non-matching sales orders and
the default value for for InvoiceNum is zero. Try approaching it the other
way: find all invoices not invoiced and then match them to the sales orders.
Mark W.
________________________________
DISCLAIMER:
This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately.
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
________________________________
DISCLAIMER:
This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately.
[Non-text portions of this message have been removed]