SQL Syntax

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/14

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

15 Terms

1
New cards

Subquery

A subquery is a query nested inside another SQL query, often used to retrieve data that will be used in the main query's condition.

2
New cards

test

this is the answer

3
New cards

testee

tjhis is the answer

4
New cards

Obtains a portion of a string.

What does SUBSTR() do?

5
New cards

r

What would SUBSTR(‘Trevor, -1) return?

6
New cards

Replace a portion of or a whole string. Ex: REPLACE(names, ‘Matt’, ‘Matthew’)

REPLACE() is used to do what?

7
New cards

Last name of customers with last name ending in a, r, or s.

What would this query return?

<p>What would this query return?</p>
8
New cards

The year, quarter, month, week, day from a column with the DATE data type.

What does EXTRACT() allow us to return?

9
New cards

clause used to combine and retrieve records from two or multiple tables.

JOIN

10
New cards

collection of database structural elements such as tables, stored procedures, indexes, functions, and triggers.

Schema

11
New cards

joins two or more string values appending the second string to the end of the first one

CONCAT()

12
New cards

creates a special data structure that speeds up data retrieval by allowing the database to find rows more efficiently.

Indexing

13
New cards

way to implement the if-then-else logic in SQL.

CASE Statement

14
New cards

captures, stores, and processes data from transactions in real time.

OLTP

15
New cards

OLTP

captures, stores, and processes data from transactions in real time.