Notes On Book PVFC Data MDM 12e
Notes On Book PVFC Data MDM 12e
The Modern Database Management web sites for both instructors and students contain two
versions (called ‘Book’ and ‘Expanded’) of Pine Valley Furniture Company (PVFC), based on Figure 2-22
of the textbook. This figure shows a subset of the attributes available in the databases.
The files for the book version, covered here, contains the tables of Figure 2-22, along with much of
the sample data used in Chapter 1, 6, and 7. The tables and data are stored in five ways.
1. There is an MS Access version. Use of this version requires that MS Access or later be loaded and
operational on a computer. Copy the file PVFC_MDM_12e.mdb to the hard drive and open the
file. This version also includes the MS Access queries that match most of the SQL queries
demonstrated in Chapters 6 and 7. You may convert the file to the current version of Access you
are using.
2. There is an Oracle 12c version. An SQL script to create the tables and populate them in Oracle
12c is also included. Use of this script assumes access to Oracle 12c and SQL*Plus 3.3 (or later,
or a recent version of Oracle’s SQL Developer), and authorization to create tables. Move the
CREATEPVFC_MDM_12e.sql script to the hard drive. After entering SQL*Plus, at the SQL
prompt type Start X:\CREATEPVFC_MDM_12e.sql, where X indicates the location of the SQL
script. Pressing enter should cause the script to run, creating the tables and populating them. If
you have SQL Server Management Studio or SQL Server Management Studio Express installed,
this file, with its .sql extension, may be identified as a SQL Server file. However, it will not run
under SQL server, because it uses Oracle syntax.
3. There is a SQL Server 2005 version. The CREATE and INSERT scripts are zipped in a file named
PVFScripts_MDM_12e.zip. The database can be created with a script called
PVFDB_MDM_12e.sql. Please make sure that you update the CREATE DATABASE command so
that it refers to the correct location in your local environment.
This database is intended to provide students with an understanding of the implementation of the
data model developed in Chapter 2 in a relational database management system. It should also allow
them to explore basic query syntax in either Oracle 12c or MS Access.
Both versions of the PVFC database are also available on Teradata University Network
(www.teradatauniversitynetwork.com for faculty and students). Faculty must define on Teradata
University Network which databases students can use because our databases are not the only ones
available on TUN. See instructions on TUN for creating a course environment for students.
The following documentation provides a more detailed explanation of the data in the Book
version of the PVFC database – the version illustrated in the textbook.
The following ASC files are provided for this database (in folder ASCII_EDM_1e):
Customer_T.asc
CustomerID, CustomerName, CustomerAddress, CustomerCity, CustomerState, CustomerPostalCode
1, 'SouthEast'
2, 'SouthWest'
3, 'NorthEast'
4, 'NorthWest'
5, 'Central'
DoesBusinessIn_T.asc
CustomerID, TerritoryID
1, 1
1, 2
2, 2
3, 3
4, 3
5, 2
6, 5
Salesperson_T.asc
SalespersonID, SalespersonName, SalespersonPhone, SalespersonFax, TerritoryID
'123-44-345', 'Jim Jason', '2134 Hilltop Rd', '', 'TN', '', '12/Jun/99', '454-56-768'
'454-56-768', 'Robert Lewis', '17834 Deerfield Ln', 'Nashville', 'TN', '', '01/Jan/99', ''
Skill_T.asc
SkillID, SkillDescription
EmployeeSkills_T.asc
EmployeeID, SkillID
'123-44-345', 'BS12'
'123-44-345', 'RT1'
'454-56-768', 'BS12'
ProductLine_T.asc
ProductLineID, ProductLineName
1, 'Cherry Tree'
2, 'Scandinavia'
3, 'Country Look'
Product_T.asc
ProductID, ProductDescription, ProductFinish, ProductStandardPrice, ProductLineID
1001, 1, 2
1001, 2, 2
1001, 4, 1
1002, 3, 5
1003, 3, 3
1004, 6, 2
1004, 8, 2
1005, 4, 4
1006, 4, 1
1006, 5, 2
1006, 7, 2
1007, 1, 3
1007, 2, 2
1008, 3, 3
1008, 8, 3
1009, 4, 2
1009, 7, 3
1010, 8, 10
RawMaterial_T.asc
MaterialID, MaterialName, UnitOfMeasure, MaterialStandardCost
Supplies_T.asc
VendorID, MaterialID, SuppliesUnitPrice
Vendor_T.asc
VendorID, VendorName, VendorAddress, VendorCity, VendorState, VendorZipcode
General Notes on ASC and Other Versions of the PVFC Book Datasets:
1. There may be several misspellings of data values so students can deal with data quality issues.
2. There are several examples of missing data so students can deal with this issue (some data are
actually missing, some simply represents null FKs for an optional cardinality).
3. The ProducedIn_T table is included, but it includes a FK of WorkCenterID, and WorkCenter_T is
not included; there is no data in ProducedIn_T, but there still is an unresolved FK constraint
reference for students to deal with.
4. Four tables are not populated with data (see above), but ASC files are provided with the column
names; these tables can be used for exercises with INSERT and other commands.
5. Three tables (Uses_T, WorksIn_T, and WorkCenter_T) are not included; these can be used for
DDL exercises and students can determine from the text what columns should be included in
each table.
6. There are purposeful differences between this ASC dataset and other versions of this data:
a. Oracle: All DDL and data creation statements are in one file, CREATEPVFC_EDM_1e.sql:
i. Employee_T includes an EmployeeBirthDate column
ii. There are additional columns in Vendor_T
iii. Two rows for WorkCenter_T and one row for WorksIn_T are provided
iv. Uses_T is defined but no data are provided
b. SQL Server: Three files are in folder PVFCScripts_EDM_1e –
PVTableInsertsALL_EDM_1e.sql , PVTablesALL_EDM_1e.sql, and PVFDB_EDM_1e.sql:
The following table summarizes the differences between the various versions of the PVFC Book database
version: