Collections:
Inner Join with the WHERE Clause in MySQL
How To Write an Inner Join with the WHERE Clause in MySQL?
✍: FYIcenter.com
If you don't want to use the INNER JOIN ... ON clause to write an inner join, you can put the join condition in the WHERE clause as shown in the following query example:
mysql> SELECT l.id, l.url, r.comment FROM fyi_links l, fyi_rates r WHERE l.id = r.id; +-----+-------------------+-----------+ | id | url | comment | +-----+-------------------+-----------+ | 101 | dev.fyicenter.com | The best | | 102 | dba.fyicenter.com | Well done | | 103 | sqa.fyicenter.com | Thumbs up | +-----+-------------------+-----------+ 3 rows in set (0.00 sec)
⇒ Assign Names to Query Output Columns in MySQL
⇐ Query with a Full Outer Join in MySQL
2017-09-28, 2489🔥, 0💬
Popular Posts:
How To Drop a Stored Procedure in Oracle? If there is an existing stored procedure and you don't wan...
Where to find answers to frequently asked questions on Managing Security, Login and User in SQL Serv...
What Are Bitwise Operations in SQL Server Transact-SQL? Bitwise operations are binary operations per...
How to change the data type of an existing column with "ALTER TABLE" statements in SQL Server? Somet...
How To Find Out What Privileges a User Currently Has in Oracle? Privileges granted to users are list...