Databases and SQL

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/21

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

22 Terms

1
New cards

Database

A computer-based, structured collection of data items which allows the user to store, retrieve, update, search and manipulate the data.

2
New cards

The basic structure for a database is one or more

tables

3
New cards

Reading across is a

row, we have the complete record

4
New cards

Each column

id one item of data from a record, and is known as a field

5
New cards

One advantage of a database

its ability to search through large volumes of data and quickly find the information we need.

6
New cards

Finding certain data in a database is usually called

‘querying’ the database or ‘searching’

7
New cards

A simple query

one where you are looking for all the records in the database that have one thing in common. E.g.: Pupils who are in UC4

8
New cards

A complex query is

where we are looking for records that have two (or more) things in common

e.g.: Pupils in UC4 who live in Manchester

9
New cards

We use these ‘operators’ when we compose a database query:

=, >, <, >=, <=

10
New cards

another advantage of a database

is its ability to sort large volumes of data quickly and put it in any order we wish

11
New cards

data is sorted in either…

ascending or descending order

12
New cards

SQL (structured query language) is a

computer language designed for creating database queries. Most database systems support SQL.

13
New cards

Casual users of a database

don’t need to use SQL. Usually they are provided with an easy-to-use interface (aka ‘front-end’) with text boxes, pull down menus, etc.

14
New cards

Many systems are internet based, we call this:

web-form

15
New cards

programmers building a database system will use

SQL to create the system used by ordinary users.

16
New cards

A line of SQL intended to perform a query on the database is called a

statement

17
New cards

An SQL statement refers to tables and columns (fields) in the database

e.g. SELECT title, author, price FROM books;

SELECT * FROM pupils WHERE house = “St. Austin’s”;

18
New cards

we usually write SQL keywords like SELECT and WHERE in

UPPERCASE. Table names and fields are written in lowercase.

19
New cards

SELECT forename, surname FROM pupils

SELECT - look in the database and find

forename, surname - the information from these fields

FROM pupils - using this table

20
New cards

SELECT * FROM pupils

* - the information from all tables

21
New cards

SELECT * FROM products WHERE price <= 10.0

WHERE - but only the ones where in the price field contains a value of 10.0 or less

22
New cards