Sei sulla pagina 1di 4

ASSIGNMENT

Name: WALEED BIN SUHAIL


ID: 10440
Submitted to: Miss. Shama
Section: A
Course: Computer Applications-2
Ames River Jewelry Project Questions
1). Customer (Name, Phone, Email, Invoice Number, Date, Pretax Amount)

The above design cannot be considered valid since the field “NAME” in the table is being
displayed more than once

2). Customer (Name, Phone, Email, Invoice Number, Date, Pretax Amount)

The above design can be considered valid since the field “INVOICE NUMBER” in the table
unique for every row.

3). Customer (Name, Phone, Email, Invoice Number, Date, Pretax Amount)

The above design cannot be considered valid since the field “EMAIL” in the table is being
repeated or it has been displayed more than once.

4). Customer (Customer ID, Name, phone, invoice number, date, pre tax amount)

For finding a specific customer the customer ID can be the primary key, because it’s the ID which is
unique and can retrieve the specific information according to the needs of the user.

5). Customer (Name, phone, Email) And Purchase (Invoice number, date, Pre tax amount)

The email address of the customer cannot be the primary key for the retrieval of required specific
customer, as the email address doesn’t have any unique data which specifies that the data required by
the user was of the same customer which the user requires. Secondly, many other customers can also
have the same email addresses at various places.

For finding a specific purchase the invoice number cannot be the primary key, because of the same
invoice number it can never be retrieved that what were the purchases. And it means that some other
data is also required as the composite key so that specific data can be retrieved.

6). Customer (Name, phone, email) And Purchase (Invoice number, date, pre tax amount, email)

The email address of the customer cannot be the primary key for the retrieval of required specific
customer, as the email address doesn’t have any unique data which specifies that the data required by
the user was of the same customer which the user requires. Secondly, many other customers can also
have the same email addresses at various places.

For finding a specific purchase the invoice number cannot be the primary key, because of the same
invoice number it can never be retrieved that what were the purchases. And it means that some other
data is also required as the composite key so that specific data can be retrieved.
7). Customer (Name, email) And Purchase (Invoice number, phone, date, pre tax amount, email)

The email address of the customer cannot be the primary key for the retrieval of required specific
customer, as the email address doesn’t have any unique data which specifies that the data required by
the user was of the same customer which the user requires. For finding a specific purchase the invoice
number cannot be the primary key, because of the same invoice number it can never be retrieved that
what were the purchases. And it means that some other data is also required as the composite key so
that specific data can be retrieved.

Garden Glory Project Questions


1). Property (Property Name, type, street, city, zip, service date, description, amount)

Property Name cannot be a primary key, because in the above mentioned table there are many
properties of the same name. So, while retrieving the data no particular information can be found
directly.

2). Property (Property Name, type, street, city, zip, service date, description, amount)

Service Date cannot be a primary key, as it’s not specific that what particular property was being
serviced on the particular date. Because, on a single date there can be more than one property and due
to this it doesn’t retrieve the exact data of the property which the user needs.

3). Property (Property name, type, street, city, zip, service date, description, amount)

Here the method of composite key is used, but Property name and Service date is not appropriate to
find the property as the property names are several and are repeated and secondly, it is not confirmed
that the service date have the unique data i.e. it doesn’t shows that on a single service date only single
or one property was serviced.

4).Property (Property ID, Property Name, type, street, city, zip, service date, description, amount)

For finding a specific property the Property ID can be the primary key, because it’s the ID which is
unique and can retrieve the specific information according to the needs of the user.

5). Property (Property ID, Property Name, type, street, city, zip, service date, description, amount)

For finding a specific property the Property ID and the service date can because as the composite key,
because it’s the ID which is unique and can retrieve the specific information according to the needs of
the user. Because ID is the thing which is different of all the properties and are unique and secondly,
the service date provides the specific information of the required date with authentic date.

6).Property (Property ID, Property Name, type, street, city, zip, service date,)
And Service (Service date, Description, Amount)

For finding a specific property the Property ID can be the primary key, because it’s the ID which is
unique and can retrieve the specific information according to the needs of the user.

The service date cannot be the primary key for the retrieval of required service, as the service date
doesn’t have any unique data which specifies that the data required by the user was confirmed served
on that date. Secondly, many other properties can also be serviced on that particular single date.

7). Property (Property ID, Property Name, type, street, city, zip, service date)

And Service (Service ID, Service date, Description, Amount)

For finding a specific property the Property ID can be the primary key, because it’s the ID which is
unique and can retrieve the specific information according to the needs of the user.

For finding a specific service the service ID can be the primary key, because it’s the ID which is
unique and can retrieve the specific information according to the needs of the user.

8).Property (Property ID, Property Name, type, street, city, zip, service date)

And Service (Service ID, Service date, Description, Amount, Property ID)

For finding a specific property the Property ID can be the primary key, because it’s the ID which is
unique and can retrieve the specific information according to the needs of the user.

For finding a specific service the service ID can be the primary key, because it’s the ID which is
unique and can retrieve the specific information according to the needs of the user.

9). Property (Property ID, Property Name, type, street, city, zip)

And Service (Service ID, Service date, Description, Amount, Property ID)

For finding a specific property the Property ID can be the primary key, because it’s the ID which is
unique and can retrieve the specific information according to the needs of the user. Because ID is the
thing which is different of all the properties and are unique.

For finding a specific service the service ID can be the primary key, because it’s the ID which is
unique and can retrieve the specific information according to the needs of the user. Because ID is the
thing which is different of all the properties and are unique.

Potrebbero piacerti anche