Im coming back to needing to use SQL again after not using it for years, and im running into an issue when trying to do something I guess would be considered a join. Heres what I got. I got a username which I need to reference back to a user_id, which is a simple
SELECT chat_user_id FROM chat_users WHERE chat_username = 'A1A1'
That works fine, but now I need to pass the chat_user_id to another query to get the chats related to that user_id. I know I have done this before, but havent done it in a long time. Any help would be greatly appreciated.
1 Answer