Use ANSI syntax and it will be a lot more clear how you are joining the tables:
SELECT s.name as Student, c.name as Course
FROM student s
INNER JOIN bridge b ON s.id = b.sid
INNER JOIN course c ON b.cid = c.id
ORDER BY s.name
More Related Contents:
- How to use IN & NOT IN same query [closed]
- SQL Print the name of all Employees together with the name of their supervisor
- Syntax error due to using a reserved word as a table or column name in MySQL
- Change MySQL default character set to UTF-8 in my.cnf?
- quick selection of a random row from a large table in mysql
- nodejs mysql Error: Connection lost The server closed the connection
- Best data type to store money values in MySQL
- How to fix “Incorrect string value” errors?
- MySQL: How to allow remote connection to mysql
- Order a MySQL table by two columns
- What’s the difference between ” = null” and ” IS NULL”?
- add column to mysql table if it does not exist
- Querying multiple databases at once
- Sorting varchar field numerically in MySQL
- SQL: Repeat a result row multiple times, and number the rows
- Setting up foreign keys in phpMyAdmin?
- How to get an age from a D.O.B field in MySQL?
- Invalid default value for ‘dateAdded’
- Importing a CSV to MySQL with different date format
- MySQL: When is Flush Privileges in MySQL really needed?
- MySQL too long varchar truncation/error setting
- MySQL: update a field only if condition is met
- how to use DISTINCT ON with mysql using ActiveRecord
- use a variable for table name in mysql sproc
- Split a string and loop through values in MySQL stored procedure
- How to create dummy variable columns for thousands of categories in Google BigQuery?
- Most efficient way to store IP Address in MySQL [duplicate]
- MySQL concurrency, how does it work and do I need to handle it in my application
- What is the best way to do incremental backups in MySQL?
- Mysql stored procedure don’t take table name as parameter