lecture 6 Flashcards
what is SQL Database
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
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
4-many to one
in one to one relation we can replace the relation with a field in the table
true we can do it is optional to do it in a field or in a table
in one to many relation the table connect to many tables
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
can primary key and forign key be diplucated
the primary key must be unique for each row while the forign key can be diplucated
the primary key and forign key can’t be the same for a row
false there is no problem in being the same for a row
a table can only have one forign key or no forign key at all
false it can have more than one
one of these is not a NOSQL database ?
1- wide column database
2- document database
3- column orianted database
4- sql lite database
4-sql lite database
firestorm and mongodb are ?
nosql document database
Casandra and HBase are example of ?
nosql wide column or (column orianted ) database
one of these is a graph data base ?
1-redis
2-neo4j
3- casandra
4-dgraph
2-neo4j and 4-dgraph