So I want to select all users where username is contained in the email
for instance in this username – email table
mee - mee@unknown.com
mee2 - kle@unknown.com
mee3 - mee3@unknown.com
jft - jft@unknown.com
uey - uey@unknown.com
I want to only return mee, mee3, jft and uey where the username is contained in the email – now how do I do that?
I Could use Brian Hoovers solution, but I actually chose the following where clause
where email = CONCAT(`username`, '@unregistered.com')
This would give you every email where the username and the beginning of the email are the same