How can I look up values from a table?