lecture 6 Flashcards

1
Q

what is SQL Database

A

it is a database where we store the data in columns and we call a group of columns a table and these tables can have relations ship between them

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

one of these is not a relation ship between the SQL tables
1- one to one
2- many to many
3- one to many
4- many to one
5- all of them are relation ship
6- non of them is relation ship

A

4-many to one

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

in one to one relation we can replace the relation with a field in the table

A

true we can do it is optional to do it in a field or in a table

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

in one to many relation the table connect to many tables

A

false it mean each table has many records on that specific table like categroy can have many products so when we store that in the table we store the category id in the product table and the category here can be assigned by more than one product

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

can primary key and forign key be diplucated

A

the primary key must be unique for each row while the forign key can be diplucated

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

the primary key and forign key can’t be the same for a row

A

false there is no problem in being the same for a row

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

a table can only have one forign key or no forign key at all

A

false it can have more than one

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

one of these is not a NOSQL database ?
1- wide column database
2- document database
3- column orianted database
4- sql lite database

A

4-sql lite database

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

firestorm and mongodb are ?

A

nosql document database

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

Casandra and HBase are example of ?

A

nosql wide column or (column orianted ) database

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

one of these is a graph data base ?
1-redis
2-neo4j
3- casandra
4-dgraph

A

2-neo4j and 4-dgraph

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