Introduction Flashcards
What does SQL stand for?
Structured Query Language
what does SSMS stand for
SQL server management studio
In order from first to last, what is the order of the main SQL query clauses as keyed-in?
SELECT FROM WHERE GROUP BY HAVING ORDER BY
In order from first to last, what are the phases of logical query processing?
FROM WHERE GROUP BY HAVING SELECT ORDER BY
The JOIN clause is part of which main phase?
FROM
What does RDBMS stand for?
relational database management system, This is the basis for SQL and all modern databases. The data in an RDBMS is stored in tables
What is a column?
a vertical entity in a table that contains data
What is a table?
a table is a collection of related data entries stored within a database
What is a record/row?
a record/row is an individual entry that exists in a table
What is a result set?
the results returned from a SELECT query
what are syntax?
the structure of statements in a computer language, Eg SELECT or FROM.
what does .dbo stand for?
Database order
Which SQL statement is used to extract data from a database
SELECT
Which SQL statement is used to update data in a database?
UPDATE
Which SQL statement is used to delete data from a database?
DELETE
Which SQL statement is used to insert new data in a database?
INSERT INTO
The OR operator displays a record if ANY conditions listed are true. The AND operator displays a record if ALL of the conditions listed are true
True
Which SQL statement is used to return only different values?
SELECT DISTINCT
Which SQL keyword is used to sort the result-set?
ORDER BY
What is the most common type of join?
INNER JOIN
Which operator is used to select values within a range?
BETWEEN
The NOT NULL constraint enforces a column to not accept empty values.
True
Which operator is used to search for a specified pattern in a column?
LIKE
A table can have more than one primary key, True or false?
FALSE
What is the integrity constraint as a rule?
every table must have a primary key and that the column(s) chosen to be the primary key should be unique and not NULL
Which of the statements are true about primary key ?
- Most uniquely identify the row
- Cannot have NULL values
- Should not change over time
- All the above
- All of the above
An alternative name that you assign to the table in the query’s FROM clause
- Query
- Table Alias
- Single-row Functions
- Table Alias
Built-in functions that return a single result for each row of data retrieved
- Single-row functions
- Search condition
- Table alias
- Single-row functions
Removes all of a table’s data without saving any rollback information
- Roll back
- Truncate
- Single-row functions
- Truncate
A query that joins a table to itself
- outer join
- Self-join
- inner join
- self-join
Contains current date and time
- single-row functions
- savepoint
- SYSDATE pseudocolumn
- SYSDATE pseudocolumn
A series of action queries that represent a logical unit of work
- Query
- Single Row function
- Transaction
- Transaction
Combines multiple search conditions using the AND, OR, and NOT logical operators
- Nested query
- Complex search condition
- Group function
- Complex search condition
A main query and one or more subqueries
- Pseudocolumn
- Nested query
- Nested subquery
- Nested query
A bookmark that designates the beginning of an individual section of a transaction
- Search condition
- truncate
- savepoint
- savepoint
A structure that contains information identifying the LOB data type and points to the alternate memory location
- Pagesize
- Linesize
- LOB locator
- LOB locator
A DML command that allows database users to view database data
- Pseudocolumn
- Transaction
- Query
- Query
A DML command that inserts, updates, or deletes database data
- Alias
- Inner Join
- Action query
- Action query
An alternative name for a query column
- Alias
- Action query
- LOB locator
- Alias
Acts like a column in a database table, but is actually a command that returns a specific value
- table alias
- search condition
- Pseudocolumn
- Pseudocolumn
An expression that seeks to match specific table records
- LOB locator
- search condition
- nested query
- search condition