-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 04, 2018 at 11:07 PM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Database: `assignment` -- -- -------------------------------------------------------- -- -- Table structure for table `current_benefits` -- CREATE TABLE IF NOT EXISTS `current_benefits` ( `Emp_SSN` int(20) NOT NULL, `Salary_Level` int(20) NOT NULL, `Bonus` int(20) NOT NULL, `Stock_Options_Exercised` int(20) NOT NULL, `Effective_Since` date NOT NULL, PRIMARY KEY (`Emp_SSN`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `current_benefits` -- INSERT INTO `current_benefits` (`Emp_SSN`, `Salary_Level`, `Bonus`, `Stock_Options_Exercised`, `Effective_Since`) VALUES (123456789, 750000, 100000, 325000, '2013-01-01'), (123456790, 35000, 10000, 25000, '2011-01-01'), (123456791, 65000, 10000, 25000, '2007-01-01'), (123456792, 70000, 10000, 25000, '1999-01-01'), (123456793, 175000, 80000, 125000, '2008-01-01'), (123456794, 55000, 10000, 25000, '2010-01-01'), (123456795, 65000, 10000, 25000, '2015-01-01'), (123456796, 95000, 10000, 25000, '2014-01-01'), (123456797, 195000, 190000, 225000, '2014-01-01'); -- -------------------------------------------------------- -- -- Table structure for table `department` -- CREATE TABLE IF NOT EXISTS `department` ( `Dpt_ID` int(5) NOT NULL, `Department_Name` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `department` -- INSERT INTO `department` (`Dpt_ID`, `Department_Name`) VALUES (0, 'President’s Office'), (11, 'Accounting'), (12, 'Production'), (13, 'Marketing'); -- -------------------------------------------------------- -- -- Table structure for table `employee` -- CREATE TABLE IF NOT EXISTS `employee` ( `Emp_SSN` int(20) NOT NULL, `First_Name` text NOT NULL, `Middle_Initial` varchar(5) NOT NULL, `Last_Name` text NOT NULL, `Date_of_Birth` date NOT NULL, `Dpt_Id` int(5) NOT NULL, `Mngr_SSN` int(20) NOT NULL, PRIMARY KEY (`Emp_SSN`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `employee` -- INSERT INTO `employee` (`Emp_SSN`, `First_Name`, `Middle_Initial`, `Last_Name`, `Date_of_Birth`, `Dpt_Id`, `Mngr_SSN`) VALUES (123456789, 'Melvin ', 'T', 'Sharply', '1954-07-01', 0, 123456789), (123456790, 'Mary', 'S', 'Jones', '1974-07-02', 11, 123456797), (123456791, 'Iim', 'T', 'Wilson', '1986-07-03', 12, 123456793), (123456792, 'Mike', 'F', 'Taylor', '1990-07-04', 13, 123456797), (123456793, 'Celia', 'M', 'Mayes', '1990-07-05', 12, 123456789), (123456794, 'Truedy', 'T', 'Browning', '1963-07-06', 13, 123456797), (123456795, 'Miguel', 'P', 'Brown', '1984-09-07', 11, 123456797), (123456796, 'Cindy', 'S', 'Beasley', '1974-07-08', 12, 123456793), (123456797, 'Melvin', 'Q', 'Dunne', '1990-07-02', 11, 123456789); -- -------------------------------------------------------- -- -- Table structure for table `employee_work` -- CREATE TABLE IF NOT EXISTS `employee_work` ( `Emp_SSN` int(20) NOT NULL, `First_Name` text NOT NULL, `Middle_Initial` varchar(5) NOT NULL, `Last_Name` text NOT NULL, `Date_of_Birth` date NOT NULL, `Dpt_Id` int(5) NOT NULL, `Mngr_SSN` int(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `employee_work` -- INSERT INTO `employee_work` (`Emp_SSN`, `First_Name`, `Middle_Initial`, `Last_Name`, `Date_of_Birth`, `Dpt_Id`, `Mngr_SSN`) VALUES (123456789, 'Melvin ', 'T', 'Sharply', '1954-07-01', 0, 123456789), (123456790, 'Mary', 'S', 'Jones', '1974-07-02', 11, 123456797), (123456791, 'Iim', 'T', 'Wilson', '1986-07-03', 12, 123456793), (123456792, 'Mike', 'F', 'Taylor', '1990-07-04', 13, 123456797), (123456793, 'Celia', 'M', 'Mayes', '1990-07-05', 12, 123456789), (123456794, 'Truedy', 'T', 'Browning', '1963-07-06', 13, 123456797), (123456795, 'Miguel', 'P', 'Brown', '1984-09-07', 11, 123456797), (123456796, 'Cindy', 'S', 'Beasley', '1974-07-08', 12, 123456793), (123456797, 'Melvin', 'Q', 'Dunne', '1990-07-02', 11, 123456789); -- -------------------------------------------------------- -- -- Table structure for table `history_benefits` -- CREATE TABLE IF NOT EXISTS `history_benefits` ( `Emp_SSN` int(20) NOT NULL, `Salary_Level` int(20) NOT NULL, `Bonus` int(20) NOT NULL, `Stock_Options_Exercised` int(20) NOT NULL, `Effective_Start` date NOT NULL, `Effective_End` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `history_benefits` -- INSERT INTO `history_benefits` (`Emp_SSN`, `Salary_Level`, `Bonus`, `Stock_Options_Exercised`, `Effective_Start`, `Effective_End`) VALUES (123456789, 225000, 90000, 325000, '2006-01-01', '2009-01-01'), (123456790, 25000, 10000, 25000, '2005-01-01', '2009-01-01'), (123456791, 42000, 10000, 25000, '2004-01-01', '2009-01-01'), (123456792, 48000, 10000, 25000, '2008-01-01', '2009-01-01'), (123456793, 130000, 80000, 125000, '2003-01-01', '2009-01-01'), (123456794, 40000, 10000, 25000, '1986-01-01', '2009-01-17'), (123456795, 45000, 10000, 25000, '2006-01-01', '2008-01-01'), (123456796, 45000, 10000, 25000, '2006-01-01', '2007-01-01'), (123456797, 125000, 90000, 225000, '2006-01-01', '2007-01-01'), (123456789, 200000, 100000, 325000, '2005-01-01', '2006-01-01'), (123456790, 25000, 10000, 25000, '2005-01-01', '2006-01-01'), (123456791, 40000, 10000, 25000, '2004-01-01', '2005-01-01'), (123456792, 40000, 10000, 25000, '2005-01-01', '2006-01-01'), (123456793, 100000, 80000, 125000, '2005-01-01', '2006-01-01'), (123456794, 30000, 10000, 25000, '2008-01-01', '2009-01-01'), (123456795, 40000, 10000, 25000, '2005-01-01', '2006-01-01'), (123456796, 40000, 10000, 25000, '2005-01-01', '2006-01-01'), (123456797, 100000, 90000, 225000, '2007-01-01', '2008-01-01'); -- -------------------------------------------------------- -- -- Table structure for table `newtable` -- CREATE TABLE IF NOT EXISTS `newtable` ( `Emp_SSN` int(20) NOT NULL, `First_Name` text NOT NULL, `Middle_Initial` varchar(5) NOT NULL, `Last_Name` text NOT NULL, `Date_of_Birth` date NOT NULL, `Dpt_Id` int(5) NOT NULL, `Mngr_SSN` int(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `newtable` -- INSERT INTO `newtable` (`Emp_SSN`, `First_Name`, `Middle_Initial`, `Last_Name`, `Date_of_Birth`, `Dpt_Id`, `Mngr_SSN`) VALUES (123456789, 'Melvin ', 'T', 'Sharply', '1954-07-01', 0, 123456789), (123456790, 'Mary', 'S', 'Jones', '1974-07-02', 11, 123456797), (123456791, 'Iim', 'T', 'Wilson', '1986-07-03', 12, 123456793), (123456792, 'Mike', 'F', 'Taylor', '1990-07-04', 13, 123456797), (123456793, 'Celia', 'M', 'Mayes', '1990-07-05', 12, 123456789), (123456794, 'Truedy', 'T', 'Browning', '1963-07-06', 13, 123456797), (123456795, 'Miguel', 'P', 'Brown', '1984-09-07', 11, 123456797), (123456796, 'Cindy', 'S', 'Beasley', '1974-07-08', 12, 123456793), (123456797, 'Melvin', 'Q', 'Dunne', '1990-07-02', 11, 123456789); -- -------------------------------------------------------- -- -- Table structure for table `phone_numbers` -- CREATE TABLE IF NOT EXISTS `phone_numbers` ( `Area_Code` int(11) NOT NULL, `Phone_Number` int(11) NOT NULL, `Extension` int(11) NOT NULL, `Emp_SSN` int(11) NOT NULL, `Type_Phone` text NOT NULL, PRIMARY KEY (`Emp_SSN`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `phone_numbers` -- INSERT INTO `phone_numbers` (`Area_Code`, `Phone_Number`, `Extension`, `Emp_SSN`, `Type_Phone`) VALUES (111, 9991234, 1112, 123456789, 'Office'), (111, 9991235, 1113, 123456790, 'Office'), (111, 9991236, 1114, 123456791, 'Office'), (111, 9991237, 1115, 123456792, 'Office'), (111, 9991238, 1116, 123456793, 'Office'), (111, 9991239, 1117, 123456794, 'Office'), (111, 9991230, 1118, 123456795, 'Office'), (111, 9991231, 1119, 123456796, 'Office'), (111, 9991232, 1110, 123456797, 'Office'), (111, 8991235, 1113, 1234456790, 'Home'); /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;