I have two tables tableA and tableB as described bellow
desc tableA
GUID
PROPERTY_NAME
PROPERY_VALUE
ANOTHER_COL_1
ANTHER_COL_2
desc tableB
GUID
PROPERY_NAME
PROPERTY_VALUE
RANDOM_COL_1
RANDOME_COL_2
I have the following query to fetch the list of entries which have matching values for property_name which here is "URL"
SELECT A.GUID as SOURCE_GUID,
B.GUID as DESTINATION_GUID
FROM
tableA A,
tableB B
WHERE
A.PROPERTY_NAME = "URL" AND
A.PROPERY_NAME = B.PROPERTY_NAME AND
A.PROPERTY_VALUE = B.PROPERTY_VALUE
The issue here is as propery values are URLs, they may or may not have trailing slash. I want the join to happen regardless of trailing slash. Please suggest a better way of achieving the same with out using an PL/SQL procedures to remove the trailing slash.