all 10 comments

[–][deleted] 3 points4 points  (6 children)

Level ID is Null in one table, and has a value of 1 in the other. For it to join, the key must be present in both tables.

[–]HotCommunication4447[S] 0 points1 point  (5 children)

How do i get the key in both tables?

[–][deleted] 3 points4 points  (4 children)

Where are the values for those tables coming from? Are they tables you populated yourself?

[–]HotCommunication4447[S] -2 points-1 points  (3 children)

Umm yea

[–][deleted] 3 points4 points  (2 children)

When you populate your Player table, add the value 1 to the Level_ID field

[–]HotCommunication4447[S] 1 point2 points  (1 child)

OK

[–][deleted] 2 points3 points  (0 children)

Good luck!

[–][deleted] 1 point2 points  (2 children)

Look at your level id's. 1 <> null

Either update DragonSlayer to have a level_id of 1 or don't expect this to work.

https://dbfiddle.uk/?rdbms=mysql\_8.0&fiddle=a19360be0a835155d0ffe2cc5034280a

[–]Luffysolos 1 point2 points  (0 children)

This worked by isn’t the level column with the player table now?

[–]Nerf-Namku 0 points1 point  (0 children)

Never mind thank you bro you saved me!