Skip to content

Instantly share code, notes, and snippets.

@cnizzardini
Last active January 24, 2020 16:05
Show Gist options
  • Select an option

  • Save cnizzardini/e9240505acb0865e0c25 to your computer and use it in GitHub Desktop.

Select an option

Save cnizzardini/e9240505acb0865e0c25 to your computer and use it in GitHub Desktop.
List of NFL teams in SQL format (MySQL) including name, abbreviations, conference, and division. Comment if you find any errors. For CSV format see https://gist.github.com/cnizzdotcom/13d0a072adb35a0d5817
--
-- Table structure for table `teams`
--
CREATE TABLE IF NOT EXISTS `teams` (
`id` tinyint(1) unsigned NOT NULL,
`name` varchar(32) NOT NULL,
`abbreviation` char(3) NOT NULL,
`conference` char(3) NOT NULL,
`division` char(5) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `teams`
--
INSERT INTO `teams` (`id`, `name`, `abbreviation`, `conference`, `division`) VALUES
(1, 'Arizona Cardinals', 'ARI', 'NFC', 'West'),
(2, 'Atlanta Falcons', 'ATL', 'NFC', 'South'),
(3, 'Baltimore Ravens', 'BAL', 'AFC', 'North'),
(4, 'Buffalo Bills', 'BUF', 'AFC', 'East'),
(5, 'Carolina Panthers', 'CAR', 'NFC', 'South'),
(6, 'Chicago Bears', 'CHI', 'NFC', 'North'),
(7, 'Cincinnati Bengals', 'CIN', 'AFC', 'North'),
(8, 'Cleveland Browns', 'CLE', 'AFC', 'North'),
(9, 'Dallas Cowboys', 'DAL', 'NFC', 'East'),
(10, 'Denver Broncos', 'DEN', 'AFC', 'West'),
(11, 'Detroit Lions', 'DET', 'NFC', 'North'),
(12, 'Green Bay Packers', 'GB', 'NFC', 'North'),
(13, 'Houston Texans', 'HOU', 'AFC', 'South'),
(14, 'Indianapolis Colts', 'IND', 'AFC', 'South'),
(15, 'Jacksonville Jaguars', 'JAX', 'AFC', 'South'),
(16, 'Kansas City Chiefs', 'KC', 'AFC', 'West'),
(17, 'Miami Dolphins', 'MIA', 'AFC', 'East'),
(18, 'Minnesota Vikings', 'MIN', 'NFC', 'North'),
(19, 'New England Patriots', 'NE', 'AFC', 'East'),
(20, 'New Orleans Saints', 'NO', 'NFC', 'South'),
(21, 'NY Giants', 'NYG', 'NFC', 'East'),
(22, 'NY Jets', 'NYJ', 'AFC', 'East'),
(23, 'Oakland Raiders', 'OAK', 'AFC', 'West'),
(24, 'Philadelphia Eagles', 'PHI', 'NFC', 'East'),
(25, 'Pittsburgh Steelers', 'PIT', 'AFC', 'North'),
(26, 'San Diego Chargers', 'SD', 'AFC', 'West'),
(27, 'San Francisco 49ers', 'SF', 'NFC', 'West'),
(28, 'Seattle Seahawks', 'SEA', 'NFC', 'West'),
(29, 'St. Louis Rams', 'STL', 'NFC', 'West'),
(30, 'Tampa Bay Buccaneers', 'TB', 'NFC', 'South'),
(31, 'Tennessee Titans', 'TEN', 'AFC', 'South'),
(32, 'Washington Redskins', 'WAS', 'NFC', 'East');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `teams`
--
ALTER TABLE `teams`
ADD PRIMARY KEY (`id`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment