Lab 02
For this lab that we did, we were asked to create a database, and two tables and create a relationship between them two tables. We had to follow a video that our lecturer had linked to us to complete this lab. It was a recap of a previous lecture from last year of all the steps required to complete this lab. In order to use PHPMyAdmin we had to either download MAMP for Mac users or Laragon for PC users and then were able to run PHPMyAdmin. Essentially when we download MAMP or Laragon we could turn our Computers into databases. This lab was a bit more time-consuming this was harder than the last one but I did manage to get the hang of it in the end. The thing I found most difficult was trying to relate the two tables which I did manage in the end.
The database we had to create was called SHOP.
 |
| This is a diagram which indicates relationships between two tables. This table indicates the fields and the relationships to implement. PK stands for Primary Key and FK stands for Foreign Key. |
 |
This was the transaction table I made which had the following content: trans_ID, trans_Description, trans_ID and trans_Cost
This is where I had to make the Customer ID a Foreign key
|
 |
| This is how it looks like as a result of me making the Trans_ID the Primary Key and the Customer ID the Foreign Key |
 |
These are some customer records I made for some camera equipment for Steven Spielberg and Jeff Streeves
|
 |
| This was a structured tab for the Transactions of products |
 |
This was a description I wrote for both customers
|
 |
| This was a structure tab for the Customers of the products |
Comments
Post a Comment