Tech718
Technical User
- Jan 24, 2008
- 13
i have two tables users and posts. users has fields named, id, name and telephone. Posts has fields named id, posting and date. i would like to write a query that returns the name of the user based on the id they entered into the posts table
i tried the following......and it works however it returns all the names of the users in the users table for me to select from. Is there a way i can get it to return only the id of the current row/record? (Dlook up wont work as this is not a form but a table/query)
SELECT users.name, posts. id
FROM users, posts
WHERE (((users.id)=posts.id));
i tried the following......and it works however it returns all the names of the users in the users table for me to select from. Is there a way i can get it to return only the id of the current row/record? (Dlook up wont work as this is not a form but a table/query)
SELECT users.name, posts. id
FROM users, posts
WHERE (((users.id)=posts.id));