Skip to content
Advertisement

Unable to use a select join with this data, when it used to work earlier

Im trying to debug a really weird issue.

One of the parts of my database that used to work properly suddenty stopped to work. I have narrowed the problem to this:

First of all: Those are my databases

This is their creation script:

USERS:

CALENDAR:

CALENDAR_FIELD

Well whats the issue there? My programme generates the following data in the database:

users

calendar:

calendar_field

It returns no rows, when I perfectly remember how it used to return some rows

Advertisement

Answer

The join appears to be incorrect.

Rather than:

it looks like it needs to be:

This way, the values will match, given the data you provided.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement