Lesson 18 Flashcards
SQL?
Structured query language for writing and querying data. Used to communicate with a database. It is the standard language for relational database management systems.
NoSQL (not only SQL)
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.
Schema
Logical container for database objects ( tables, views, triggers and so on) . The skeleton structure that represents the logical view of the entire database
Primary key
Uniquely identifies a record in table
Foreign key
Is a field in the table that is primary key in another table
What SQL statement is used to extract data from a data base ?
Select
What SQL statement is used to update data in a database?
Update
What SQL statement is used to delete data from a DB?
Delete
What SQL command is used to insert new data in a db?
Insert into
With SQL, how do you select a column named \”firstname\” from a table named \”persons\”?
SELECT Firstname FROM Persons
With SQL, how do you select all the columns from a table named \”Persons\”?
SELECT *FROM Persons
What SQL command is used to return only different values?
SELECT DISTINCT
What is the most common type of join?
INNER JOIN