logo

Database Implementation Assignment Report

10 Pages1642 Words12 Views
   

Added on  2022-08-19

Database Implementation Assignment Report

   Added on 2022-08-19

ShareRelated Documents
Running head: DATABASE IMPLEMENTATION
Database Implementation
Name of the Student
Name of the University
Author’s note:
Database Implementation Assignment Report_1
DATABASE IMPLEMENTATION1
Create Tables:
CREATE TABLE `customer` (
`customerID` int(11) NOT NULL,
`lastName` varchar(200) NOT NULL,
`firstName` varchar(200) NOT NULL,
`streetAddress` varchar(200) NOT NULL,
`city` varchar(200) NOT NULL,
`state` varchar(20) NOT NULL,
`zipCode` int(11) NOT NULL,
`currentBalance` decimal(12,2) NOT NULL,
`creditLimit` int(11) NOT NULL,
`salesRepID` int(11) NOT NULL
);
CREATE TABLE `orderlines` (
`orderID` int(11) NOT NULL,
`partID` char(10) NOT NULL,
`numberOrdered` int(11) NOT NULL,
`quotedPrice` decimal(12,2) NOT NULL
Database Implementation Assignment Report_2
DATABASE IMPLEMENTATION2
);
CREATE TABLE `orders` (
`orderID` int(11) NOT NULL,
`orderDate` date NOT NULL,
`customerID` int(11) NOT NULL,
`shippingDate` date DEFAULT NULL
);
CREATE TABLE `parts` (
`partID` char(10) NOT NULL,
`partDescription` varchar(200) NOT NULL,
`unitsOnHand` int(11) NOT NULL,
`class` char(5) NOT NULL,
`warehouseNumber` int(11) NOT NULL,
`unitPrice` decimal(12,2) NOT NULL
);
CREATE TABLE `salesregion` (
`regionID` char(5) NOT NULL,
`regionDescription` varchar(200) NOT NULL,
Database Implementation Assignment Report_3

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Database Design and Implementation PDF
|9
|1080
|11

Creating and Modelling a Database for Partykids Business
|20
|1589
|231