What potential issues can arise from storing player data in multiple columns within a table in PHP?

Storing player data in multiple columns within a table can lead to data redundancy and make it difficult to manage and query the data efficiently. One solution to this issue is to use a normalized database structure by creating a separate table for player data and establishing relationships between tables using foreign keys.

// Create a players table
CREATE TABLE players (
    id INT PRIMARY KEY,
    name VARCHAR(50),
    team_id INT,
    FOREIGN KEY (team_id) REFERENCES teams(id)
);

// Create a teams table
CREATE TABLE teams (
    id INT PRIMARY KEY,
    name VARCHAR(50)
);