Re: conditional join?
- From: "Chris2" <rainofsteel.NOTVALID@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 29 Jun 2007 13:25:59 -0700
"Bart" <Bart@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:148C59C9-1EFA-4E77-944E-E7D20C199C25@xxxxxxxxxxxxxxxx
"Chris2" wrote:
"Bart" <Bart@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D49F1267-7714-487A-B154-1FE4099E44AD@xxxxxxxxxxxxxxxx
"Chris2" wrote:
"Bart" <Bart@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8DCDDF8B-1F08-477A-8782-0A9FAD40663C@xxxxxxxxxxxxxxxx
Hi Chris,
<snip>
Sincerely,
Chris O.
<snip>
Can you please post your table structures, including indexes and relationships?
I have some ideas about to do this, but until I can build a pair of tables that match
yours that are loaded with the data, I will have no way to find out if they will work.
Sincerely,
Chris O.
<snip>
I'm not sure how much information you want but I will supply the SQL
translation of the Progress schema for a number of tables below.
Ok, two things are still missing.
I need a mini-chart that translates the previously supplied level1-4 column names into the
real column names so that I know what sample data goes where.
No primary keys or foreign keys were shown. Please add those declarations (just those, no
need to repost the whole set of table descriptions).
Note for future consideration: When supplying DDL SQL, non-relevant columns (those that
aren't going to be used in the query/process, or those that do not describe primary or
foreign keys), may be omitted in a newsgroup posting.
I will include the Progress procedure I am using to achieve the results.
While you may not be familiar with Progress the language is quite easy to
understand and you should probably be able figure out more easily what it is
I am after from reading the code. It may not be the best implementation but
it is working.
I am glad it is working. While I can guess about what some of the Progress code does,
guessing isn't what you need and me doing that won't do you any good. (I would just be
stumbling through one interpretation after another, with you correcting me most of the
time.)
In SQL is it possible to include some conditional statements within Select
(e.g. IIF, CASE) to determine the level of provenience recorded in the photo
record and to direct the join to one of four instances of the crmProv table
each with different join critera?
I suppose you could try to use IIF and SWITCH, but I wasn't planning on that.
I was going to try querying for all 4-column matches, and then doing a query for all
3-column matches where NOT EXISTS all the 4-column matches, and then doing a query for all
2-column matches where NOT EXISTS all the 4-column and 3-column matches, etc.
Does that even remotely sound like what you are trying to achieve? (It does to me, but
that doesn't mean I am right.)
Sincerely,
Chris O.
.
- Follow-Ups:
- Re: conditional join?
- From: Bart
- Re: conditional join?
- References:
- Re: conditional join?
- From: Chris2
- Re: conditional join?
- From: Bart
- Re: conditional join?
- From: Chris2
- Re: conditional join?
- From: Bart
- Re: conditional join?
- From: Chris2
- Re: conditional join?
- From: Bart
- Re: conditional join?
- Prev by Date: Re: Criteria Messing Up Sort Order
- Next by Date: Re: Finding duplicates, then selecting files with different values
- Previous by thread: Re: conditional join?
- Next by thread: Re: conditional join?
- Index(es):
Relevant Pages
|