salix/print/templates/email/worker-welcome/sql/worker.sql

8 lines
130 B
SQL

SELECT
u.id,
u.name,
e.email
FROM account.user u
LEFT JOIN account.emailUser e ON e.userFk = u.id
WHERE u.id = ?;