Theoretical Flashcards
SQL language basis
Relational model for querying and managing data based on ANSI and ISO standards
Imperative vs declarative programming
The easiest way to explain the difference between declarative and imperative code, would be that imperative code focuses on writing an explicit sequence of commands to describe how you want the computer to do things, and declarative code focuses on specifying the result of what you want.
SQL uses which paradigm
Declarative, that is, to specify, what I want to get not how I want to get something
What are the categories of statements in SQL
Data definition language (DDL), Data manipulation language (DML), and data control language (DCL)
DDL
Object definition- create, alter, drop.
DML
Data manipulation language- select, insert, delete, update, truncate, and merge
DCL
Data control language, Grant and revoke
T-sql subset or superset?
Both, hahaha
Set theory
Georg cantor, By a “set” we mean any collection M into a whole of definite, distinct objects m (which are called the “elements” of M) of our perception or of our thought.
Set definition
Set and set definitions ‘ are
Not supported by proofs/ they are axioms
Whole
A set should be considered a single entity . Collection of objects as opposed to an individual object.
Distinct
Every element of a set must be unique, to have key in a row
“Our perception of one thought”
Definition of a set is subjective
Object
Abstract objects
No mention of order
Older is not important
Set of tuples
Rows in SQL