SQL Stuff

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

1/11

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.

12 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. It can return individual values or a set of results, helping to filter or modify the results of the outer query.

2
New cards

What does SUBSTR() do?

The SUBSTR() function extracts a substring from a string, starting at a specified position and continuing for a specified length.

3
New cards

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

It returns the last character, 'r', from the string 'Trevor'.

4
New cards

REPLACE() is used to do what?

The REPLACE() function is used to replace occurrences of a specified substring within a string with another substring.

5
New cards

EXTRACT()

The EXTRACT() function is used to retrieve subparts, such as year, month, day, hour, etc., from a date or time value.

6
New cards

LEFT JOIN vs. LEFT OUTER JOIN

LEFT JOIN and LEFT OUTER JOIN mean the same thing.

7
New cards

Schema

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

8
New cards

Indexing

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

9
New cards

CASE Statement

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

10
New cards

OVER()

a window function that performs calculations across a specified range of rows related to the current row.

11
New cards

REGEX

Regular Expression

12
New cards

Used for pattern matching in SQL

REGEX