Article View: borland.public.interbase.sql
Article #11148Re: select a blob field from differents tables for report
From: Bill Todd
Date: Tue, 03 Dec 2002 19:18
Date: Tue, 03 Dec 2002 19:18
35 lines
2210 bytes
2210 bytes
You can use a stored procedure with "if then else if" logic to determine which table to include in the query. On Tue, 3 Dec 2002 12:30:14 -0600, "Quique" <quique_gdlt@puebla.megared.net.mx> wrote: >Hi, i woulk like to know if this is possible: > >I would like to get in a stored procedure or a view the data of one table >"master" only that in this table "master" exists a field with the name of >one table of 5 existing in the DB, These tables has a blobl field named >"IMPRE" with differents values only that i have to take the value of the >field in the table that it name is in the "master" table. > >The relation is MASTER.NUMEST = [ANYTABLEOFFIVE].NUMEST > >So if in one record in the master table, the field "TABLE" is : CONSUL, i >have to take the value of the field "IMPRE" from the table "CONSUL" or if >the field "TABLE" in the master table is : ULTRAS, i have to take the value >of the field "IMPRE" from the table "ULTRAS" and so, existing the other 3 >tables where i can take the value of their field "IMPRE" > >i'll apreciate any help > >thanx in advance > >bye > >QuiQue > -- Bill (TeamB) (TeamB cannot respond to questions received via email)
Technical Details
Message-ID:
<gq0quus2a7m9oufthnvntuis6e672stile@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3decf22a$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 114a0e,4143ebe5b98bca24 X-Google-Attributes: gid114a0e,public X-Google-ArrivalTime: 2002-12-03 11:39:55 PST From: Bill Todd <bill@notthis.dbginc.com> Newsgroups: borland.public.interbase.sql Subject: Re: select a blob field from differents tables for report Date: Tue, 03 Dec 2002 12:18:40 -0700 Message-ID: <gq0quus2a7m9oufthnvntuis6e672stile@4ax.com> References: <3decf22a$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 216.207.211.30 X-Trace: newsgroups.borland.com 1038943121 216.207.211.30 (3 Dec 2002 11:18:41 -0800) Lines: 35 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail