For this assignment, we will simulate the creation of a variety of tables with various attributes. The key to a successful grade on this assignment is the appropriate structure and data types for each attribute. Make sure you pay attention to the information given and choose the data type that BEST meets the client requirements and provides for data validation. Please include the attributes as they appear below (do not add or remove attributes). Follow the instructions and specifications provided. Note: Constraints are not required in this assignment.
You will submit a total of 2 sql files to CodeGrade. Files should be named appropriately and be in .sql format. Each file must use the postgres standards taught in the course. Ensure your CREATE TABLE statements run together in pgAdmin prior to submission. Use of other SQL languages such as T-SQL will result in an automatic 0 for the assignment. You will have one submission attempt for this assignment.
As in the practice assignment, you will be working for a company that creates and maintains databases for small business customers. The company has taken on two new clients that you will need to set up with their own databases. Note that since these are two separate databases, you ARE allowed to repeat the names of tables and attributes (for example, both companies have an inventory table. Both tables can be called inventory since they are in different databases). It is encouraged that if you have questions or difficulties with any portion of this assignment that you utilize the discussion board or GAs to gain clarity.
The first client is a local auto parts company called “Auto Parts Unlimited”. Complete the following steps for this client:
***************************ASSIGNMENT CONTINUED ON NEXT PAGE****************************
The second client is a local coffee shop / bakery called “Holy Grounds”. Complete the following steps for this client:
The data types accepted for this assignment are found below. To read more about each data type listed, follow the link to the postgres documentation. Ensure you only use the bullet point data types listed below in this assignment! Also be sure to read about each data type to choose the best type for each attribute.
https://www.postgresql.org/docs/current/datatype-numeric.html
https://www.postgresql.org/docs/current/datatype-money.html
https://www.postgresql.org/docs/current/datatype-character.html
*Must specify length of field (n). Ensure you have enough characters to accommodate. Know difference of when to use char vs. varchar.
https://www.postgresql.org/docs/current/datatype-datetime.html
https://www.postgresql.org/docs/current/datatype-boolean.html
*******************************GRADING RUBRIC ON NEXT PAGE*********************************
This assignment will be graded on the following rubric:
Item
Points
Database Creation Statements (2)
10
Table Creation Statements (6)
Run in entirety without error
10
Below are the specific point values for attributes by tables. Note that credit is awarded for appropriate definition and data type. Failure to use a data type that does not meet the client requirements and meet data validation needs will result in loss of points for that attribute. Some attributes are weighted more than others because of their difficulty.
Auto Parts Unlimited
Customers: Customer ID
5
Employees: Employee ID
5
Employees: Probationary Status
5
Parts Inventory: Part Number
5
Parts Inventory: Quantity
5
Holy Grounds
Coffee Inventory: Organic
5
Coffee Inventory: Low Acid
5
Sales Transaction: Receipt ID
5
Store: Store ID
5
ALL OTHER ATTRIBUTES (2 points each)
35
Total
100
Bonus
5
Max
105
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more