100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Summary CSC2001F SQL databases: commands, ER notation, normal form theory, dependencies, locking, deadlocks and more.

Rating
-
Sold
-
Pages
53
Uploaded on
24-01-2022
Written in
2021/2022

This summary covers everything you need to know about SQL and its commands. It goes through optimisation and ACID properties, as well as entity relationship notations and schemas. They cover database design, normal form theory, functional dependencies, as well as complex concepts such as locking, serialisability, deadlock handling and JDBC and optimisation. All with explanations, diagrams, examples in a clear and concise manner.

Show more Read less
Institution
Course











Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Course

Document information

Uploaded on
January 24, 2022
Number of pages
53
Written in
2021/2022
Type
Summary

Subjects

Content preview

{CSC2001F}
[Chloe Walt] [Year 2, Semester 1]




Chloe Walt

WLTCHL002 |

,Data Bases:

What is a database?

A database is an organized collection of structured information, or data, typically stored
electronically in a computer system. A database is usually controlled by a database
management system (DBMS).

The data can then be easily accessed, managed, modified, updated, controlled, and
organized.

Ways to store data:

1. Remember it
2. Write it down (on paper)
3. Use a spreadsheet

What if many people are using the same data at once?
Different people need access to different parts of the data at once.
A unified access point to the data is needed, so each person can access the subset of data
that they need while everyone is accessing the same underlying data store. A DATA BASE is
needed.

Relational Data Bases:

A collection of tables.
relational databases enable users to manage predefined data relationships across
multiple databases. It helps recognise relations between stored items of information.

Terminology:

1. Attribute: A column (ie. ID, first name, last name)

2. Relation: Technical word for a table. A table defines a relationship between various
columns (i.e. ID of a book to the title of the book)
You can also get relationships across tables (i.e. Book and author's ID in one table, and
name of author in another table (use the ID to get name)).

3. Degree and Cardinality:

- Degree: Number of columns
- Cardinality: Number of rows




1

,Synonyms of the terminology that come up:




The language that we typically use to query relational databases is SQL (Structures Query
Language)




2

, Using SQL:

Commands:

Limiting Columns:

SELECT * FROM family_members
[Selects every column in table family_members]

SELECT name, species, num_books_read FROM family_members
[Selects only the columns specified]

Limiting Rows:

WHERE num_books_read > 100
[Will only print the two rows where the number of books read is greater than 100]

SELECT * FROM friends_of_pickles //Looks at all columns in friends_of_pickles table
WHERE species = 'dog' AND height > 38 //specifies species row, finds items that are dogs
// and their height is > 38




3

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
chloewalt University of Cape Town
Follow You need to be logged in order to follow users or courses
Sold
24
Member since
3 year
Number of followers
12
Documents
36
Last sold
2 weeks ago

4.8

6 reviews

5
5
4
1
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions