I have a table named Users, where I have two fields username and password. Similarly, I have one more table where I have few fields and username field.
I have a login page where I have to check whether the username and password is present in the Users table, and if present, I want to fetch the data from another table corresponding to that username.
There can be more than one data for a single user so I have to fetch all the data for the respective user. How can I do it?
You may want to use subquery… effectively two queries like this
Here is an example: