ms-access


How should I setup Shipping and Receiving tables for RDBMS?


Ok, so I am a student, and have VERY limited experience with databases, but I am trying to build the tables for a Shipping company for an assignment. Currently I have The following 10 tables [with attributes] (it will not allow me to post an image):
Table1
======
Customer[PK - CustId, CustAddressId(FK from table "Address"), CustBusName,....],
Table2
======
PU_Man [PK - PUManId, PUDate, PUComments, PUPackageId (FK from table "Package"),
PUCustId (FK from table "Customer"), PUDTID (FK from table DriverTruckRef)]
Table3
======
Del_Man [PK - DelManId, DelDate, DelComments,
DelPackageId (FK from table "Package"),
DelCustId (FK from table "Customer"),
DelDTId (FK from table DriverTruckRef)]
Table4
======
Truck [PK - TruckVin#, TimeLoggedOut, .....],
Table5
======
Driver [PK - DriverId, DriverFN, DriverLN,
DriverRoute# (FK from table "Route"),....]
Table6
======
DriverTruckRef [PK - DTId, DriverId (FK from table "Driver")]
Table7
======
Address [PK - AddressId,
AddressCustId (FK from Customer table),
Address1, Address2, City, State, Zip]
Table8
======
Package [PK - PackageId, PackagePUCondition,
PackagePUProblems, PackageDelCondition, PackageDelProblems]
Table9
======
Route [PK - RouteId, AddressId (FFK from table "Address")]
Table10
=======
Payment [PK - PaymentId,
PaymentCustomerId (FK from customer table),
PaymentPackageId (FK from "Package" table),
PaymentType, PaymentInfo, PaymentAmt,
PaymentAddressId (FK from table "Address")]
I know this is probably the easiest scenario out there for anyone who is experienced, but I am hoping someone can just rip this piece to shreds so that I can see the big picture. Before the shredding of my pride begins, I know the 1:1/n:m/1:m/etc relationships are incorrect, but I need a visual representation of the tables, and Access is what I had to go with. The PK/FK is more the focus.
Also, I am thinking maybe I need to break down the Payment table as well.
Any criticism and advice would be much appreciated.
Maybe this will get you started - every line is a table and the table details are omitted, focusing on keys
Customer
Customer*-Addresses*
Addresses
Packages
Destinations[Addresses,Packages]
DeliveryLog[Package,Driver,Route]
DeliveryAttemptLog[...]
Trucks
Trucks*-Drivers*
Drivers
Hubs
Hubs*-Trucks*
Hubs*-Drivers*
Locations[Packages,Hubs]
Loadings[Packages,Trucks]
Routes
Routes*-Addresses*
Packages*-Routes*
It can get pretty complicated depending on the flexibility you want.

Related Links

Using a derived field
How to lock vertical scrollbar in MS Access
Need Help regarding this IIF statement
How to enable 1 user to update the database while allowing others to only read in Microsoft Access?
Operation is not allowed when the object is open
Single prompt parameter for shared parameter in sub-reports' queries
Don't show corresponding field items
VBA traversing through recordset via button
Add new Items in a combo box in access
Generate an ID from different column choices in Microsoft Access 2013
MSACCESS query: not part of an aggregate function
pdi spoon ms-access concat
iff command issue in MS Access
How to display the maximum value from one column in a listbox, in a textbox on the same form
access 2010 writing SQL statements
Add Working Days to Start Date to Create End Date (including Bank Holiday)

Categories

HOME
mockito
lodash
tesseract
alfresco
read-eval-print-loop
malloc
rdf
alpha
wamp
convolution
slurm
modx-revolution
ibm-odm
carthage
systemc
apache-metamodel
oracle-coherence
viewport
swiftlint
php-openssl
claims-based-identity
ejabberd-module
jspm
libssl
titanium-mobile
webtest
overlap
revolution-slider
devextreme
simplexml
dartium
espeak
libraries
c11
core-plot
total-commander
angular2-meteor
revapi
atomicity
qsslsocket
winscp-net
domain-model
mplayer
drupal-6
csound
crypt
snmptrapd
nsarray
ifs
python-cryptography
arrow-keys
bind9
static-ip-address
py2app
pagedlist
sdf
bluegiga
independentsoft
tcpserver
fouc
quicklisp
wyam
php-ci
gwidgets
oxwall
ng-animate
tablelayout
android-imagebutton
didselectrowatindexpath
openlaszlo
commoncrypto
buster.js
dataadapter
django-nonrel
orchardcms-1.7
isnullorempty
quickdialog
bluepill
appconkit
nsmanagedobject
xmlspy
rfc1123
iphone-web-app
lpeg
zend-translate
noscript
genealogy
ajax-forms

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App