If I have a table named USER and I have 3 columns user_name, user_password and user_surname, with user_name and user_password set as the primary key. When a user log into the program they are required to enter there name and password.
Now I need to verify this combination, so I need to know if I can do pair-wise comparison like the following:
SELECT *
FROM user
WHERE (user_name, user_password) = ('&name', '&password');
I know that you can use pair-wise comparison like the above with a IN but do not know if you can use it with =. The thing is that the user needs to enter the two values (name, password) and then it needed to be checked in the table.
Please I need advice
In T-Sql, we use
Your sort of comparison is not possible , I think.
Since you are using Access