| To: | "'Jason Kretzer/STAR BASE Consulting Inc.'" <JKretzer@xxxxxxxxxxxxxxx>, users@xxxxxxxxxx |
|---|---|
| Subject: | RE: [cinjug-users] SQL syntax question |
| From: | "Bandy, Charles" <CBandy@xxxxxxxx> |
| Date: | Wed, 7 Apr 2004 12:30:36 -0400 |
| Delivered-to: | mailing list users@cinjug.org |
| Mailing-list: | contact users-help@cinjug.org; run by ezmlm |
|
I am not suggesting that
I am a SQL expert, but based on your description below, it appears that you
really have 4 tables:
A contains Aid and
Cid
B contains
Bid
AB contains Aid, Bid and
Cid as a single PK ( you stated that these are the PK together, so I am
assuming that this is a single entry not three entries, right?
)
SP contains Bid and
Cid
Now you are looking
for records in A not present in AB that are equal to AB.Cid ( which does
not exist because you have stated that the PK is all three so you cannot
just get to Cid but rather you would be looking for the primary key which would
be Aid+Bid+Cid) but if they were individual fields that you were trying
to select on your saying that you looking for data in AB that would not
exist therefore you could not get a match.
The second statement
confuses me also, but it appears that you are trying to get a select statement
that combines what is not present in AB with what is present in AB.
Sorry, I was not able to help you out more as I am definitely not an SQL expert but I am hoping that 1) someone can explain the problem more so that I can understand it or 2) you may have a logical problem trying to get to the data you need and I helped to present this. Either way, I wish you the best of luck in getting your results. cjb
CONFIDENTIALITY NOTICE: The information contained in this e-mail and attached document(s) may contain confidential information that is intended only for the addressee(s). If you are not the intended recipient, you are hereby advised that any disclosure, copying, distribution or the taking of any action in reliance upon the information is prohibited. If you have received this e-mail in error, please immediately notify the sender and delete it from your system. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [cinjug-users] SQL syntax question, Eric Galluzzo |
|---|---|
| Next by Date: | Ezboard, BobHHowell |
| Previous by Thread: | SQL syntax question, Jason Kretzer/STAR BASE Consulting Inc. |
| Next by Thread: | Ezboard, BobHHowell |
| Indexes: | [Date] [Thread] [Top] [All Lists] |