[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] MySQL Question



I do the following select statements to get a username out of a
database.

SELECT USER_ID from ALARMS where ID = 1;
SELECT * from USERS where ID = '<USER_ID from above>';

I want to speed this up.  Can I consolidate into one SQL statement?