SQL. intro to data

0.0(0)
studied byStudied by 5 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
full-widthPodcast
1
Card Sorting

1/17

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.

18 Terms

1
New cards

What us a database

Structured collection of data

2
New cards

What is DBMS and what are some example?

Database, oracle, ibm, Microsoft

3
New cards

What is a relational database

  • rational data base consists of one or more table

4
New cards

What does a relational data base consist of

knowt flashcard image
5
New cards

What type of of values can occur

Text

Integer

Primary key integer

6
New cards

What is ACID?

ACID refer to properties that assume your database is valid in case of errors a is atomicity, c is consistency, I is isolation, d is durability

7
New cards

How to create table?

CREATE TABLE groceries (id INTEGER PRIMARY KEY, name TEXT, quantity INTEGER );

8
New cards

how to insert values?

iNSERT INTO table VALUES(, "", );

9
New cards

how to select

SELECT (column or table ) FROM table

10
New cards

specific select

SELECT… FROM .. WHERE .. ORDER BY/GROUP BY

11
New cards

join table

SELECT - tableone. column, table2. column

FROM table 1

JOIN table 2

ON ID = ID

12
New cards

other options

ALL THESE COME AFTER SELECT

COUNT (*)

AVG

SUM

MAX

13
New cards

count order

select count (*) (always the whole table)

JOIN

WHERE

GROUP BY

HAVING

14
New cards

important to remember

knowt flashcard image
15
New cards

important to remember 2

knowt flashcard image
16
New cards

important remember 3

knowt flashcard image
17
New cards

why use data base

  • allows other applications of modify

  • queries

  • make sure the structure is right

  • able to store a lot of dat

18
New cards

difference between excel and database

knowt flashcard image