By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE
INSERT 0 2
| id | string | rtrim |
|---|---|---|
| 1 | John Doe lives in Emerald Street | lives in Street |
| 2 | John Doe lives in Emerald Street as john DOE Emerald | lives in Street as john DOE |
SELECT 2
| id | string | rtrim |
|---|---|---|
| 1 | John Doe lives in Emerald Street | lives in Street |
| 2 | John Doe lives in Emerald Street as john DOE Emerald | lives in Street as john DOE |
SELECT 2
| id | string2 |
|---|---|
| 1 | lives in Street |
| 2 | lives in Street as john DOE |
SELECT 2
| id | string2 |
|---|---|
| 1 | lives in Street |
| 2 | lives in Street as john DOE |
SELECT 2
| id | string2 |
|---|---|
| 1 | lives in Street |
| 2 | lives in Street as john DOE |
SELECT 2
| id | string2 |
|---|---|
| 1 | lives in Street |
| 2 | lives in Street as john DOE |
SELECT 2