Introduction Flashcards

(41 cards)

1
Q

What does SQL stand for?

A

Structured Query Language

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

what does SSMS stand for

A

SQL server management studio

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

In order from first to last, what is the order of the main SQL query clauses as keyed-in?

A
SELECT
FROM
WHERE
GROUP BY
HAVING
ORDER BY
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In order from first to last, what are the phases of logical query processing?

A
FROM
WHERE
GROUP BY
HAVING
SELECT
ORDER BY
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The JOIN clause is part of which main phase?

A

FROM

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

What does RDBMS stand for?

A

relational database management system, This is the basis for SQL and all modern databases. The data in an RDBMS is stored in tables

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

What is a column?

A

a vertical entity in a table that contains data

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

What is a table?

A

a table is a collection of related data entries stored within a database

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

What is a record/row?

A

a record/row is an individual entry that exists in a table

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

What is a result set?

A

the results returned from a SELECT query

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

what are syntax?

A

the structure of statements in a computer language, Eg SELECT or FROM.

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

what does .dbo stand for?

A

Database order

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

Which SQL statement is used to extract data from a database

A

SELECT

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

Which SQL statement is used to update data in a database?

A

UPDATE

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

Which SQL statement is used to delete data from a database?

A

DELETE

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

Which SQL statement is used to insert new data in a database?

A

INSERT INTO

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

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

18
Q

Which SQL statement is used to return only different values?

A

SELECT DISTINCT

19
Q

Which SQL keyword is used to sort the result-set?

20
Q

What is the most common type of join?

21
Q

Which operator is used to select values within a range?

22
Q

The NOT NULL constraint enforces a column to not accept empty values.

23
Q

Which operator is used to search for a specified pattern in a column?

24
Q

A table can have more than one primary key, True or false?

25
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
26
Which of the statements are true about primary key ? 1. Most uniquely identify the row 2. Cannot have NULL values 3. Should not change over time 4. All the above
4. All of the above
27
An alternative name that you assign to the table in the query’s FROM clause 1. Query 2. Table Alias 3. Single-row Functions
2. Table Alias
28
Built-in functions that return a single result for each row of data retrieved 1. Single-row functions 2. Search condition 3. Table alias
1. Single-row functions
29
Removes all of a table’s data without saving any rollback information 1. Roll back 2. Truncate 3. Single-row functions
2. Truncate
30
A query that joins a table to itself 1. outer join 2. Self-join 3. inner join
2. self-join
31
Contains current date and time 1. single-row functions 2. savepoint 3. SYSDATE pseudocolumn
3. SYSDATE pseudocolumn
32
A series of action queries that represent a logical unit of work 1. Query 2. Single Row function 3. Transaction
3. Transaction
33
Combines multiple search conditions using the AND, OR, and NOT logical operators 1. Nested query 2. Complex search condition 3. Group function
2. Complex search condition
34
A main query and one or more subqueries 1. Pseudocolumn 2. Nested query 3. Nested subquery
2. Nested query
35
A bookmark that designates the beginning of an individual section of a transaction 1. Search condition 2. truncate 3. savepoint
3. savepoint
36
A structure that contains information identifying the LOB data type and points to the alternate memory location 1. Pagesize 2. Linesize 3. LOB locator
3. LOB locator
37
A DML command that allows database users to view database data 1. Pseudocolumn 2. Transaction 3. Query
3. Query
38
A DML command that inserts, updates, or deletes database data 1. Alias 2. Inner Join 3. Action query
3. Action query
39
An alternative name for a query column 1. Alias 2. Action query 3. LOB locator
1. Alias
40
Acts like a column in a database table, but is actually a command that returns a specific value 1. table alias 2. search condition 3. Pseudocolumn
3. Pseudocolumn
41
An expression that seeks to match specific table records 1. LOB locator 2. search condition 3. nested query
2. search condition