MySQL Forums
Forum List  »  General

Re: join tables with substitution where values exist, else use existing values
Posted by: David Koski
Date: January 13, 2015 06:58PM

My approach was going to be to use a query source identification string or integer as part of the query. Or use an "if/else" statement:

IF <destination_is_here>
<use_mymethod>
ELSE
<get_method_from_table>
FI

That would eliminate the requirement to have a table or view for each query source. The the only issue left is to get the substitutions working conditionally.

Another approach would be to generate tables for each query source with scripts each time there was a modification in the main table.

Regards,
David Koski
dkoski@sutinen.com

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.