![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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? |
#3
| |||
| |||
|
|
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 |
#4
| |||
| |||
|
|
Well, I don't have that option. I have the tables already and they are continually changed by programs not under my control. I need to join them like I said above. If there is no SQL method to do it, then I guess I must do it with a temporary table and another join, but I am wondering if it is a simpler way, because another table and join would just slow things down. |
![]() |
| Thread Tools | |
| Display Modes | |
| |