Don't have a suitable database to test on but I'm pretty sure standard SQL allows you to join on a subselect that limits its result to one.
I like that though, I have a preference for REPL style development and fleshing things out interactively. Enough so that I build Java like that, hacking things out directly in tests.