diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index 843afbd..728d15c 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -4,31 +4,38 @@ "type": "split", "children": [ { - "id": "c7fbd00d7c08bda8", + "id": "f52c29341d47e672", "type": "tabs", "children": [ { - "id": "a094a718d7114385", - "type": "leaf", - "state": { - "type": "full-calendar-view", - "state": {} - } - }, - { - "id": "13f4c5e19c9ab3c8", + "id": "d9a3d1a4a3f2cc4d", "type": "leaf", "state": { "type": "markdown", "state": { - "file": "Semester 2/HCI/Week 2/Week 2 Human Computer Interfaces.md", + "file": "Semester 2/Database Systems/Week 2/Week 2 Database Systems.md", "mode": "source", "source": false } } } - ], - "currentTab": 1 + ] + }, + { + "id": "7b5e68cfd661dd0d", + "type": "tabs", + "children": [ + { + "id": "505b4bbc8a7e15f6", + "type": "leaf", + "state": { + "type": "pdf", + "state": { + "file": "Semester 2/Database Systems/Exercise Booklet.pdf" + } + } + } + ] } ], "direction": "vertical" @@ -95,7 +102,7 @@ "state": { "type": "backlink", "state": { - "file": "Semester 2/HCI/Week 2/Week 2 Human Computer Interfaces.md", + "file": "Semester 2/Database Systems/Week 2/Week 2 Database Systems.md", "collapseAll": false, "extraContext": false, "sortOrder": "alphabetical", @@ -112,7 +119,7 @@ "state": { "type": "outgoing-link", "state": { - "file": "Semester 2/HCI/Week 2/Week 2 Human Computer Interfaces.md", + "file": "Semester 2/Database Systems/Week 2/Week 2 Database Systems.md", "linksCollapsed": false, "unlinkedCollapsed": true } @@ -135,7 +142,7 @@ "state": { "type": "outline", "state": { - "file": "Semester 2/HCI/Week 2/Week 2 Human Computer Interfaces.md" + "file": "Semester 2/Database Systems/Week 2/Week 2 Database Systems.md" } } }, @@ -175,10 +182,23 @@ "switcher:Open quick switcher": false } }, - "active": "13f4c5e19c9ab3c8", + "active": "d9a3d1a4a3f2cc4d", "lastOpenFiles": [ + "images/Pasted image 20240126103004.png", + "Semester 2/Database Systems/Exercise Booklet.pdf", "Semester 2/Database Systems/Week 2/Week 2 Database Systems.md", + "images/Pasted image 20240126102902.png", + "images/Pasted image 20240126101454.png", + "images/Pasted image 20240126101407.png", + "images/Pasted image 20240126101329.png", + "images/Pasted image 20240126101118.png", + "CCNA/1 - Networking Today/1.2 - Network Components.md", + "images/Pasted image 20240125163704.png", + "CCNA/1 - Networking Today/1.1 - Networks Affect our Lives.md", + "CCNA/1 - Networking Today", + "CCNA/Module Information.md", "Semester 2/HCI/Week 2/Week 2 Human Computer Interfaces.md", + "CCNA", "Semester 2/Computer Systems Internals & Linux/Week 2/media/geese_honk_on_public_farm_with_people_in_background_uk.mp3", "Semester 2/Computer Systems Internals & Linux/Week 2/media/freethunderstormtimelapse.mov", "Semester 2/Computer Systems Internals & Linux/Week 2/media/freerometrevifountain.mov", @@ -187,15 +207,9 @@ "Semester 2/Computer Systems Internals & Linux/Week 2/media/freeimage-5931627.jpg", "Semester 2/Computer Systems Internals & Linux/Week 2/media/freeimage-216999.jpg", "Semester 2/Computer Systems Internals & Linux/Week 2/media/freeimage-1967619.jpg", - "Semester 2/Computer Systems Internals & Linux/Week 2/media/freeimage-1816737.jpg", "Semester 2/Computer Systems Internals & Linux/Week 2/media/footsteps_forest_01.mp3", "Semester 2/Computer Systems Internals & Linux/Week 2/media/firework_fountain_sparks_crackle.mp3", "Semester 2/Computer Systems Internals & Linux/Week 2/media/dentist_drill_working_on_tooth.mp3", - "Semester 2/Computer Systems Internals & Linux/Week 2/media/car_drive_on_wet_motorway_at_60mph_car_stops_at_end_daewoo_nexia_automatic.mp3", - "Semester 2/Computer Systems Internals & Linux/Week 2/media/134517847.mp4", - "Semester 2/Computer Systems Internals & Linux/Week 2/media/112707307.mp4", - "images/Pasted image 20240123164006.png", - "images/Pasted image 20240123163911.png", "Semester 2/Database Systems/Week 1/Week 1 Database Systems.md", "Semester 1/Database Systems/Week 10/Week 10 Database Systems.md", "Semester 2/Computer Systems Internals & Linux/Week 1/Week 2 Computer Systems Internals.md", @@ -213,16 +227,9 @@ "README.md", "2023-10-31.md", "2024-01-15.md", - "Semester 1/Web Development and HCI/Assignment 1/src/images/proxmox-03.jpg", - "Semester 1/Web Development and HCI/Assignment 1/src/images/proxmox-04.jpg", - "Web Development and HCI/Assignment 1/src/images/Screenshot from 2023-12-07 18-29-51.png", "Semester 1/Database Systems/Week 9/Week 9 Database Systems.md", "Semester 1/Database Systems/Week 8/Week 8 Database Systems.md", "Semester 1/Database Systems/Week 7/Week 7 Database Systems.md", - "Semester 1/Database Systems/Week 5/Week 5 Database Systems.md", - "Semester 1/Database Systems/Week 6/Week 6 Database Systems.md", - "Semester 1/Database Systems/Assignment/Relational Model.md", - "Semester 1/Database Systems/Assignment/ER Diagram.md", "Database Systems/Untitled.canvas", "Untitled 1.canvas", "Untitled.canvas" diff --git a/CCNA/1 - Networking Today/1.1 - Networks Affect our Lives.md b/CCNA/1 - Networking Today/1.1 - Networks Affect our Lives.md new file mode 100644 index 0000000..43ab681 --- /dev/null +++ b/CCNA/1 - Networking Today/1.1 - Networks Affect our Lives.md @@ -0,0 +1,4 @@ +- Communication easier and more accessible +- Networking allows people to share ideas instantly and act upon them +- News and information instantly available. +- Physical limitations, geographical location, etc eliminated diff --git a/CCNA/1 - Networking Today/1.2 - Network Components.md b/CCNA/1 - Networking Today/1.2 - Network Components.md new file mode 100644 index 0000000..a26ac1f --- /dev/null +++ b/CCNA/1 - Networking Today/1.2 - Network Components.md @@ -0,0 +1,31 @@ +# Host Roles +- To be a part of a global community, a device must be connected to a network connected to the internet. +- All devices connected to a network and participate directly in net communication are classified as hosts. Some hosts are called end-devices, some clients. The term host is refers to any device given a number for communication purposes to identify it. +- This number is referred to as an IP ( Internet Protocol ) address, which identifies the network and host. +- An example of a client is a browser ( Firefox, Chromium, Safari, etc ). A computer can run many types of client applications ex. a user can check email and view a web page while instant messaging and listening to an audio stream. + +# Peer-to-Peer ( P2P ) +- Client and server software usually run on separate devices, however one computer can be used for both roles - this is defined as a Peer-to-Peer network: a device functions as both a server and a client. +- For example, in the figure below, a print sharing PC has a USB connection to the printer, with a network connection to the file sharing PC using a NIC. This allows the file sharing PC to print files, routing through the print sharing PC. +![](Pasted%20image%2020240125163704.png) +## Advantages +- Easy setup +- Low complexity +- Low cost, dedicated servers not required, and networking equipment not required +- Can be used for simple tasks ( File transfer, print sharing ) + +## Disadvantages +- No central admin +- Not secure +- No scalability +- Multi-use devices must dedicate resources to both client and server tasks. + +# End Devices +- Each end device has an IP address +- When communication initiated, an IP address is referenced to indicate the destination +- End device can either be the source or destination + +# Intermediary Devices +- Connect the end device to a network. +- Can connect multiple networks together to create an internetwork +- Use end point IP address, with information about \ No newline at end of file diff --git a/CCNA/Module Information.md b/CCNA/Module Information.md new file mode 100644 index 0000000..e452ebb --- /dev/null +++ b/CCNA/Module Information.md @@ -0,0 +1,10 @@ +# Objectives +- Explain effects of networking +- Explain how host and networking hardware functions +- Represent and convey network topologies & representations +- Compare network characteristics +- Explain how LANs and WANs interconnect to the internet +- Describe the (4) basic requirements of a reliable network +- Explain trends in networking, and how they effect the way we interact +- Identify threats and solutions +- Identify employment opportunities in the field \ No newline at end of file diff --git a/Semester 2/Database Systems/Week 2/Week 2 Database Systems.md b/Semester 2/Database Systems/Week 2/Week 2 Database Systems.md index f6804c0..4f1c7f4 100644 --- a/Semester 2/Database Systems/Week 2/Week 2 Database Systems.md +++ b/Semester 2/Database Systems/Week 2/Week 2 Database Systems.md @@ -76,3 +76,27 @@ AND sailors.rating=7; ``` ![](Pasted%20image%2020240123164006.png) + +# Workshop + +Count number of tuples in the following relations: +1. Products +![](Pasted%20image%2020240126101329.png) +2. Suppliers +![](Pasted%20image%2020240126101454.png) + +How many suppliers does each product have? +Many suppliers to many products + +Write SQL queries which count the number of tuples in each of the following algebraic statements. +1. The relation created by products x suppliers +![](Pasted%20image%2020240126103004.png) +2. The relation created by Products theta Products.SupplierID=Suppliers.SupplierID Suppliers +![](Pasted%20image%2020240126102902.png) + +For each of the following write a description of the data it will retrieve and execute a single SQL statement which retrieves this data from the database + +1. This will return the product name of all products shipped from Manchester. +2. This will return the same as the first, but be more efficient. +3. This will return the city of all employees that live in the same city as a customer. + diff --git a/images/Pasted image 20240125163704.png b/images/Pasted image 20240125163704.png new file mode 100644 index 0000000..b1896ac Binary files /dev/null and b/images/Pasted image 20240125163704.png differ diff --git a/images/Pasted image 20240126101118.png b/images/Pasted image 20240126101118.png new file mode 100644 index 0000000..3b9967a Binary files /dev/null and b/images/Pasted image 20240126101118.png differ diff --git a/images/Pasted image 20240126101329.png b/images/Pasted image 20240126101329.png new file mode 100644 index 0000000..3b9967a Binary files /dev/null and b/images/Pasted image 20240126101329.png differ diff --git a/images/Pasted image 20240126101407.png b/images/Pasted image 20240126101407.png new file mode 100644 index 0000000..67950cd Binary files /dev/null and b/images/Pasted image 20240126101407.png differ diff --git a/images/Pasted image 20240126101454.png b/images/Pasted image 20240126101454.png new file mode 100644 index 0000000..af5903d Binary files /dev/null and b/images/Pasted image 20240126101454.png differ diff --git a/images/Pasted image 20240126102902.png b/images/Pasted image 20240126102902.png new file mode 100644 index 0000000..e187da7 Binary files /dev/null and b/images/Pasted image 20240126102902.png differ diff --git a/images/Pasted image 20240126103004.png b/images/Pasted image 20240126103004.png new file mode 100644 index 0000000..505d0d9 Binary files /dev/null and b/images/Pasted image 20240126103004.png differ