Introduction to Oracle SQL Flashcards

1
Q

Definition of a database

A

Set of data stored in a computer, usually structured in a way that makes data easily accessible.

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

RDBMS

A

Relational database management system is a program that allows you to create, update, and administer a relational database.

Most RDBMSs use the SQL language to access the database.

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

Relational database

A

is based on the relational model of data

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

PL/SQL

A

Procedural Language/SQL, or Oracle SQL, is Oracle’s implementation of SQL.

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

Advantages to Oracle SQL

A

It is great for working with large databases, easy to use, has well-written documentation, and supports amazing new features.

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

Disadvantages

A

Not open source

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

ERD

A

An ERD is a graphical representation of the relationships among different entities.

can help you model a real-world system

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

Entities

A

The entities are the things that form the basis of the real-world system and are transformed into tables in a database. This example ERD shows six entities and the relationships between them. (Customer, Invoice, InvoiceLine, Genre, Track, Album).

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

Relationship between two entities with example

A

A relationship between two entities signifies that they are associated with each other. For example, a track belongs to a certain album.

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

Attributes of Entity

A

Once you have established the entities and their relationships, you can enhance your ERD by adding attributes to each entity. For example, for each customer you might want to track the customer’s first and last name as well as contact information such as their address.

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

SQL

A

Structured Queried Language

industry-standard language that can be used to create databases, store data, change and analyze data, and get data back out.

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

Avoiding Duplicates

A

Use DISTINCT

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

Linking Columns

A

CONCATENATION

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

Comparison Operators

A

> , >=. <, <=, =, <>

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

Comparison keywords

A

BETWEEN, IN, LIKE

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

BETWEEN

A

Comparision keyword

SELECT Name, Milliseconds
FROM Track
WHERE Milliseconds BETWEEN 100000 AND 200000

17
Q

IN

A

Comparison Keyword
To look for values in a list of values.

SELECT …
FROM …
WHERE EmployeeID IN (4, 5, 6)

18
Q

LIKE

A

Compartision Keyword
When you don’t always know the exact value to search for

%
_

WHERE LastName LIKE ‘_a%’

19
Q

LIKE %, _

A

% Represents any sequence of zero or more characters
_ Represents any single character