HP3000-L Archives

June 1997, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Wilkinson <[log in to unmask]>
Reply To:
Date:
Wed, 11 Jun 1997 12:21:43 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (16 lines)
Hi All.

I have a little problem with defining views in Allbase you may be able to
help me with. I have two tables which are linked by a concatenated key. I
want to do a SELECT similar to the example below, but the key items are
alphanumeric and you can't use the '+' operator on alphanum fields...

select a.theatre_nr, b.city_name from
ifds02.theatre_sv a left join
ifds02.cityv b on
b.concat_key = 'C' + substring(cast(a.city_nr+10000000,char(8)),2,7);

TIA.
Mark Wilkinson
[log in to unmask]

ATOM RSS1 RSS2