SlideShare a Scribd company logo
Description: Master Index of EDGAR Dissemination
Feed
Last Data Received: March 31, 2018
Comments: [email protected]
Anonymous FTP: ftp://ftp.sec.gov/edgar/
Cloud HTTP: https://www.sec.gov/Archives/
CIK|Company Name|Form Type|Date Filed|Filename
---------------------------------------------------------------------------
-----
1000032|BINCH JAMES G|4|2018-02-
16|edgar/data/1000032/0000913165-18-000034.txt
1000045|NICHOLAS FINANCIAL INC|10-Q|2018-02-
09|edgar/data/1000045/0001193125-18-037381.txt
1000045|NICHOLAS FINANCIAL INC|4|2018-02-
15|edgar/data/1000045/0001000045-18-000004.txt
1000045|NICHOLAS FINANCIAL INC|4|2018-03-
08|edgar/data/1000045/0001000045-18-000005.txt
1000045|NICHOLAS FINANCIAL INC|4|2018-03-
20|edgar/data/1000045/0001609591-18-000001.txt
1000045|NICHOLAS FINANCIAL INC|8-K|2018-01-
09|edgar/data/1000045/0001193125-18-007253.txt
1000045|NICHOLAS FINANCIAL INC|8-K|2018-02-
05|edgar/data/1000045/0001193125-18-032199.txt
1000045|NICHOLAS FINANCIAL INC|8-K|2018-02-
07|edgar/data/1000045/0001193125-18-034693.txt
1000045|NICHOLAS FINANCIAL INC|8-K|2018-02-
20|edgar/data/1000045/0001193125-18-049706.txt
1000045|NICHOLAS FINANCIAL INC|SC 13G/A|2018-02-
12|edgar/data/1000045/0001104659-18-008485.txt
1000045|NICHOLAS FINANCIAL INC|SC 13G/A|2018-02-
14|edgar/data/1000045/0001037389-18-000160.txt
1000045|NICHOLAS FINANCIAL INC|SC 13G|2018-02-
09|edgar/data/1000045/0001258897-18-001316.txt
1000045|NICHOLAS FINANCIAL INC|SC 13G|2018-02-
13|edgar/data/1000045/0000315066-18-001444.txt
1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|13F-
HR|2018-02-14|edgar/data/1000097/0000919574-18-001804.txt
1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|SC
13G/A|2018-01-02|edgar/data/1000097/0000919574-18-
000008.txt
1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|SC
13G/A|2018-02-14|edgar/data/1000097/0000919574-18-
001760.txt
1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|SC
13G/A|2018-02-14|edgar/data/1000097/0000919574-18-
001765.txt
1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|SC
13G/A|2018-02-14|edgar/data/1000097/0000919574-18-
001773.txt
1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|SC
13G/A|2018-02-14|edgar/data/1000097/0000919574-18-
001777.txt
1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|SC
13G/A|2018-02-14|edgar/data/1000097/0000919574-18-
001785.txt
1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|SC
13G|2018-02-14|edgar/data/1000097/0000919574-18-001790.txt
1000177|NORDIC AMERICAN TANKERS Ltd|6-K|2018-02-
28|edgar/data/1000177/0000919574-18-002148.txt
1000177|NORDIC AMERICAN TANKERS Ltd|CORRESP|2018-
01-19|edgar/data/1000177/0000919574-18-000510.txt
1000177|NORDIC AMERICAN TANKERS Ltd|CORRESP|2018-
02-08|edgar/data/1000177/0000919574-18-000929.txt
1000177|NORDIC AMERICAN TANKERS Ltd|CORRESP|2018-
02-22|edgar/data/1000177/0000919574-18-001989.txt
1000177|NORDIC AMERICAN TANKERS Ltd|CORRESP|2018-
03-02|edgar/data/1000177/0000919574-18-002224.txt
1000177|NORDIC AMERICAN TANKERS Ltd|SC 13G|2018-
01-12|edgar/data/1000177/0000895421-18-000006.txt
1000177|NORDIC AMERICAN TANKERS Ltd|UPLOAD|2018-
02-05|edgar/data/1000177/0000000000-18-004057.txt
1000177|NORDIC AMERICAN TANKERS Ltd|UPLOAD|2018-
03-19|edgar/data/1000177/0000000000-18-008366.txt
1000184|SAP SE|20-F|2018-02-
28|edgar/data/1000184/0001104659-18-013050.txt
1000184|SAP SE|6-K|2018-01-
30|edgar/data/1000184/0001104659-18-005109.txt
1000184|SAP SE|6-K|2018-01-
31|edgar/data/1000184/0001104659-18-005283.txt
1000184|SAP SE|6-K|2018-02-
22|edgar/data/1000184/0001104659-18-011197.txt
1000184|SAP SE|6-K|2018-03-
01|edgar/data/1000184/0001104659-18-013742.txt
1000184|SAP SE|6-K|2018-03-
06|edgar/data/1000184/0001104659-18-015111.txt
1000184|SAP SE|DFAN14A|2018-01-
30|edgar/data/1000184/0001104659-18-005123.txt
1000184|SAP SE|DFAN14A|2018-01-
30|edgar/data/1000184/0001104659-18-005124.txt
1000184|SAP SE|DFAN14A|2018-01-
30|edgar/data/1000184/0001104659-18-005125.txt
1000184|SAP SE|DFAN14A|2018-01-
30|edgar/data/1000184/0001104659-18-005126.txt
# Dump File
#
# Database is ported from MS Access
#--------------------------------------------------------
# Program Version 3.0.138
CREATE DATABASE IF NOT EXISTS `class`;
USE `class`;
#
# Table structure for table 'Department'
#
DROP TABLE IF EXISTS `Department`;
CREATE TABLE `Department` (
`Dept_Code` VARCHAR(3) NOT NULL,
`Dept_Name` VARCHAR(20),
INDEX (`Dept_Code`),
PRIMARY KEY (`Dept_Code`)
) ENGINE=myisam DEFAULT CHARSET=utf8;
SET autocommit=1;
#
# Dumping data for table 'Department'
#
INSERT INTO `Department` (`Dept_Code`, `Dept_Name`)
VALUES ('Act', 'Accounting');
INSERT INTO `Department` (`Dept_Code`, `Dept_Name`)
VALUES ('Exe', 'Executive');
INSERT INTO `Department` (`Dept_Code`, `Dept_Name`)
VALUES ('Fin', 'Finance');
INSERT INTO `Department` (`Dept_Code`, `Dept_Name`)
VALUES ('Mkt', 'Marketing');
INSERT INTO `Department` (`Dept_Code`, `Dept_Name`)
VALUES ('Per', 'Personnel');
INSERT INTO `Department` (`Dept_Code`, `Dept_Name`)
VALUES ('Sal', 'Sales');
INSERT INTO `Department` (`Dept_Code`, `Dept_Name`)
VALUES ('Shp', 'Shipping');
# 7 records
#
# Table structure for table 'Employee'
#
DROP TABLE IF EXISTS `Employee`;
CREATE TABLE `Employee` (
`Emp_ID` INTEGER NOT NULL,
`Emp_FirstName` VARCHAR(10),
`Emp_LastName` VARCHAR(10),
`Dept_Code` VARCHAR(3),
`Emp_HireDate` DATETIME,
`Emp_CreditLimit` DECIMAL(19,4),
`Emp_Phone` VARCHAR(4),
`Emp_MgrID` INTEGER,
INDEX (`Dept_Code`),
INDEX (`Emp_ID`),
INDEX (`Emp_MgrID`),
PRIMARY KEY (`Emp_ID`)
) ENGINE=myisam DEFAULT CHARSET=utf8;
SET autocommit=1;
#
# Dumping data for table 'Employee'
#
INSERT INTO `Employee` (`Emp_ID`, `Emp_FirstName`,
`Emp_LastName`, `Dept_Code`, `Emp_HireDate`,
`Emp_CreditLimit`, `Emp_Phone`, `Emp_MgrID`) VALUES
(201, 'Susan', 'Brown', 'Exe', '1992-06-01 00:00:00', 30, '3484',
NULL);
INSERT INTO `Employee` (`Emp_ID`, `Emp_FirstName`,
`Emp_LastName`, `Dept_Code`, `Emp_HireDate`,
`Emp_CreditLimit`, `Emp_Phone`, `Emp_MgrID`) VALUES
(202, 'Jim', 'Kern', 'Sal', '1995-08-15 00:00:00', 26, '8722', 201);
INSERT INTO `Employee` (`Emp_ID`, `Emp_FirstName`,
`Emp_LastName`, `Dept_Code`, `Emp_HireDate`,
`Emp_CreditLimit`, `Emp_Phone`, `Emp_MgrID`) VALUES
(203, 'Martha', 'Woods', 'Shp', '1997-02-01 00:00:00', 25, '7591',
201);
INSERT INTO `Employee` (`Emp_ID`, `Emp_FirstName`,
`Emp_LastName`, `Dept_Code`, `Emp_HireDate`,
`Emp_CreditLimit`, `Emp_Phone`, `Emp_MgrID`) VALUES
(204, 'Ellen', 'Owens', 'Sal', '1996-07-01 00:00:00', 15, '6830',
202);
INSERT INTO `Employee` (`Emp_ID`, `Emp_FirstName`,
`Emp_LastName`, `Dept_Code`, `Emp_HireDate`,
`Emp_CreditLimit`, `Emp_Phone`, `Emp_MgrID`) VALUES
(205, 'Henry', 'Perkins', 'Sal', '1998-03-01 00:00:00', 25, '5286',
202);
INSERT INTO `Employee` (`Emp_ID`, `Emp_FirstName`,
`Emp_LastName`, `Dept_Code`, `Emp_HireDate`,
`Emp_CreditLimit`, `Emp_Phone`, `Emp_MgrID`) VALUES
(206, 'Carol', 'Rose', 'Act', '1997-10-15 00:00:00', 15, '3829',
201);
INSERT INTO `Employee` (`Emp_ID`, `Emp_FirstName`,
`Emp_LastName`, `Dept_Code`, `Emp_HireDate`,
`Emp_CreditLimit`, `Emp_Phone`, `Emp_MgrID`) VALUES
(207, 'Dan', 'Smith', 'Shp', '1996-12-01 00:00:00', 25, '2259',
203);
INSERT INTO `Employee` (`Emp_ID`, `Emp_FirstName`,
`Emp_LastName`, `Dept_Code`, `Emp_HireDate`,
`Emp_CreditLimit`, `Emp_Phone`, `Emp_MgrID`) VALUES
(208, 'Fred', 'Campbell', 'Shp', '1997-04-01 00:00:00', 25,
'1752', 203);
INSERT INTO `Employee` (`Emp_ID`, `Emp_FirstName`,
`Emp_LastName`, `Dept_Code`, `Emp_HireDate`,
`Emp_CreditLimit`, `Emp_Phone`, `Emp_MgrID`) VALUES
(209, 'Paula', 'Jacobs', 'Mkt', '1998-03-17 00:00:00', 15, '3357',
201);
INSERT INTO `Employee` (`Emp_ID`, `Emp_FirstName`,
`Emp_LastName`, `Dept_Code`, `Emp_HireDate`,
`Emp_CreditLimit`, `Emp_Phone`, `Emp_MgrID`) VALUES
(210, 'Nancy', 'Hoffman', 'Sal', '1996-02-15 00:00:00', 25,
'2974', 203);
# 10 records
#
# Table structure for table 'Item'
#
DROP TABLE IF EXISTS `Item`;
CREATE TABLE `Item` (
`Item_Number` INTEGER NOT NULL,
`Item_Desc` VARCHAR(20),
`Item_Price` DECIMAL(19,4),
`Item_PriceIncrease` DECIMAL(19,4),
`Supplier_ID` VARCHAR(3),
PRIMARY KEY (`Item_Number`),
INDEX (`Supplier_ID`)
) ENGINE=myisam DEFAULT CHARSET=utf8;
SET autocommit=1;
#
# Dumping data for table 'Item'
#
INSERT INTO `Item` (`Item_Number`, `Item_Desc`,
`Item_Price`, `Item_PriceIncrease`, `Supplier_ID`) VALUES (1,
'Fresh Salad', 2, .25, 'Asp');
INSERT INTO `Item` (`Item_Number`, `Item_Desc`,
`Item_Price`, `Item_PriceIncrease`, `Supplier_ID`) VALUES (2,
'Soup of the Day', 1.5, NULL, 'Asp');
INSERT INTO `Item` (`Item_Number`, `Item_Desc`,
`Item_Price`, `Item_PriceIncrease`, `Supplier_ID`) VALUES (3,
'Sandwich', 3.5, .4, 'Asp');
INSERT INTO `Item` (`Item_Number`, `Item_Desc`,
`Item_Price`, `Item_PriceIncrease`, `Supplier_ID`) VALUES (4,
'Grilled steak', 6, .7, 'Cbc');
INSERT INTO `Item` (`Item_Number`, `Item_Desc`,
`Item_Price`, `Item_PriceIncrease`, `Supplier_ID`) VALUES (5,
'Hamburger', 2.5, .3, 'Cbc');
INSERT INTO `Item` (`Item_Number`, `Item_Desc`,
`Item_Price`, `Item_PriceIncrease`, `Supplier_ID`) VALUES (6,
'Broccoli', 1, .05, 'Frv');
INSERT INTO `Item` (`Item_Number`, `Item_Desc`,
`Item_Price`, `Item_PriceIncrease`, `Supplier_ID`) VALUES (7,
'French Fries', 1.5, NULL, 'Frv');
INSERT INTO `Item` (`Item_Number`, `Item_Desc`,
`Item_Price`, `Item_PriceIncrease`, `Supplier_ID`) VALUES (8,
'Soda', 1.25, .25, 'Jbr');
INSERT INTO `Item` (`Item_Number`, `Item_Desc`,
`Item_Price`, `Item_PriceIncrease`, `Supplier_ID`) VALUES (9,
'Coffee', .85, .15, 'Jbr');
INSERT INTO `Item` (`Item_Number`, `Item_Desc`,
`Item_Price`, `Item_PriceIncrease`, `Supplier_ID`) VALUES
(10, 'Dessert', 3, .5, 'Vsb');
# 10 records
#
# Table structure for table 'Lunch'
#
DROP TABLE IF EXISTS `Lunch`;
CREATE TABLE `Lunch` (
`Lunch_ID` INTEGER NOT NULL,
`Lunch_Date` DATETIME,
`Emp_ID` INTEGER,
INDEX (`Emp_ID`),
INDEX (`Lunch_ID`),
PRIMARY KEY (`Lunch_ID`)
) ENGINE=myisam DEFAULT CHARSET=utf8;
SET autocommit=1;
#
# Dumping data for table 'Lunch'
#
INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`)
VALUES (1, '1998-11-16 00:00:00', 201);
INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`)
VALUES (2, '1998-11-16 00:00:00', 202);
INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`)
VALUES (3, '1998-11-16 00:00:00', 203);
INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`)
VALUES (4, '1998-11-16 00:00:00', 207);
INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`)
VALUES (5, '1998-11-16 00:00:00', 206);
INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`)
VALUES (6, '1998-11-16 00:00:00', 210);
INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`)
VALUES (7, '1998-11-25 00:00:00', 201);
INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`)
VALUES (8, '1998-11-25 00:00:00', 205);
INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`)
VALUES (9, '1998-11-25 00:00:00', 204);
INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`)
VALUES (10, '1998-11-25 00:00:00', 207);
INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`)
VALUES (11, '1998-11-25 00:00:00', 208);
INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`)
VALUES (12, '1998-12-04 00:00:00', 201);
INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`)
VALUES (13, '1998-12-04 00:00:00', 203);
INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`)
VALUES (14, '1998-12-04 00:00:00', 205);
INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`)
VALUES (15, '1998-12-04 00:00:00', 210);
INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`)
VALUES (16, '1998-12-04 00:00:00', 208);
# 16 records
#
# Table structure for table 'Lunch_item'
#
DROP TABLE IF EXISTS `Lunch_item`;
CREATE TABLE `Lunch_item` (
`Lunch_ID` INTEGER NOT NULL,
`Item_Number` INTEGER NOT NULL,
`LI_Quantity` INTEGER,
INDEX (`Lunch_ID`),
PRIMARY KEY (`Lunch_ID`, `Item_Number`)
) ENGINE=myisam DEFAULT CHARSET=utf8;
SET autocommit=1;
#
# Dumping data for table 'Lunch_item'
#
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (1, 1, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (1, 3, 2);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (1, 5, 2);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (2, 1, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (2, 3, 2);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (2, 4, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (2, 6, 2);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (3, 1, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (3, 4, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (3, 7, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (3, 8, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (3, 9, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (4, 2, 2);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (4, 3, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (4, 7, 2);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (4, 10, 2);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (5, 1, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (5, 2, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (5, 3, 2);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (5, 5, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (5, 8, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (6, 3, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (6, 4, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (6, 5, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (6, 6, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (6, 7, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (7, 1, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (7, 2, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (7, 8, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (8, 1, 2);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (8, 4, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (8, 5, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (8, 6, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (8, 8, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (8, 9, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (9, 1, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (9, 2, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (9, 3, 2);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (9, 4, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (10, 2, 2);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (10, 4, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (10, 7, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (10, 8, 2);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (11, 1, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (11, 2, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (11, 3, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (11, 4, 2);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (12, 1, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (12, 3, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (12, 5, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (12, 8, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (12, 9, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (13, 1, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (13, 2, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (13, 3, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (13, 4, 2);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (13, 5, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (14, 1, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (14, 2, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (14, 3, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (14, 4, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (14, 5, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (15, 1, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (15, 2, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (15, 3, 2);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (15, 4, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (16, 1, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (16, 2, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (16, 3, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (16, 4, 1);
INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`,
`LI_Quantity`) VALUES (16, 5, 1);
# 71 records
#
# Table structure for table 'Supplier'
#
DROP TABLE IF EXISTS `Supplier`;
CREATE TABLE `Supplier` (
`Supplier_ID` VARCHAR(3) NOT NULL,
`Supplier_Name` VARCHAR(30),
PRIMARY KEY (`Supplier_ID`),
INDEX (`Supplier_ID`)
) ENGINE=myisam DEFAULT CHARSET=utf8;
SET autocommit=1;
#
# Dumping data for table 'Supplier'
#
INSERT INTO `Supplier` (`Supplier_ID`, `Supplier_Name`)
VALUES ('Arr', 'Alice & Ray's Restaurant');
INSERT INTO `Supplier` (`Supplier_ID`, `Supplier_Name`)
VALUES ('Asp', 'A Soup Place');
INSERT INTO `Supplier` (`Supplier_ID`, `Supplier_Name`)
VALUES ('Cbc', 'Certified Beef Company');
INSERT INTO `Supplier` (`Supplier_ID`, `Supplier_Name`)
VALUES ('Frv', 'Frank Reed's Vegetables');
INSERT INTO `Supplier` (`Supplier_ID`, `Supplier_Name`)
VALUES ('Fsn', 'Frank & Sons');
INSERT INTO `Supplier` (`Supplier_ID`, `Supplier_Name`)
VALUES ('Jbr', 'Just Beverages');
INSERT INTO `Supplier` (`Supplier_ID`, `Supplier_Name`)
VALUES ('Jps', 'Jim Parker's Shop');
INSERT INTO `Supplier` (`Supplier_ID`, `Supplier_Name`)
VALUES ('Vsb', 'Virginia Street Bakery');
# 8 records
Description: Master Index of EDGAR Dissemination
Feed
Last Data Received: March 31, 2018
Comments: [email protected]
Anonymous FTP: ftp://ftp.sec.gov/edgar/
Cloud HTTP: https://www.sec.gov/Archives/
CIK|Company Name|Form Type|Date Filed|Filename
---------------------------------------------------------------------------
-----
1000032|BINCH JAMES G|4|2018-02-
16|edgar/data/1000032/0000913165-18-000034.txt
1000045|NICHOLAS FINANCIAL INC|10-Q|2018-02-
09|edgar/data/1000045/0001193125-18-037381.txt
1000045|NICHOLAS FINANCIAL INC|4|2018-02-
15|edgar/data/1000045/0001000045-18-000004.txt
1000045|NICHOLAS FINANCIAL INC|4|2018-03-
08|edgar/data/1000045/0001000045-18-000005.txt
1000045|NICHOLAS FINANCIAL INC|4|2018-03-
20|edgar/data/1000045/0001609591-18-000001.txt
1000045|NICHOLAS FINANCIAL INC|8-K|2018-01-
09|edgar/data/1000045/0001193125-18-007253.txt
1000045|NICHOLAS FINANCIAL INC|8-K|2018-02-
05|edgar/data/1000045/0001193125-18-032199.txt
1000045|NICHOLAS FINANCIAL INC|8-K|2018-02-
07|edgar/data/1000045/0001193125-18-034693.txt
1000045|NICHOLAS FINANCIAL INC|8-K|2018-02-
20|edgar/data/1000045/0001193125-18-049706.txt
1000045|NICHOLAS FINANCIAL INC|SC 13G/A|2018-02-
12|edgar/data/1000045/0001104659-18-008485.txt
1000045|NICHOLAS FINANCIAL INC|SC 13G/A|2018-02-
14|edgar/data/1000045/0001037389-18-000160.txt
1000045|NICHOLAS FINANCIAL INC|SC 13G|2018-02-
09|edgar/data/1000045/0001258897-18-001316.txt
1000045|NICHOLAS FINANCIAL INC|SC 13G|2018-02-
13|edgar/data/1000045/0000315066-18-001444.txt
1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|13F-
HR|2018-02-14|edgar/data/1000097/0000919574-18-001804.txt
1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|SC
13G/A|2018-01-02|edgar/data/1000097/0000919574-18-
000008.txt
1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|SC
13G/A|2018-02-14|edgar/data/1000097/0000919574-18-
001760.txt
1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|SC
13G/A|2018-02-14|edgar/data/1000097/0000919574-18-
001765.txt
1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|SC
13G/A|2018-02-14|edgar/data/1000097/0000919574-18-
001773.txt
1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|SC
13G/A|2018-02-14|edgar/data/1000097/0000919574-18-
001777.txt
1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|SC
13G/A|2018-02-14|edgar/data/1000097/0000919574-18-
001785.txt
1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|SC
13G|2018-02-14|edgar/data/1000097/0000919574-18-001790.txt
1000177|NORDIC AMERICAN TANKERS Ltd|6-K|2018-02-
28|edgar/data/1000177/0000919574-18-002148.txt
1000177|NORDIC AMERICAN TANKERS Ltd|CORRESP|2018-
01-19|edgar/data/1000177/0000919574-18-000510.txt
1000177|NORDIC AMERICAN TANKERS Ltd|CORRESP|2018-
02-08|edgar/data/1000177/0000919574-18-000929.txt
1000177|NORDIC AMERICAN TANKERS Ltd|CORRESP|2018-
02-22|edgar/data/1000177/0000919574-18-001989.txt
1000177|NORDIC AMERICAN TANKERS Ltd|CORRESP|2018-
03-02|edgar/data/1000177/0000919574-18-002224.txt
1000177|NORDIC AMERICAN TANKERS Ltd|SC 13G|2018-
01-12|edgar/data/1000177/0000895421-18-000006.txt
1000177|NORDIC AMERICAN TANKERS Ltd|UPLOAD|2018-
02-05|edgar/data/1000177/0000000000-18-004057.txt
1000177|NORDIC AMERICAN TANKERS Ltd|UPLOAD|2018-
03-19|edgar/data/1000177/0000000000-18-008366.txt
1000184|SAP SE|20-F|2018-02-
28|edgar/data/1000184/0001104659-18-013050.txt
1000184|SAP SE|6-K|2018-01-
30|edgar/data/1000184/0001104659-18-005109.txt
1000184|SAP SE|6-K|2018-01-
31|edgar/data/1000184/0001104659-18-005283.txt
1000184|SAP SE|6-K|2018-02-
22|edgar/data/1000184/0001104659-18-011197.txt
1000184|SAP SE|6-K|2018-03-
01|edgar/data/1000184/0001104659-18-013742.txt
1000184|SAP SE|6-K|2018-03-
06|edgar/data/1000184/0001104659-18-015111.txt
1000184|SAP SE|DFAN14A|2018-01-
30|edgar/data/1000184/0001104659-18-005123.txt
1000184|SAP SE|DFAN14A|2018-01-
30|edgar/data/1000184/0001104659-18-005124.txt
1000184|SAP SE|DFAN14A|2018-01-
30|edgar/data/1000184/0001104659-18-005125.txt
1000184|SAP SE|DFAN14A|2018-01-
30|edgar/data/1000184/0001104659-18-005126.txt
Module 5: Using Databases with Python
• File-based systems
• Database systems
• Relational databases
• Structured Query Language
ISM 6405- Dr. Milad Baghersad 1
Reference: Database Systems: Design, Implementation and
Management, 12th edition by Carlos
Coronel and Steven Morris (Cengage Learning, ISBN: 978-1-
305-62748-2)
History: traditional file-based systems
ISM 6405- Dr. Milad Baghersad 2
• Computerized manual filing systems
• Individual files for each purpose
• Each business unit had its own file system
• Organized to facilitate the expected use of the data
• Data processing specialist required to retrieve data and run
reports
Example: file-based systems
ISM 6405- Dr. Milad Baghersad 3
• Suppose, as a FAU student, that you need to do the following
things:
1. Register for courses
2. Pay tuition
3. Work part-time on campus
File Based Systems Illustration
ISM 6405- Dr. Milad Baghersad 4
TuitionRec (ID, name,
address, amtPaid,
balance, …)
RegRec (ID, name,
address, courses, …)
EmpRec (ID, name,
address, wage, …)
Tuition
payment
entry and
reports
File
handling
routines
File
definition
Course
registration
entry and
reports
File
handling
routines
File
definition
Work-study
data entry
and reports
File
handling
routines
File
definition
Tuition payment application programs
Course registration application programs
Work-study application programs
Payment file(s)
Registration file(s)
Work-study file(s)
Issues with file-based systems
ISM 6405- Dr. Milad Baghersad 5
• Data redundancy
• Different files contain same information (ID, name, address,
etc…)
• Isolation of data in separate systems
• Data inconsistency (e.g., different ID values for the same
person)
• Lack of data integrity
• Data anomalies
• All changes may not be made successfully
• Update / Insertion / Deletion anomalies
Better approach: database systems
• Database: a collection of interrelated data
organized in such a way that it corresponds to the
needs and structure of an organization and can be
used by more than one person for more than one
application.
ISM 6405- Dr. Milad Baghersad 6
Example: database system
ISM 6405- Dr. Milad Baghersad 7
Tuition
payment
entry and
reports
Course
registration
entry and
reports
Work-study
data entry
and reports
Tuition payment application programs
Course registration application programs
Work-study application programs
DBMS
Database
Advantages of database systems
ISM 6405- Dr. Milad Baghersad 8
• Minimal data redundancy
• Data consistency
• Integration of data
• Improved data sharing
• Enforcement of standards
• Ease of application development
• Uniform security, privacy, and integrity
• Data independence from applications
• "self-describing" data stored in a data dictionary (metadata)
File-based systems often imply "flat" data files:
ISM 6405- Dr. Milad Baghersad 9
RecNo Name Address City State Zip Product Units Amount
1 John Smith 221 Main St. New York NY 08842
Television 1 $500
2 William Chin 43 1st Ave. Redmond WA 98332
Refrigerator 1 $800
3 William Chin 43 1st Ave. Redmond WA 98332 Toaster
1 $80
4 Marta Dieci 2 West Ave. Reno NV 92342 Television 1
$500
5 Marta Dieci 2 West Ave. Reno NV 92342 Radio 1 $40
6 Marta Dieci 2 West Ave. Reno NV 92342 Stereo 1 $200
7 Peter Melinkoff 53 NE Rodeo Miami FL 18332
Computer 1 $1500
8 Martin Sengali 1234 5th St. Boston FL 03423
Television 1 $500
9 Martin Sengali 1234 5th St. Boston FL 03423 Stereo 1
$200
10 Martin Sengali 1234 5th St. Boston FL 03423 Radio 1
$40
11 Martin Sengali 1234 5th St. Boston FL 03423
Refrigerator 1 $80
Subset of the problems with a file-based
system:
ISM 6405- Dr. Milad Baghersad 10
• Redundancy (i.e. data duplication)
• Update anomalies
• Update a single address requires you to update multiple entries
• Insertion anomalies
• You cannot insert information about customer until they have
actually
purchased something
• Deletion anomalies
• If there is a single instance of a given product being sold,
and for some
reason we decide to remove the customer who purchased it, we
will lose
information about the product also
Improving data management: Types of database
models
ISM 6405- Dr. Milad Baghersad 11
• Hierarchical database model
• Tree-based approach developed in 1960's
• Based on parent-child relationships (1:M)
• Network database model
• Created to improve on hierarchical model
• Allows records to have more than one parent
• Can access data from multiple points
• Relational database model
Relational database model
Turing Award Winner, Edgar F. Codd’s landmark paper, “A
Relational Model of
Data for Large Shared Data Banks" (1970) laid out a new way
to organize and
access data: the Relational Model.
12
Customer(CustomerID, Name, …
Order(OrderID, CustomerID, OrderDate, …
ItemsOrdered(OrderID, ItemID, Quantity, …
Items(ItemID, Description, Price, …
This Photo by Unknown
Author is licensed under
CC BY-SA
https://en.wikipedia.org/wiki/Edgar_F._Codd
https://creativecommons.org/licenses/by-sa/3.0/
Flat-file database
RecNo Name Address City State Zip Product Units Amount
1 John Smith 221 Main St. New York NY 08842
Television 1 $500
2 William Chin 43 1st Ave. Redmond WA 98332
Refrigerator 1 $800
3 William Chin 43 1st Ave. Redmond WA 98332 Toaster
1 $80
4 Marta Dieci 2 West Ave. Reno NV 92342 Television 1
$500
5 Marta Dieci 2 West Ave. Reno NV 92342 Radio 1 $40
6 Marta Dieci 2 West Ave. Reno NV 92342 Stereo 1 $200
7 Peter Melinkoff 53 NE Rodeo Miami FL 18332
Computer 1 $1500
8 Martin Sengali 1234 5th St. Boston FL 03423
Television 1 $500
9 Martin Sengali 1234 5th St. Boston FL 03423 Stereo 1
$200
10 Martin Sengali 1234 5th St. Boston FL 03423 Radio 1
$40
11 Martin Sengali 1234 5th St. Boston FL 03423
Refrigerator 1 $80
13
Example: relational database
14
Customer table
CusNo Name Address City State Zip
1 John Smith 221 Main St. New York NY 08842
2 William Chin 43 First Ave. Redmond WA 98332
3 Marta Dieci 2 West Ave. Reno NV 92342
4 Peter Melinkoff 53 NE Rodeo Miami FL 18332
5 Martin Sengali 1234 5th St. Boston MA 03423
CusNo Product Units Amount
1 Television 1 $500
2 Refrigerator 1 $800
2 Toaster 1 $80
3 Television 1 $500
3 Radio 1 $40
3 Stereo 1 $200
4 Computer 1 $1500
5 Television 1 $500
5 Stereo 1 $200
5 Radio 1 $40
5 Refrigerator 1 $800
OrderItem table
Another database in relational form
ISBN Title PubID Price
0-103-45678-9 Iliad 1 $25.00
0-11-345678-9 Moby Dick 3 $49.00
0-12-333433-3 On Liberty 1 $25.00
0-12-345678-9 Jane Eyre 3 $49.00
0-123-45678-0 Ulysses 2 $34.00
0-321-32132-1 Balloon 3 $34.00
0-55-123456-9 Main Street 3 $22.95
0-555-55555-9 MacBeth 2 $12.00
0-91-045678-5 Hamlet 2 $20.00
0-91-335678-7 Fairie Queene 1 $15.00
0-99-777777-7 King Lear 2 $49.00
0-99-999999-9 Emma 1 $20.00
1-1111-1111-1 C++ 1 $29.95
1-22-233700-0 Visual Basic 1 $25.00
AuID AuName AuPhone
1 Austen 111-111-1111
10 Jones 123-333-3333
11 Snoopy 321-321-2222
12 Grumpy 321-321-0000
13 Sleepy 321-321-1111
2 Melville 222-222-2222
3 Homer 333-333-3333
4 Roman 444-444-4444
5 Shakespeare 555-555-5555
6 Joyce 666-666-6666
7 Spencer 777-777-7777
8 Mill 888-888-8888
9 Smith 123-222-2222
ISBN AuID
0-103-45678-9 3
0-11-345678-9 2
0-12-333433-3 8
0-12-345678-9 1
0-123-45678-0 6
0-321-32132-1 11
0-321-32132-1 12
0-321-32132-1 13
0-55-123456-9 9
0-55-123456-9 10
0-555-55555-9 5
0-91-045678-5 5
0-91-335678-7 7
0-99-777777-7 5
0-99-999999-9 1
1-1111-1111-1 4
1-22-233700-0 4
PubID PubName PubPhone
1 Big House 123-456-7890
2 Alpha Press 999-999-9999
3 Small House 714-000-0000
BOOK
AUTHOR
PUBLISHER
BOOK/AUTHOR
15
Install MySQL Server and Workbench
Use the video: How To Install MySQL (Server and
Workbench) [05:57]
Please note as you are installing MySql, when you are
selecting Products and Features (see [02:30] in the video),
click on MySQL Connectors and add Python connector also.
If you can not add Python connector, later I will teach you
another method to connect Python and MySQL.
16
https://www.youtube.com/watch?v=u96rVINbAUI
Manipulating data in databases
Structured Query Language (SQL)
• creating database and table structures
• performing data manipulation and administration
• querying the database to extract useful information
17
Categories of SQL commands
• Data Definition Language (DDL)
– Commands that define a database, including creating, altering,
and
dropping tables and stored procedures, and establishing
constraints
• CREATE TABLE, set PRIMARY KEY
• Data Manipulation Language (DML)
– Commands that are used to manipulate data and extract
information
• SELECT, UPDATE, INSERT, DELETE
18
Data types
• ANSI/ISO SQL data types:
– INTEGER / SMALLINT
– DECIMAL(precision, scale)
– CHAR(n) - fixed length character data
– VARCHAR(n) - variable length character data
– DATE - Julian date format
– plus several more…
• Other DBMS add additional data types.
19
MySQL data types (cont.)
Primary date and time types:
• DATE 'YYYY-MM-DD' format
range: '1000-01-01' to '9999-12-31'
• DATETIME 'YYYY-MM-DD HH:MM:SS' format
range: '… 00:00:00' to '… 23:59:59'
Invalid dates and times are converted to zero values: '0000-00-
00'
Some built-in functions:
NOW( ), CURDATE( ), DATEDIFF( ), INTERVAL
DATE( ), TIME( ), DAY( ), YEAR( ), MONTH( ), etc.
20
Sample Database
Posted on course site:
• class.sql (MySQL 5.0)
• We will be running examples of queries on this database as
we cover the material, to help illustrate how the different
SQL statements work.
• I strongly recommend working through the examples on your
own as we go, in order to better understand them.
21
Sample Database (continued)
6 Tables:
22
StackOverflow- Mocking data for Angular2/typescript with my
own
model type properties Licensed by Stack Exchange Network
https://stackoverflow.com/questions/41765329/mocking-data-
for-angular2-typescript-with-my-own-model-type-properties
https://stackoverflow.com/legal/acceptable-use-policy
GROUP BY
Ex: For each Dept_Code, list:
The number of employees (as count) and the total credit limit
(as
total)
23

More Related Content

PDF
database application using SQL DML statements: Insert, Select, Update, Delet...
PDF
MySQL Indexing Crash Course
POTX
SOC_MSAccess_Infographic. A visual tour of the main ideas behind Access
TXT
Empresa completo
PDF
ILOUG 2019 - SQL features for Developers
PPTX
Perth APAC Groundbreakers tour - SQL Techniques
PDF
MySQL Indexing : Improving Query Performance Using Index (Covering Index)
PDF
Inventory management system
database application using SQL DML statements: Insert, Select, Update, Delet...
MySQL Indexing Crash Course
SOC_MSAccess_Infographic. A visual tour of the main ideas behind Access
Empresa completo
ILOUG 2019 - SQL features for Developers
Perth APAC Groundbreakers tour - SQL Techniques
MySQL Indexing : Improving Query Performance Using Index (Covering Index)
Inventory management system

Similar to Description Master Index of EDGAR Dissemination FeedL.docx (20)

PDF
Very simple queries of DBMS
DOCX
DROP TABLE ordline ;Drop TABLE OrderTBL ;DROP TABLE Customer.docx
PPTX
Index and types of Index used in Oracle.pptx
PDF
Design and Develop SQL DDL statements which demonstrate the use of SQL objec...
PPTX
Indexing the MySQL Index: Key to performance tuning
PPTX
MySqL_n.pptx edshdshfbhjbdhcbjdchdchjcdbbjd
PDF
DBMS Lab
DOCX
CompanyDB Problemspage 1 of 3Consider the employee database of .docx
DOCX
Use this script for the assignment.Please follow instructions as t.docx
PDF
database application using SQL DML statements: all types of Join, Sub-Query ...
PPTX
Indexes: The Second Pillar of Database Wisdom
PDF
Sql Commands
PPTX
DATA BASE || INTRODUCTION OF DATABASE \\ SQL 2018
PDF
lab.123456789123456789123456789123456789
 
PDF
Relational Database Management System (RDBMS) LAB - GROUP B
PPTX
DATABASE MANEGEMENT SYSTEM PROJECT.pptx
PDF
Mysql Optimization
PDF
Temporal And Other DB2 10 For Z Os Highlights
PPTX
Get your moneys worth out of your database
PDF
Script de creación de la base de datos pedidos en MS Access
Very simple queries of DBMS
DROP TABLE ordline ;Drop TABLE OrderTBL ;DROP TABLE Customer.docx
Index and types of Index used in Oracle.pptx
Design and Develop SQL DDL statements which demonstrate the use of SQL objec...
Indexing the MySQL Index: Key to performance tuning
MySqL_n.pptx edshdshfbhjbdhcbjdchdchjcdbbjd
DBMS Lab
CompanyDB Problemspage 1 of 3Consider the employee database of .docx
Use this script for the assignment.Please follow instructions as t.docx
database application using SQL DML statements: all types of Join, Sub-Query ...
Indexes: The Second Pillar of Database Wisdom
Sql Commands
DATA BASE || INTRODUCTION OF DATABASE \\ SQL 2018
lab.123456789123456789123456789123456789
 
Relational Database Management System (RDBMS) LAB - GROUP B
DATABASE MANEGEMENT SYSTEM PROJECT.pptx
Mysql Optimization
Temporal And Other DB2 10 For Z Os Highlights
Get your moneys worth out of your database
Script de creación de la base de datos pedidos en MS Access
Ad

More from donaldp2 (20)

DOCX
DescriptionRefer to this resource when completing the Its All .docx
DOCX
DescriptionPresentation Assignment – Revised (November 16, 2.docx
DOCX
DescriptionInfographics represent information in a visual m.docx
DOCX
DescriptionIn this activity, you will analyze and study the subj.docx
DOCX
DescriptionImplement a basic Calculator using an Arduino, pus.docx
DOCX
DescriptionFor this assignment, students will choose something .docx
DOCX
DescriptionDefend your choice of topic in 500 words or more..docx
DOCX
DescriptionDebate  on a wide variety of issues in the United.docx
DOCX
DescriptionAlpha is the best platform for entertainment to tel.docx
DOCX
DescriptionAnalyze  the parody of the show. The message bein.docx
DOCX
DESCRIPTION530 UNIT 4 QUESTION 3 Examine how knowledge of a.docx
DOCX
Description Watch President Ronald Reagan’s 1983 speech to the Na.docx
DOCX
Description Total Possible Score 30.00Distinguished .docx
DOCX
Description Total Possible Score 16.00Distinguished .docx
DOCX
Description The scenario description and requirements for Short.docx
DOCX
Description Research the internet for an example of a violation.docx
DOCX
Description Presentation (500 words + 10minutes)Percentage 40.docx
DOCX
Description of theNationalMilitary Strategy2018.docx
DOCX
Description of the toolUsages and meritsYour own demonstration.docx
DOCX
Description of the AssignmentThe assignment provides an oppo.docx
DescriptionRefer to this resource when completing the Its All .docx
DescriptionPresentation Assignment – Revised (November 16, 2.docx
DescriptionInfographics represent information in a visual m.docx
DescriptionIn this activity, you will analyze and study the subj.docx
DescriptionImplement a basic Calculator using an Arduino, pus.docx
DescriptionFor this assignment, students will choose something .docx
DescriptionDefend your choice of topic in 500 words or more..docx
DescriptionDebate  on a wide variety of issues in the United.docx
DescriptionAlpha is the best platform for entertainment to tel.docx
DescriptionAnalyze  the parody of the show. The message bein.docx
DESCRIPTION530 UNIT 4 QUESTION 3 Examine how knowledge of a.docx
Description Watch President Ronald Reagan’s 1983 speech to the Na.docx
Description Total Possible Score 30.00Distinguished .docx
Description Total Possible Score 16.00Distinguished .docx
Description The scenario description and requirements for Short.docx
Description Research the internet for an example of a violation.docx
Description Presentation (500 words + 10minutes)Percentage 40.docx
Description of theNationalMilitary Strategy2018.docx
Description of the toolUsages and meritsYour own demonstration.docx
Description of the AssignmentThe assignment provides an oppo.docx
Ad

Recently uploaded (20)

PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PPTX
Computer Architecture Input Output Memory.pptx
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PPTX
Introduction to pro and eukaryotes and differences.pptx
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
What if we spent less time fighting change, and more time building what’s rig...
PPTX
History, Philosophy and sociology of education (1).pptx
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PDF
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
DOCX
Cambridge-Practice-Tests-for-IELTS-12.docx
PDF
Uderstanding digital marketing and marketing stratergie for engaging the digi...
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
Unit 4 Computer Architecture Multicore Processor.pptx
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
A powerpoint presentation on the Revised K-10 Science Shaping Paper
Computer Architecture Input Output Memory.pptx
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Introduction to pro and eukaryotes and differences.pptx
Chinmaya Tiranga quiz Grand Finale.pdf
What if we spent less time fighting change, and more time building what’s rig...
History, Philosophy and sociology of education (1).pptx
FORM 1 BIOLOGY MIND MAPS and their schemes
Practical Manual AGRO-233 Principles and Practices of Natural Farming
Share_Module_2_Power_conflict_and_negotiation.pptx
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
Cambridge-Practice-Tests-for-IELTS-12.docx
Uderstanding digital marketing and marketing stratergie for engaging the digi...

Description Master Index of EDGAR Dissemination FeedL.docx

  • 1. Description: Master Index of EDGAR Dissemination Feed Last Data Received: March 31, 2018 Comments: [email protected] Anonymous FTP: ftp://ftp.sec.gov/edgar/ Cloud HTTP: https://www.sec.gov/Archives/ CIK|Company Name|Form Type|Date Filed|Filename --------------------------------------------------------------------------- ----- 1000032|BINCH JAMES G|4|2018-02- 16|edgar/data/1000032/0000913165-18-000034.txt 1000045|NICHOLAS FINANCIAL INC|10-Q|2018-02- 09|edgar/data/1000045/0001193125-18-037381.txt 1000045|NICHOLAS FINANCIAL INC|4|2018-02- 15|edgar/data/1000045/0001000045-18-000004.txt 1000045|NICHOLAS FINANCIAL INC|4|2018-03- 08|edgar/data/1000045/0001000045-18-000005.txt 1000045|NICHOLAS FINANCIAL INC|4|2018-03- 20|edgar/data/1000045/0001609591-18-000001.txt 1000045|NICHOLAS FINANCIAL INC|8-K|2018-01- 09|edgar/data/1000045/0001193125-18-007253.txt 1000045|NICHOLAS FINANCIAL INC|8-K|2018-02- 05|edgar/data/1000045/0001193125-18-032199.txt 1000045|NICHOLAS FINANCIAL INC|8-K|2018-02- 07|edgar/data/1000045/0001193125-18-034693.txt 1000045|NICHOLAS FINANCIAL INC|8-K|2018-02- 20|edgar/data/1000045/0001193125-18-049706.txt 1000045|NICHOLAS FINANCIAL INC|SC 13G/A|2018-02- 12|edgar/data/1000045/0001104659-18-008485.txt 1000045|NICHOLAS FINANCIAL INC|SC 13G/A|2018-02-
  • 2. 14|edgar/data/1000045/0001037389-18-000160.txt 1000045|NICHOLAS FINANCIAL INC|SC 13G|2018-02- 09|edgar/data/1000045/0001258897-18-001316.txt 1000045|NICHOLAS FINANCIAL INC|SC 13G|2018-02- 13|edgar/data/1000045/0000315066-18-001444.txt 1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|13F- HR|2018-02-14|edgar/data/1000097/0000919574-18-001804.txt 1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|SC 13G/A|2018-01-02|edgar/data/1000097/0000919574-18- 000008.txt 1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|SC 13G/A|2018-02-14|edgar/data/1000097/0000919574-18- 001760.txt 1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|SC 13G/A|2018-02-14|edgar/data/1000097/0000919574-18- 001765.txt 1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|SC 13G/A|2018-02-14|edgar/data/1000097/0000919574-18- 001773.txt 1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|SC 13G/A|2018-02-14|edgar/data/1000097/0000919574-18- 001777.txt 1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|SC 13G/A|2018-02-14|edgar/data/1000097/0000919574-18- 001785.txt 1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|SC 13G|2018-02-14|edgar/data/1000097/0000919574-18-001790.txt 1000177|NORDIC AMERICAN TANKERS Ltd|6-K|2018-02- 28|edgar/data/1000177/0000919574-18-002148.txt 1000177|NORDIC AMERICAN TANKERS Ltd|CORRESP|2018- 01-19|edgar/data/1000177/0000919574-18-000510.txt 1000177|NORDIC AMERICAN TANKERS Ltd|CORRESP|2018- 02-08|edgar/data/1000177/0000919574-18-000929.txt 1000177|NORDIC AMERICAN TANKERS Ltd|CORRESP|2018- 02-22|edgar/data/1000177/0000919574-18-001989.txt 1000177|NORDIC AMERICAN TANKERS Ltd|CORRESP|2018-
  • 3. 03-02|edgar/data/1000177/0000919574-18-002224.txt 1000177|NORDIC AMERICAN TANKERS Ltd|SC 13G|2018- 01-12|edgar/data/1000177/0000895421-18-000006.txt 1000177|NORDIC AMERICAN TANKERS Ltd|UPLOAD|2018- 02-05|edgar/data/1000177/0000000000-18-004057.txt 1000177|NORDIC AMERICAN TANKERS Ltd|UPLOAD|2018- 03-19|edgar/data/1000177/0000000000-18-008366.txt 1000184|SAP SE|20-F|2018-02- 28|edgar/data/1000184/0001104659-18-013050.txt 1000184|SAP SE|6-K|2018-01- 30|edgar/data/1000184/0001104659-18-005109.txt 1000184|SAP SE|6-K|2018-01- 31|edgar/data/1000184/0001104659-18-005283.txt 1000184|SAP SE|6-K|2018-02- 22|edgar/data/1000184/0001104659-18-011197.txt 1000184|SAP SE|6-K|2018-03- 01|edgar/data/1000184/0001104659-18-013742.txt 1000184|SAP SE|6-K|2018-03- 06|edgar/data/1000184/0001104659-18-015111.txt 1000184|SAP SE|DFAN14A|2018-01- 30|edgar/data/1000184/0001104659-18-005123.txt 1000184|SAP SE|DFAN14A|2018-01- 30|edgar/data/1000184/0001104659-18-005124.txt 1000184|SAP SE|DFAN14A|2018-01- 30|edgar/data/1000184/0001104659-18-005125.txt 1000184|SAP SE|DFAN14A|2018-01- 30|edgar/data/1000184/0001104659-18-005126.txt # Dump File # # Database is ported from MS Access #--------------------------------------------------------
  • 4. # Program Version 3.0.138 CREATE DATABASE IF NOT EXISTS `class`; USE `class`; # # Table structure for table 'Department' # DROP TABLE IF EXISTS `Department`; CREATE TABLE `Department` ( `Dept_Code` VARCHAR(3) NOT NULL, `Dept_Name` VARCHAR(20), INDEX (`Dept_Code`), PRIMARY KEY (`Dept_Code`) ) ENGINE=myisam DEFAULT CHARSET=utf8;
  • 5. SET autocommit=1; # # Dumping data for table 'Department' # INSERT INTO `Department` (`Dept_Code`, `Dept_Name`) VALUES ('Act', 'Accounting'); INSERT INTO `Department` (`Dept_Code`, `Dept_Name`) VALUES ('Exe', 'Executive'); INSERT INTO `Department` (`Dept_Code`, `Dept_Name`) VALUES ('Fin', 'Finance'); INSERT INTO `Department` (`Dept_Code`, `Dept_Name`) VALUES ('Mkt', 'Marketing'); INSERT INTO `Department` (`Dept_Code`, `Dept_Name`) VALUES ('Per', 'Personnel'); INSERT INTO `Department` (`Dept_Code`, `Dept_Name`) VALUES ('Sal', 'Sales'); INSERT INTO `Department` (`Dept_Code`, `Dept_Name`) VALUES ('Shp', 'Shipping'); # 7 records
  • 6. # # Table structure for table 'Employee' # DROP TABLE IF EXISTS `Employee`; CREATE TABLE `Employee` ( `Emp_ID` INTEGER NOT NULL, `Emp_FirstName` VARCHAR(10), `Emp_LastName` VARCHAR(10), `Dept_Code` VARCHAR(3), `Emp_HireDate` DATETIME, `Emp_CreditLimit` DECIMAL(19,4), `Emp_Phone` VARCHAR(4), `Emp_MgrID` INTEGER, INDEX (`Dept_Code`), INDEX (`Emp_ID`), INDEX (`Emp_MgrID`),
  • 7. PRIMARY KEY (`Emp_ID`) ) ENGINE=myisam DEFAULT CHARSET=utf8; SET autocommit=1; # # Dumping data for table 'Employee' # INSERT INTO `Employee` (`Emp_ID`, `Emp_FirstName`, `Emp_LastName`, `Dept_Code`, `Emp_HireDate`, `Emp_CreditLimit`, `Emp_Phone`, `Emp_MgrID`) VALUES (201, 'Susan', 'Brown', 'Exe', '1992-06-01 00:00:00', 30, '3484', NULL); INSERT INTO `Employee` (`Emp_ID`, `Emp_FirstName`, `Emp_LastName`, `Dept_Code`, `Emp_HireDate`, `Emp_CreditLimit`, `Emp_Phone`, `Emp_MgrID`) VALUES (202, 'Jim', 'Kern', 'Sal', '1995-08-15 00:00:00', 26, '8722', 201); INSERT INTO `Employee` (`Emp_ID`, `Emp_FirstName`, `Emp_LastName`, `Dept_Code`, `Emp_HireDate`, `Emp_CreditLimit`, `Emp_Phone`, `Emp_MgrID`) VALUES (203, 'Martha', 'Woods', 'Shp', '1997-02-01 00:00:00', 25, '7591', 201);
  • 8. INSERT INTO `Employee` (`Emp_ID`, `Emp_FirstName`, `Emp_LastName`, `Dept_Code`, `Emp_HireDate`, `Emp_CreditLimit`, `Emp_Phone`, `Emp_MgrID`) VALUES (204, 'Ellen', 'Owens', 'Sal', '1996-07-01 00:00:00', 15, '6830', 202); INSERT INTO `Employee` (`Emp_ID`, `Emp_FirstName`, `Emp_LastName`, `Dept_Code`, `Emp_HireDate`, `Emp_CreditLimit`, `Emp_Phone`, `Emp_MgrID`) VALUES (205, 'Henry', 'Perkins', 'Sal', '1998-03-01 00:00:00', 25, '5286', 202); INSERT INTO `Employee` (`Emp_ID`, `Emp_FirstName`, `Emp_LastName`, `Dept_Code`, `Emp_HireDate`, `Emp_CreditLimit`, `Emp_Phone`, `Emp_MgrID`) VALUES (206, 'Carol', 'Rose', 'Act', '1997-10-15 00:00:00', 15, '3829', 201); INSERT INTO `Employee` (`Emp_ID`, `Emp_FirstName`, `Emp_LastName`, `Dept_Code`, `Emp_HireDate`, `Emp_CreditLimit`, `Emp_Phone`, `Emp_MgrID`) VALUES (207, 'Dan', 'Smith', 'Shp', '1996-12-01 00:00:00', 25, '2259', 203); INSERT INTO `Employee` (`Emp_ID`, `Emp_FirstName`, `Emp_LastName`, `Dept_Code`, `Emp_HireDate`, `Emp_CreditLimit`, `Emp_Phone`, `Emp_MgrID`) VALUES (208, 'Fred', 'Campbell', 'Shp', '1997-04-01 00:00:00', 25, '1752', 203); INSERT INTO `Employee` (`Emp_ID`, `Emp_FirstName`, `Emp_LastName`, `Dept_Code`, `Emp_HireDate`, `Emp_CreditLimit`, `Emp_Phone`, `Emp_MgrID`) VALUES (209, 'Paula', 'Jacobs', 'Mkt', '1998-03-17 00:00:00', 15, '3357', 201);
  • 9. INSERT INTO `Employee` (`Emp_ID`, `Emp_FirstName`, `Emp_LastName`, `Dept_Code`, `Emp_HireDate`, `Emp_CreditLimit`, `Emp_Phone`, `Emp_MgrID`) VALUES (210, 'Nancy', 'Hoffman', 'Sal', '1996-02-15 00:00:00', 25, '2974', 203); # 10 records # # Table structure for table 'Item' # DROP TABLE IF EXISTS `Item`; CREATE TABLE `Item` ( `Item_Number` INTEGER NOT NULL, `Item_Desc` VARCHAR(20), `Item_Price` DECIMAL(19,4), `Item_PriceIncrease` DECIMAL(19,4), `Supplier_ID` VARCHAR(3), PRIMARY KEY (`Item_Number`),
  • 10. INDEX (`Supplier_ID`) ) ENGINE=myisam DEFAULT CHARSET=utf8; SET autocommit=1; # # Dumping data for table 'Item' # INSERT INTO `Item` (`Item_Number`, `Item_Desc`, `Item_Price`, `Item_PriceIncrease`, `Supplier_ID`) VALUES (1, 'Fresh Salad', 2, .25, 'Asp'); INSERT INTO `Item` (`Item_Number`, `Item_Desc`, `Item_Price`, `Item_PriceIncrease`, `Supplier_ID`) VALUES (2, 'Soup of the Day', 1.5, NULL, 'Asp'); INSERT INTO `Item` (`Item_Number`, `Item_Desc`, `Item_Price`, `Item_PriceIncrease`, `Supplier_ID`) VALUES (3, 'Sandwich', 3.5, .4, 'Asp'); INSERT INTO `Item` (`Item_Number`, `Item_Desc`, `Item_Price`, `Item_PriceIncrease`, `Supplier_ID`) VALUES (4, 'Grilled steak', 6, .7, 'Cbc'); INSERT INTO `Item` (`Item_Number`, `Item_Desc`, `Item_Price`, `Item_PriceIncrease`, `Supplier_ID`) VALUES (5,
  • 11. 'Hamburger', 2.5, .3, 'Cbc'); INSERT INTO `Item` (`Item_Number`, `Item_Desc`, `Item_Price`, `Item_PriceIncrease`, `Supplier_ID`) VALUES (6, 'Broccoli', 1, .05, 'Frv'); INSERT INTO `Item` (`Item_Number`, `Item_Desc`, `Item_Price`, `Item_PriceIncrease`, `Supplier_ID`) VALUES (7, 'French Fries', 1.5, NULL, 'Frv'); INSERT INTO `Item` (`Item_Number`, `Item_Desc`, `Item_Price`, `Item_PriceIncrease`, `Supplier_ID`) VALUES (8, 'Soda', 1.25, .25, 'Jbr'); INSERT INTO `Item` (`Item_Number`, `Item_Desc`, `Item_Price`, `Item_PriceIncrease`, `Supplier_ID`) VALUES (9, 'Coffee', .85, .15, 'Jbr'); INSERT INTO `Item` (`Item_Number`, `Item_Desc`, `Item_Price`, `Item_PriceIncrease`, `Supplier_ID`) VALUES (10, 'Dessert', 3, .5, 'Vsb'); # 10 records # # Table structure for table 'Lunch' # DROP TABLE IF EXISTS `Lunch`;
  • 12. CREATE TABLE `Lunch` ( `Lunch_ID` INTEGER NOT NULL, `Lunch_Date` DATETIME, `Emp_ID` INTEGER, INDEX (`Emp_ID`), INDEX (`Lunch_ID`), PRIMARY KEY (`Lunch_ID`) ) ENGINE=myisam DEFAULT CHARSET=utf8; SET autocommit=1; # # Dumping data for table 'Lunch' # INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`) VALUES (1, '1998-11-16 00:00:00', 201); INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`)
  • 13. VALUES (2, '1998-11-16 00:00:00', 202); INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`) VALUES (3, '1998-11-16 00:00:00', 203); INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`) VALUES (4, '1998-11-16 00:00:00', 207); INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`) VALUES (5, '1998-11-16 00:00:00', 206); INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`) VALUES (6, '1998-11-16 00:00:00', 210); INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`) VALUES (7, '1998-11-25 00:00:00', 201); INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`) VALUES (8, '1998-11-25 00:00:00', 205); INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`) VALUES (9, '1998-11-25 00:00:00', 204); INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`) VALUES (10, '1998-11-25 00:00:00', 207); INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`) VALUES (11, '1998-11-25 00:00:00', 208); INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`) VALUES (12, '1998-12-04 00:00:00', 201); INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`) VALUES (13, '1998-12-04 00:00:00', 203); INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`)
  • 14. VALUES (14, '1998-12-04 00:00:00', 205); INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`) VALUES (15, '1998-12-04 00:00:00', 210); INSERT INTO `Lunch` (`Lunch_ID`, `Lunch_Date`, `Emp_ID`) VALUES (16, '1998-12-04 00:00:00', 208); # 16 records # # Table structure for table 'Lunch_item' # DROP TABLE IF EXISTS `Lunch_item`; CREATE TABLE `Lunch_item` ( `Lunch_ID` INTEGER NOT NULL, `Item_Number` INTEGER NOT NULL, `LI_Quantity` INTEGER, INDEX (`Lunch_ID`), PRIMARY KEY (`Lunch_ID`, `Item_Number`)
  • 15. ) ENGINE=myisam DEFAULT CHARSET=utf8; SET autocommit=1; # # Dumping data for table 'Lunch_item' # INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (1, 1, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (1, 3, 2); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (1, 5, 2); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (2, 1, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (2, 3, 2); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (2, 4, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (2, 6, 2);
  • 16. INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (3, 1, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (3, 4, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (3, 7, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (3, 8, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (3, 9, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (4, 2, 2); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (4, 3, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (4, 7, 2); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (4, 10, 2); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (5, 1, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (5, 2, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (5, 3, 2);
  • 17. INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (5, 5, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (5, 8, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (6, 3, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (6, 4, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (6, 5, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (6, 6, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (6, 7, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (7, 1, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (7, 2, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (7, 8, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (8, 1, 2); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (8, 4, 1);
  • 18. INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (8, 5, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (8, 6, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (8, 8, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (8, 9, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (9, 1, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (9, 2, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (9, 3, 2); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (9, 4, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (10, 2, 2); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (10, 4, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (10, 7, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (10, 8, 2);
  • 19. INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (11, 1, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (11, 2, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (11, 3, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (11, 4, 2); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (12, 1, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (12, 3, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (12, 5, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (12, 8, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (12, 9, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (13, 1, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (13, 2, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (13, 3, 1);
  • 20. INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (13, 4, 2); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (13, 5, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (14, 1, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (14, 2, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (14, 3, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (14, 4, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (14, 5, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (15, 1, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (15, 2, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (15, 3, 2); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (15, 4, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (16, 1, 1);
  • 21. INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (16, 2, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (16, 3, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (16, 4, 1); INSERT INTO `Lunch_item` (`Lunch_ID`, `Item_Number`, `LI_Quantity`) VALUES (16, 5, 1); # 71 records # # Table structure for table 'Supplier' # DROP TABLE IF EXISTS `Supplier`; CREATE TABLE `Supplier` ( `Supplier_ID` VARCHAR(3) NOT NULL, `Supplier_Name` VARCHAR(30), PRIMARY KEY (`Supplier_ID`),
  • 22. INDEX (`Supplier_ID`) ) ENGINE=myisam DEFAULT CHARSET=utf8; SET autocommit=1; # # Dumping data for table 'Supplier' # INSERT INTO `Supplier` (`Supplier_ID`, `Supplier_Name`) VALUES ('Arr', 'Alice & Ray's Restaurant'); INSERT INTO `Supplier` (`Supplier_ID`, `Supplier_Name`) VALUES ('Asp', 'A Soup Place'); INSERT INTO `Supplier` (`Supplier_ID`, `Supplier_Name`) VALUES ('Cbc', 'Certified Beef Company'); INSERT INTO `Supplier` (`Supplier_ID`, `Supplier_Name`) VALUES ('Frv', 'Frank Reed's Vegetables'); INSERT INTO `Supplier` (`Supplier_ID`, `Supplier_Name`) VALUES ('Fsn', 'Frank & Sons'); INSERT INTO `Supplier` (`Supplier_ID`, `Supplier_Name`) VALUES ('Jbr', 'Just Beverages');
  • 23. INSERT INTO `Supplier` (`Supplier_ID`, `Supplier_Name`) VALUES ('Jps', 'Jim Parker's Shop'); INSERT INTO `Supplier` (`Supplier_ID`, `Supplier_Name`) VALUES ('Vsb', 'Virginia Street Bakery'); # 8 records Description: Master Index of EDGAR Dissemination Feed Last Data Received: March 31, 2018 Comments: [email protected] Anonymous FTP: ftp://ftp.sec.gov/edgar/ Cloud HTTP: https://www.sec.gov/Archives/ CIK|Company Name|Form Type|Date Filed|Filename --------------------------------------------------------------------------- ----- 1000032|BINCH JAMES G|4|2018-02- 16|edgar/data/1000032/0000913165-18-000034.txt 1000045|NICHOLAS FINANCIAL INC|10-Q|2018-02- 09|edgar/data/1000045/0001193125-18-037381.txt 1000045|NICHOLAS FINANCIAL INC|4|2018-02- 15|edgar/data/1000045/0001000045-18-000004.txt 1000045|NICHOLAS FINANCIAL INC|4|2018-03- 08|edgar/data/1000045/0001000045-18-000005.txt 1000045|NICHOLAS FINANCIAL INC|4|2018-03- 20|edgar/data/1000045/0001609591-18-000001.txt
  • 24. 1000045|NICHOLAS FINANCIAL INC|8-K|2018-01- 09|edgar/data/1000045/0001193125-18-007253.txt 1000045|NICHOLAS FINANCIAL INC|8-K|2018-02- 05|edgar/data/1000045/0001193125-18-032199.txt 1000045|NICHOLAS FINANCIAL INC|8-K|2018-02- 07|edgar/data/1000045/0001193125-18-034693.txt 1000045|NICHOLAS FINANCIAL INC|8-K|2018-02- 20|edgar/data/1000045/0001193125-18-049706.txt 1000045|NICHOLAS FINANCIAL INC|SC 13G/A|2018-02- 12|edgar/data/1000045/0001104659-18-008485.txt 1000045|NICHOLAS FINANCIAL INC|SC 13G/A|2018-02- 14|edgar/data/1000045/0001037389-18-000160.txt 1000045|NICHOLAS FINANCIAL INC|SC 13G|2018-02- 09|edgar/data/1000045/0001258897-18-001316.txt 1000045|NICHOLAS FINANCIAL INC|SC 13G|2018-02- 13|edgar/data/1000045/0000315066-18-001444.txt 1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|13F- HR|2018-02-14|edgar/data/1000097/0000919574-18-001804.txt 1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|SC 13G/A|2018-01-02|edgar/data/1000097/0000919574-18- 000008.txt 1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|SC 13G/A|2018-02-14|edgar/data/1000097/0000919574-18- 001760.txt 1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|SC 13G/A|2018-02-14|edgar/data/1000097/0000919574-18- 001765.txt 1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|SC 13G/A|2018-02-14|edgar/data/1000097/0000919574-18- 001773.txt 1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|SC 13G/A|2018-02-14|edgar/data/1000097/0000919574-18- 001777.txt 1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|SC 13G/A|2018-02-14|edgar/data/1000097/0000919574-18- 001785.txt
  • 25. 1000097|KINGDON CAPITAL MANAGEMENT, L.L.C.|SC 13G|2018-02-14|edgar/data/1000097/0000919574-18-001790.txt 1000177|NORDIC AMERICAN TANKERS Ltd|6-K|2018-02- 28|edgar/data/1000177/0000919574-18-002148.txt 1000177|NORDIC AMERICAN TANKERS Ltd|CORRESP|2018- 01-19|edgar/data/1000177/0000919574-18-000510.txt 1000177|NORDIC AMERICAN TANKERS Ltd|CORRESP|2018- 02-08|edgar/data/1000177/0000919574-18-000929.txt 1000177|NORDIC AMERICAN TANKERS Ltd|CORRESP|2018- 02-22|edgar/data/1000177/0000919574-18-001989.txt 1000177|NORDIC AMERICAN TANKERS Ltd|CORRESP|2018- 03-02|edgar/data/1000177/0000919574-18-002224.txt 1000177|NORDIC AMERICAN TANKERS Ltd|SC 13G|2018- 01-12|edgar/data/1000177/0000895421-18-000006.txt 1000177|NORDIC AMERICAN TANKERS Ltd|UPLOAD|2018- 02-05|edgar/data/1000177/0000000000-18-004057.txt 1000177|NORDIC AMERICAN TANKERS Ltd|UPLOAD|2018- 03-19|edgar/data/1000177/0000000000-18-008366.txt 1000184|SAP SE|20-F|2018-02- 28|edgar/data/1000184/0001104659-18-013050.txt 1000184|SAP SE|6-K|2018-01- 30|edgar/data/1000184/0001104659-18-005109.txt 1000184|SAP SE|6-K|2018-01- 31|edgar/data/1000184/0001104659-18-005283.txt 1000184|SAP SE|6-K|2018-02- 22|edgar/data/1000184/0001104659-18-011197.txt 1000184|SAP SE|6-K|2018-03- 01|edgar/data/1000184/0001104659-18-013742.txt 1000184|SAP SE|6-K|2018-03- 06|edgar/data/1000184/0001104659-18-015111.txt 1000184|SAP SE|DFAN14A|2018-01- 30|edgar/data/1000184/0001104659-18-005123.txt 1000184|SAP SE|DFAN14A|2018-01- 30|edgar/data/1000184/0001104659-18-005124.txt 1000184|SAP SE|DFAN14A|2018-01- 30|edgar/data/1000184/0001104659-18-005125.txt
  • 26. 1000184|SAP SE|DFAN14A|2018-01- 30|edgar/data/1000184/0001104659-18-005126.txt Module 5: Using Databases with Python • File-based systems • Database systems • Relational databases • Structured Query Language ISM 6405- Dr. Milad Baghersad 1 Reference: Database Systems: Design, Implementation and Management, 12th edition by Carlos Coronel and Steven Morris (Cengage Learning, ISBN: 978-1- 305-62748-2) History: traditional file-based systems ISM 6405- Dr. Milad Baghersad 2 • Computerized manual filing systems • Individual files for each purpose • Each business unit had its own file system • Organized to facilitate the expected use of the data
  • 27. • Data processing specialist required to retrieve data and run reports Example: file-based systems ISM 6405- Dr. Milad Baghersad 3 • Suppose, as a FAU student, that you need to do the following things: 1. Register for courses 2. Pay tuition 3. Work part-time on campus File Based Systems Illustration ISM 6405- Dr. Milad Baghersad 4 TuitionRec (ID, name, address, amtPaid, balance, …) RegRec (ID, name, address, courses, …) EmpRec (ID, name,
  • 28. address, wage, …) Tuition payment entry and reports File handling routines File definition Course registration entry and reports File handling routines File
  • 29. definition Work-study data entry and reports File handling routines File definition Tuition payment application programs Course registration application programs Work-study application programs Payment file(s) Registration file(s) Work-study file(s) Issues with file-based systems ISM 6405- Dr. Milad Baghersad 5
  • 30. • Data redundancy • Different files contain same information (ID, name, address, etc…) • Isolation of data in separate systems • Data inconsistency (e.g., different ID values for the same person) • Lack of data integrity • Data anomalies • All changes may not be made successfully • Update / Insertion / Deletion anomalies Better approach: database systems • Database: a collection of interrelated data organized in such a way that it corresponds to the needs and structure of an organization and can be used by more than one person for more than one application. ISM 6405- Dr. Milad Baghersad 6 Example: database system
  • 31. ISM 6405- Dr. Milad Baghersad 7 Tuition payment entry and reports Course registration entry and reports Work-study data entry and reports Tuition payment application programs Course registration application programs Work-study application programs DBMS Database
  • 32. Advantages of database systems ISM 6405- Dr. Milad Baghersad 8 • Minimal data redundancy • Data consistency • Integration of data • Improved data sharing • Enforcement of standards • Ease of application development • Uniform security, privacy, and integrity • Data independence from applications • "self-describing" data stored in a data dictionary (metadata) File-based systems often imply "flat" data files: ISM 6405- Dr. Milad Baghersad 9 RecNo Name Address City State Zip Product Units Amount 1 John Smith 221 Main St. New York NY 08842 Television 1 $500 2 William Chin 43 1st Ave. Redmond WA 98332 Refrigerator 1 $800
  • 33. 3 William Chin 43 1st Ave. Redmond WA 98332 Toaster 1 $80 4 Marta Dieci 2 West Ave. Reno NV 92342 Television 1 $500 5 Marta Dieci 2 West Ave. Reno NV 92342 Radio 1 $40 6 Marta Dieci 2 West Ave. Reno NV 92342 Stereo 1 $200 7 Peter Melinkoff 53 NE Rodeo Miami FL 18332 Computer 1 $1500 8 Martin Sengali 1234 5th St. Boston FL 03423 Television 1 $500 9 Martin Sengali 1234 5th St. Boston FL 03423 Stereo 1 $200 10 Martin Sengali 1234 5th St. Boston FL 03423 Radio 1 $40 11 Martin Sengali 1234 5th St. Boston FL 03423 Refrigerator 1 $80 Subset of the problems with a file-based system: ISM 6405- Dr. Milad Baghersad 10 • Redundancy (i.e. data duplication) • Update anomalies
  • 34. • Update a single address requires you to update multiple entries • Insertion anomalies • You cannot insert information about customer until they have actually purchased something • Deletion anomalies • If there is a single instance of a given product being sold, and for some reason we decide to remove the customer who purchased it, we will lose information about the product also Improving data management: Types of database models ISM 6405- Dr. Milad Baghersad 11 • Hierarchical database model • Tree-based approach developed in 1960's • Based on parent-child relationships (1:M) • Network database model • Created to improve on hierarchical model • Allows records to have more than one parent
  • 35. • Can access data from multiple points • Relational database model Relational database model Turing Award Winner, Edgar F. Codd’s landmark paper, “A Relational Model of Data for Large Shared Data Banks" (1970) laid out a new way to organize and access data: the Relational Model. 12 Customer(CustomerID, Name, … Order(OrderID, CustomerID, OrderDate, … ItemsOrdered(OrderID, ItemID, Quantity, … Items(ItemID, Description, Price, … This Photo by Unknown Author is licensed under CC BY-SA https://en.wikipedia.org/wiki/Edgar_F._Codd https://creativecommons.org/licenses/by-sa/3.0/
  • 36. Flat-file database RecNo Name Address City State Zip Product Units Amount 1 John Smith 221 Main St. New York NY 08842 Television 1 $500 2 William Chin 43 1st Ave. Redmond WA 98332 Refrigerator 1 $800 3 William Chin 43 1st Ave. Redmond WA 98332 Toaster 1 $80 4 Marta Dieci 2 West Ave. Reno NV 92342 Television 1 $500 5 Marta Dieci 2 West Ave. Reno NV 92342 Radio 1 $40 6 Marta Dieci 2 West Ave. Reno NV 92342 Stereo 1 $200 7 Peter Melinkoff 53 NE Rodeo Miami FL 18332 Computer 1 $1500 8 Martin Sengali 1234 5th St. Boston FL 03423 Television 1 $500 9 Martin Sengali 1234 5th St. Boston FL 03423 Stereo 1 $200 10 Martin Sengali 1234 5th St. Boston FL 03423 Radio 1 $40 11 Martin Sengali 1234 5th St. Boston FL 03423 Refrigerator 1 $80
  • 37. 13 Example: relational database 14 Customer table CusNo Name Address City State Zip 1 John Smith 221 Main St. New York NY 08842 2 William Chin 43 First Ave. Redmond WA 98332 3 Marta Dieci 2 West Ave. Reno NV 92342 4 Peter Melinkoff 53 NE Rodeo Miami FL 18332 5 Martin Sengali 1234 5th St. Boston MA 03423 CusNo Product Units Amount 1 Television 1 $500 2 Refrigerator 1 $800 2 Toaster 1 $80 3 Television 1 $500 3 Radio 1 $40 3 Stereo 1 $200
  • 38. 4 Computer 1 $1500 5 Television 1 $500 5 Stereo 1 $200 5 Radio 1 $40 5 Refrigerator 1 $800 OrderItem table Another database in relational form ISBN Title PubID Price 0-103-45678-9 Iliad 1 $25.00 0-11-345678-9 Moby Dick 3 $49.00 0-12-333433-3 On Liberty 1 $25.00 0-12-345678-9 Jane Eyre 3 $49.00 0-123-45678-0 Ulysses 2 $34.00 0-321-32132-1 Balloon 3 $34.00 0-55-123456-9 Main Street 3 $22.95 0-555-55555-9 MacBeth 2 $12.00 0-91-045678-5 Hamlet 2 $20.00
  • 39. 0-91-335678-7 Fairie Queene 1 $15.00 0-99-777777-7 King Lear 2 $49.00 0-99-999999-9 Emma 1 $20.00 1-1111-1111-1 C++ 1 $29.95 1-22-233700-0 Visual Basic 1 $25.00 AuID AuName AuPhone 1 Austen 111-111-1111 10 Jones 123-333-3333 11 Snoopy 321-321-2222 12 Grumpy 321-321-0000 13 Sleepy 321-321-1111 2 Melville 222-222-2222 3 Homer 333-333-3333 4 Roman 444-444-4444 5 Shakespeare 555-555-5555 6 Joyce 666-666-6666 7 Spencer 777-777-7777 8 Mill 888-888-8888
  • 40. 9 Smith 123-222-2222 ISBN AuID 0-103-45678-9 3 0-11-345678-9 2 0-12-333433-3 8 0-12-345678-9 1 0-123-45678-0 6 0-321-32132-1 11 0-321-32132-1 12 0-321-32132-1 13 0-55-123456-9 9 0-55-123456-9 10 0-555-55555-9 5 0-91-045678-5 5 0-91-335678-7 7 0-99-777777-7 5 0-99-999999-9 1 1-1111-1111-1 4
  • 41. 1-22-233700-0 4 PubID PubName PubPhone 1 Big House 123-456-7890 2 Alpha Press 999-999-9999 3 Small House 714-000-0000 BOOK AUTHOR PUBLISHER BOOK/AUTHOR 15 Install MySQL Server and Workbench Use the video: How To Install MySQL (Server and Workbench) [05:57] Please note as you are installing MySql, when you are selecting Products and Features (see [02:30] in the video), click on MySQL Connectors and add Python connector also. If you can not add Python connector, later I will teach you another method to connect Python and MySQL.
  • 42. 16 https://www.youtube.com/watch?v=u96rVINbAUI Manipulating data in databases Structured Query Language (SQL) • creating database and table structures • performing data manipulation and administration • querying the database to extract useful information 17 Categories of SQL commands • Data Definition Language (DDL) – Commands that define a database, including creating, altering, and dropping tables and stored procedures, and establishing constraints • CREATE TABLE, set PRIMARY KEY • Data Manipulation Language (DML) – Commands that are used to manipulate data and extract information • SELECT, UPDATE, INSERT, DELETE
  • 43. 18 Data types • ANSI/ISO SQL data types: – INTEGER / SMALLINT – DECIMAL(precision, scale) – CHAR(n) - fixed length character data – VARCHAR(n) - variable length character data – DATE - Julian date format – plus several more… • Other DBMS add additional data types. 19 MySQL data types (cont.) Primary date and time types: • DATE 'YYYY-MM-DD' format range: '1000-01-01' to '9999-12-31' • DATETIME 'YYYY-MM-DD HH:MM:SS' format
  • 44. range: '… 00:00:00' to '… 23:59:59' Invalid dates and times are converted to zero values: '0000-00- 00' Some built-in functions: NOW( ), CURDATE( ), DATEDIFF( ), INTERVAL DATE( ), TIME( ), DAY( ), YEAR( ), MONTH( ), etc. 20 Sample Database Posted on course site: • class.sql (MySQL 5.0) • We will be running examples of queries on this database as we cover the material, to help illustrate how the different SQL statements work. • I strongly recommend working through the examples on your own as we go, in order to better understand them. 21 Sample Database (continued)
  • 45. 6 Tables: 22 StackOverflow- Mocking data for Angular2/typescript with my own model type properties Licensed by Stack Exchange Network https://stackoverflow.com/questions/41765329/mocking-data- for-angular2-typescript-with-my-own-model-type-properties https://stackoverflow.com/legal/acceptable-use-policy GROUP BY Ex: For each Dept_Code, list: The number of employees (as count) and the total credit limit (as total) 23