Karteikarten
SQL
Karten in diesem Stapel (38)
- 1Relational DatabaseRelies on implementation of SQL. The applications that host multiple databases
- 2What is SQLStructured Query Language. Used to implement actions to a database, whether create, manipulate, or delete.
- 3How do we use SQL on a DatabaseWe use sql through the 5 sublanguages to create, modify, delete.
- 4What are the 5 sub-languages in SQLDDL, TCL, DCL, DML, DQL
Data Definition Language
Transaction Control Language
Data Control Language
Data Manipulation Language
Data Query Language - 5What are the Commands for DDLCreate Alter Drop Truncate
- 6What are the commands of the TCLCommit, Savepoint, Rollback
- 7What are the commands of the DQLSelect
- 8What are the commands of the DCLThe Data Control Language uses Grant or Revoke.
- 9Commands of the DMLInsert, Update, delete
- 10What are the Acid Properties of TransactionsA.Atomic
C. Consistent
I.Isolated
D.Durable - 11What does it mean for a transaction to be Atomic, Consistent, Isolated, DurableThe transaction has statements unable to be divisible/split up anymore.
The statements are Consistent, meaning that always returns true if it runs true or false if it runs false.
Isolated meaning that the work one person does on a database will not affect someone else's experience.
Durable meaning the changes are committed forever - 12What are the different types of joins?Inner Join, Self Join, Left Join, Right Join, Left (if Null) Join, Right (if Null) Join, Full Join, Cross Join
- 13What is a Inner JoinWhere two tables that share common information join off of that.
- 14What is Self JoinA way of one table joining itself to test the values
- 15What is Left JoinThe use of the common language from two tables and shows the first mentioned table as well as the shared information
- 16What is Right JoinThe use of the common information from the two tables, but shows the second mentioned table instead with the shared information
- 17Full JoinThis joins the two tables entirely
- 18Cross JoinTakes the column from table A and forces the combination with column b whether or not they are related
- 19Differences between Union and Union AllUnion returns Unique Data meaning no duplicates and no Null.
Union All returns everything - 20What is a trigger?Special type of stored procedures that auto executes when an event occurs
- 21What is a sequenceOrder list of numbers to count things
- 22What is a functionA common language runtime routine that uses parameters and performs actions
- 23How do you query a record?Request for information from a database using select
- 24How do you insert?Insert into (table name) values (column name values)
- 25How do you updateUpdate (table name) set (coulmn name = (new information)) where (criteria to be met)
- 26How do you deleteDelete from (table name) where (column name = title)
- 27What piece of information is returned from an insert update delete?The statistics shows how many rows are affected and then if you look at the table being affected you can see the changes
- 28What is a constraint violationWhen creating a table column and constraint for the column does not satisfy the values that can be implemented
- 29What is a cursorAn abstract ruleset temporary work area in the system memory
- 30How to create any one of the aboveTo create a cursor:
Create or replace function funcname()
returns reference as $$
declare the cursor begin function end
Then create a do implementation to use the cursor - 31What is an idexDetermines the order of the information in the table
- 32What is referential integrityData linked between two or more tables using a foreign key that references a primary key that is in the parent table
- 33What are the constraints you can put on a table columnData types, Not Null, Primary and Foreign Key
- 34What are the interfaces of JDBCConnection Statement Prepared Statement, Callable Statment
- 35What is a JDBC DriverPostgre SQL
- 36Difference between Statement Prepared Statement and Callable StatementStatement is used for a general purpose of accessing data in the database.
Prepared Statement is used when planning to use a statement multiple times
Callable statements used to execute a call to a database stored procedure - 37What is a RulesetSet of rows from a database as well as metadata about the query such as column names
- 38Explain the DAO patternThe design communicates from an object which communicates to the data access objects which communicates with the data source
Informationen
- Beschreibung
- Karteikarten am SQL, erstellt von Andrew Dickinson am 02/01/2019.
- Erstellt von
- Andrew Dickinson
- Aufrufe
- 5
- Bewertung