Troy's Blog

Life, family, work, and my experiences with products, services, stores, and the people I encounter each and every day.

My Photo
Name: Troy Pullis
Location: Minneapolis, Minnesota, United States

Thursday, June 23, 2005

Doing a Subquery

For future reference, this will lookup a value (email) from table2, to use in where clause in table1.


select *
from table1
where EmailAddress = (select EmailAddress from table2 where UserID = '#URL.UID#')