Re: Creating a view
Date: Mon, 24 Mar 2003 21:20:33 +0100
Message-ID: <3E7F6891.8090609_at_netscape.net>
Vern Reynolds wrote:
<snip previous discussion>
>
> I got your example to work by the way but with an exception. I would like to
> display the results of the lookup in four new columns in the view named
> ssopen, ssclose, wsopen and wsclose. As it is, is displays each lookup as a
> different row rather than all of them on one row.
>
Sorry - I just barged in on the error, not really paying
attention to the model or motives.
basically, this should do the trick:
This is not a pretty solution. Assuming schedule is
create view vern (ssopen, ssclose, wsopen, wsclose)
as
SELECT TITLE, null, null, null from HYMNAL, SCHEDULE
where PAGE=SSOPENINGHYMNNUMBER
union all
SELECT null,TITLE, null, null from HYMNAL, SCHEDULE
where PAGE=SSCLOSINGHYMNNUMBER
union all
SELECT null,null,TITLE, null from HYMNAL, SCHEDULE
where PAGE=WSOPENINGHYMNNUMBER
union all
SELECT null,null,null,TITLE from HYMNAL, SCHEDULE
where PAGE=WSCLOSINGHYMNNUMBER;
Oh - and I haven't tested the above - I should have.
-- Regards, Frank van BortelReceived on Mon Mar 24 2003 - 21:20:33 CET