Documentos de Académico
Documentos de Profesional
Documentos de Cultura
customized views
print reports
and more..
Car inventory database, view car cost (purchase price, repair cost,..):
Car inventory database, view car prices (cost price, sale price, listing price, web price, ..):
customized views
print reports
and more..
enter car inventories, customers and prospects data using easy to use data entry forms
(data entry by typing)
.. and more
5. Print labels
Print Label Wizard lets you print selected fields on any label. There are already templates for all
American and European Avery label formats. Print Label Wizard supports the most popular
barcode types used in business. Print Label Wizard allows you to define and print the following
labels: address labels, item inventory labels, spine labels, barcode labels, badges, id cards,
directories.
HTML wizard lets you create a set of linked web pages containing anything from simple contact
listings to complex reports in HTML form.
1:
A2: Tables, columns, data types, stored procedures, triggers, rules, keys, constraints, defaults, and indexes.
3:
Q1: Try to design a database on your own. You will go through a simulated interview and then try to make some sense out
of the interview by creating variables and organizing them into tables. You can also see one way of doing it.
Remember, in this case there isn't just one right answerjust different ways of doing the same thing.
A1: Following is one way to look at creating objects and organizing them into tables and columns. Remember that Day 9
VehicleVIN, Make, Model, Color, Mileage, Photograph, Air Conditioning, Size of Engine, Transmission, Four-Wheel Drive, Power Locks, Other
Features
Sales DataVIN, Cost, List Price, Asking Price, Date Bought, Date Sold, Deposit, Deposit Date, Customer ID, Salesperson ID
VIN (Primary Key) This is the vehicle identification number. This is a character field with a variable length of 30 characters (for nonstandard
cars, and so on).
Make This is the make of the car. Valid responses are something like Ford, Nissan, and so on. This is a character field with a variable length of
30 characters.
Model This is the model of the car. Valid responses are something like Ranger, Altima, and so on. This is a character field with a variable length
of 30 characters.
Color This is the color of the car. This is a character field with a variable length of 20 characters.
Mileage This is the mileage of the car. This is a numeric field with a length of 7 characters (max of 9,999,999it will not track mileage to the
tenth of a mile).
Photo This will be a photograph of the car, taken in 640x480x256 Joint Picture Experts Group (JPEG) format, so it can be published on the
Internet easily. This will be an image field.
AC This is to indicate whether air conditioning is present. Valid responses are Y or N. This will be a character field set to a length of one.
Size_of_Eng This is to indicate how many cylinders the engine has. Valid responses are 3, 4, 6, 8, 10, and 12. This will be a tinyint (tiny
integerranges from 0 to 255) field.
Trans This is the type of transmission, with valid responses being "standard" or "automatic." This will be a variable character field with a
maximum length of nine.
FWD This is to indicate whether the vehicle is four-wheel drive. Valid responses are Y or N. This will be a character field set to a length of one.
PL This is to indicate whether the vehicle has power locks. Valid responses are Y or N. This will be a character field set to a length of one.
Comment This field will be used to hold comments about the vehicle and will be a text variable.
Sales_ID (Primary Key) This is the ID of the salesperson. All salespeople will be assigned an ID to help track sales, and so on. This will be a
smallint (small integerranges from 32,768 to 32,767) field.
Fname This is the salesperson's first name. This will be a variable character field with a maximum of 30 characters.
Lname This is the salesperson's last name. This will be a variable character field with a maximum of 30 characters.
Addr This is the salesperson's address. This will be a variable character field with a maximum of 30 characters.
City This is the salesperson's city. This will be a variable character field with a maximum of 30 characters.
State This is the salesperson's state. This will be a character field with two characters.
Zip This is the salesperson's zip code. This will be a character field with nine characters.
Commission This is the salesperson's base percentage for his commission. This can later be used to calculate commissions based on profits
on cars sold. This will be a tinyint variable.
tblSales: This table will track information about the purchase and sale of the vehicle.
Invoice (Primary Key) This will be the invoice number of the original purchase of the vehicle. This will be a varchar field with a maximum
length of 20.
VIN (Foreign Key) This is the same as the field found in the vehicle table and will be used to create a key to that table.
CustID (Foreign Key) This variable also exists in the customer table. This field will be a key to the customer table.
SalesID (Foreign Key) This variable also exists in the sales table. This will be a key to the sales table.
Cost This is the actual cost of the vehicle. This will be a smallmoney field (it can handle up to $214,000).
List This is the list (blue book) price for the car. This will be a smallmoney field.
Ask This is the asking price. This might change because of a sale, advertisement, or incentive. This will be a smallmoney field.
DateIn This is the date that the vehicle was purchased by the dealer. This will be a smalldatetime field (keeps track of dates down to oneminute intervals).
DateOut This is when the vehicle was sold to a customer. This will be a smalldatetime field.
Deposit This is the amount of a deposit (if any) that the customer has put down on a vehicle. This will be a smallmoney field.
Deposit Date This is when the deposit was made. This will be a smalldatetime field.
CustID (Primary Key) This will hold the social security number of the customer, which will also double as the ID number for the customer. It will
be a nine-digit character field.
Fname This is the customer's first name. It will be a variable character field with a maximum of 30 characters.
Lname This is the customer's last name. It will be a variable character field with a maximum of 30 characters.
Addr This is the customer's address. It will be a variable character field with a maximum of 30 characters.
City This is the customer's city. It will be a variable character field with a maximum of 30 characters.
State This is the customer's state. It will be a character field with two characters.
Zip This is the customer's zip code. It will be a character field with nine characters.
Phone This is the phone number of the customer. It will be a 10-digit character field.
Comments This will be a text field where comments about the customer can be added.
Figure A.1 shows how your tables and their relationships might look.
the world. The various tables and queries used to work with the data are in SQL Server 7.0. Figure A.3 shows a sample layout of the Northwinds database
and its associated tables and fields.
Previous Section
Day 2, "Installing SQL Server 7.0" | Next Section
Modifications
Your Cost
We can set up the system so that you can make changes using
standard Access functions or we can lock out the system so that
no changes can be made. You can add buttons or documents
easily using standard Access commands.