I have a SQL statement like the following:
select A from table1, (select B from table2) where A like B
I’m wondering if it’s possible to append wildcard ‘%’ to B in the where statement, like:
where A like B%
Thank you!
EDIT: I’m working on SAP HANA database, I figured out the correct syntax, it is:
where A like B || '%'
Thanks for all your help!
Yes it is possible, but the syntax varies from database to database.
SQL Server
Oracle
MySQL / Postgres