I have two tables like the one listed below:
+----+----------------+-----------+-----+
| id | Catalog Number | Pack Size | Qty |
+----+----------------+-----------+-----+
| 1 | K353-J353-5 | 5 kg | 3 |
| 2 | V3532-3 | 3 kg | 2 |
| 3 | S32-366-10 | 10 kg | 1 |
+----+----------------+-----------+-----+
+----+----------------+--------------+
| id | Catalog Number | Product Name |
+----+----------------+--------------+
| 1 | V353-J353 | a |
| 2 | V3532 | b |
+----+----------------+--------------+
I would like to join these two tables but the different catalog number format is giving me trouble. The catalog numbers is always split by the "-" char, but could have 0 or 1 "-".
The only way I've managed is through Excel's text to column function, is there an equivalent way in SQL?
Thanks in advance, Mike