Lesson 18 Flashcards

1
Q

SQL?

A

Structured query language for writing and querying data. Used to communicate with a database. It is the standard language for relational database management systems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

NoSQL (not only SQL)

A

Is a non-relational DMS (database management system) that doesn’t require a fixed schema, avoids joins, and easy to scale. Used for distributed stores with humongous data storage needs. Used for big data and real time web apps. Ie: twitter,fb, and Google collect terabytes of user data every single day.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Schema

A

Logical container for database objects ( tables, views, triggers and so on) . The skeleton structure that represents the logical view of the entire database

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Primary key

A

Uniquely identifies a record in table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Foreign key

A

Is a field in the table that is primary key in another table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What SQL statement is used to extract data from a data base ?

A

Select

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What SQL statement is used to update data in a database?

A

Update

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What SQL statement is used to delete data from a DB?

A

Delete

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What SQL command is used to insert new data in a db?

A

Insert into

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

With SQL, how do you select a column named \”firstname\” from a table named \”persons\”?

A

SELECT Firstname FROM Persons

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

With SQL, how do you select all the columns from a table named \”Persons\”?

A

SELECT *FROM Persons

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What SQL command is used to return only different values?

A

SELECT DISTINCT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the most common type of join?

A

INNER JOIN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly