You won't be able to do a join like that from the Database Expert but you could put that logic into the Record Selection Formula with left({table1.userid},7) = {table2.userid}
.
It should be noted, though, that this is pretty hacky and CR generally doesn't like when you add two conventionally unjoined tables to a report like that. Just a quick local test tells me that doing it this way does not actually translate into a well-formed WHERE-clause, but that CR enforces the "join" locally. In other words, your mileage may vary.