Figure 4: The diagram above depicts the relationship between the three tables.
Database Queries
1) From customers.cs file, the following SQL insert statement is used to add members to
the members table:
"INSERT INTO Members " +
" (ID, FIRSTNAME, LASTNAME, ADDRESS, CITY, STATE, ZIPCODE,
PASSWORD, MEMBERTYPE) " +
" VALUES " +
" ('" + R(ID) +
"','" + R(firstName) +
"','" + R(lastName) +
"','" + R(address) +
"','" + R(city) +
"','" + R(state) +
"','" + zip +
"','" + R(password) +
"','" + R(memberType) + "')";
2) From orders.cs file, the following SQL insert statement is used to add orders in to the
orders table:
Commentaires sur ces manuels