Weird join...

From: "Costin Manda" <costin(at)interpoint(dot)ro>
To: "pgsql" <pgsql-novice(at)postgresql(dot)org>
Subject: Weird join...
Date: 2004-07-12 09:47:41
Message-ID: 00a401c467f5$464b3980$96b0e6c1@Costin
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

I need to join two tables in postgres (or any other SQL) like this:
table 1 has a list of phone numbers
table 2 has a list of country prefixes (like 40 for romania 407 for romania
mobile, etc)

I want to join the tables so that a number like
407111111 in table 1
is joined ONLY with
407 in table 2

Can you please help?

Thank you

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Bruno Wolff III 2004-07-12 14:37:33 Re: Weird join...
Previous Message MK 2004-07-11 15:30:15 Re: pgHoster.com woes and looking for a new host