Skip to content

[errata] sql error on page 103 #1

@wfhu

Description

@wfhu

On page 103, Listing 6-2, you write a sql like this:
mysql> SET @query = 'SELECT * FROM world.city INNER JOIN world.city ON country.Code = city.CountryCode';

I think it should be like this:
mysql> SET @query = 'SELECT * FROM world.city INNER JOIN world.country ON country.Code = city.CountryCode';

There is an error because you are joining the same table ("world.city") instead of joining a different table.

I do not see any errata, so I created this issue. Maybe it's time to create an errata now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions