Oracle SQL Introduction Flashcards

(27 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

True or False: Oracle SQL is a proprietary version of SQL.

A

True

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

Fill in the blank: The primary function of SQL is to ________ data in a database.

A

manipulate

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

What is the command used to retrieve data from a database in Oracle SQL?

A

SELECT

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

Which clause is used to filter records in a SQL query?

A

WHERE

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

True or False: The ORDER BY clause is used to sort the result set.

A

True

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

What command is used to add a new record to a table in Oracle SQL?

A

INSERT

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

What is the purpose of the UPDATE statement in SQL?

A

To modify existing records in a table

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

Which SQL command is used to remove records from a table?

A

DELETE

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

Fill in the blank: In Oracle SQL, a ________ is a collection of related data entries.

A

table

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

What is a primary key in a database?

A

A unique identifier for a record in a table

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

True or False: A foreign key is used to establish a relationship between two tables.

A

True

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

What does the acronym DML stand for?

A

Data Manipulation Language

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

Which SQL statement is used to create a new table?

A

CREATE TABLE

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

What is the purpose of the GROUP BY clause?

A

To arrange identical data into groups

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

Fill in the blank: The ________ function is used to count the number of rows in a result set.

17
Q

What is the difference between INNER JOIN and LEFT JOIN?

A

INNER JOIN returns rows with matching values in both tables, while LEFT JOIN returns all rows from the left table and matched rows from the right table.

18
Q

True or False: SQL statements are case sensitive.

19
Q

What is the purpose of the HAVING clause?

A

To filter records after aggregation

20
Q

Which SQL function is used to find the maximum value in a set?

21
Q

What does the acronym DDL stand for?

A

Data Definition Language

22
Q

Which command is used to modify the structure of an existing table?

23
Q

Fill in the blank: The ________ statement is used to remove a table from a database.

24
Q

What is an index in a database?

A

A database structure that improves the speed of data retrieval

25
True or False: In Oracle SQL, NULL represents a value that is unknown or missing.
True
26
What is a view in Oracle SQL?
A virtual table based on the result of a SQL query
27
Which SQL statement is used to grant permissions on database objects?
GRANT