
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Use Two Columns with MySQL WHERE Clause
It is very rarely used to use two columns of the same table in WHERE clause but still we can perform a query with two columns of the same table. Consider the below example −
mysql> Select F_name, L_name -> From Customer -> where F_name = L_name; Empty set (0.00 sec)
Here we are using both the columns(F_Name and L_Name) from the same table(Customer) hence the result is an Empty set.
Advertisements