Docsity

Introduction to SQL: Databases and SQL Basics, Summaries of Computer science

Partial preview of the text

Download Introduction to SQL: Databases and SQL Basics and more Summaries Computer science in PDF only on Docsity!

Databases

I N T R O D U C T I O N T O S Q L Izzy Weber Curriculum Manager, DataCamp

Course goals

  1. Understand databases and their structure โ†’ Chapter 1
  2. Extract information from databases using SQL โ†’ Chapter 2

Introducing databases

Relational databases

Define relationships between tables of data inside the database

Database advantages

SQL

Short for Structured Query Language The most widely used programming language for databases SELECT * FROM patrons LIMIT 30 |

Tables

I N T R O D U C T I O N T O S Q L Izzy Weber Curriculum Manager, DataCamp

A seat at the table

Table rows and columns are referred to as records and fields

Fields are set at database creation; there is no limit to the number of records

Laying the table: records

A record is a row that holds data on an individual observation

Laying the table: fields

A field is a column that holds one piece of information about all records

Assigned seats

Unique identifiers are used to identify records in a table

They are unique and often numbers

The more the merrier

Data

I N T R O D U C T I O N T O S Q L Izzy Weber Curriculum Manager, DataCamp

SQL data types

Different types of data are stored differently and take up different space Some operations only apply to certain data types