Problemunvalidated

I would like to get something like this: — select all the usernames that end with the suffix in one column, matching the users that have the "dbname_suffix" pattern in their usernames with a second column where I have databases.

9fff2941-c6ce-4e41-9a21-e1a8ac9ec2b6

I would like to get something like this: — select all the usernames that end with the suffix in one column, matching the users that have the "dbname_suffix" pattern in their usernames with a second column where I have databases.