sql Flashcards

1
Q

what is database?

A

database is a collection of data and a method for accessing and manipulating the data.
databases captures and stores the data so that we can use it.

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

different databases

A

there are many databases out there because there are different types of data
and every user every company uses data in a different way.
eg:ibm, oracle, my sql, micreosoft sql server,cassandra etc.

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

what is dbms

A

database management system is a software it is a program used to manage database .it receives instructions from somebody like us that wants somthing to do with the data or make changes in it.

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

what is rdbms

A

relational data base management system is a subest of database management system they are most useful and most common databases.sql , sql lite. oracle uses this kind od database management system .

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

sql

A

structured query language is a way to interact with database mangement system

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

query

A

query is a type of instruction. queries are the ways that we are goung to put our questions and to which we want answer from the database

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

what is heirarchial structure in sql

A

heirarchial structure has a parent and child node relationship .it has drawbacks and every child can only have one parent, and when you delete a parent node child node will be deleted. child node is directly connected to parent node

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

what is networking modal

A

networking modal expanded on to heirarchial modal and allows many to many relationships, child entites could have multiple parents

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

relational modal

A

it does’t have parent child relationships it organizes data in tables also called relations

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

crud

A

create , read , update ,delete these are the things done by sql.its also going to secure the data.

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

columns

A

column stores domain and constrains also called as attributes , for ex : this column has this attributes and the collection of columns is called a degree

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

rows

A

rows are also called as tuples . tuple is nothing but a singular row of data .

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

primary key

A

primary key uniquely identifies the data.

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

foreign key

A

foreign key is a key which references prmary key of a different table

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

oltp

A

online transaction process . data of tranmsactions on daily basis.these are the databases driving day to day transaction

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

olap

A

online analytical process

17
Q

sql commands

A

dcl. dml , dql ,
–dcl stands for data control language.it grants and revokes access, ability to give certain access to certain dataset or revoke access to certain data.
==ddl : data definaton language ddl is used while setting up the data base . in ddl we can create ,alter , drop , rename,truncate , comment.

18
Q

dql

A

data query language contains select statement and is one that drives your world

19
Q

dml

A

data modificaton language , once we use ddl to define our database we are actually talking about the data

20
Q

why postgres sql

A

we are using postgres sql and valentina db for the course . valentina db is an ui used to manage postgres . we are using postgres as it is widely used