SQL Flashcards

(11 cards)

1
Q

What does SQL stand for?

A

Structured Query Language

SQL is used specifically for relational databases.

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

SQL is classified as a Domain-Specific Language (DSL). True or False?

A

TRUE

A DSL is used in specific circumstances, unlike general-purpose languages like JavaScript or Python.

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

What is the purpose of the SELECT command in SQL?

A

To query data from a single table

Example: ‘SELECT x FROM y’ retrieves records from a specified table.

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

Fill in the blank: The WHERE clause is used to _______.

A

narrow-down to a specific value or values

It allows for filtering results in SQL queries.

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

Name the types of JOIN clauses in SQL.

A
  • LEFT JOIN
  • RIGHT JOIN
  • FULL JOIN
  • CROSS JOIN
  • NATURAL JOIN
  • INNER JOIN

JOIN clauses are used to query data from multiple tables.

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

What are query aggregates used for in SQL?

A
  • Total count
  • Minimum and maximum values
  • Sum
  • Average

They allow for summarizing data returned from queries.

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

What does CRUD stand for?

A
  • Create
  • Read
  • Update
  • Delete

CRUD represents the basic operations for managing data in a database.

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

What is the C in CRUD?

A

Create

It refers to adding new data to the database.

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

What is the R in CRUD?

A

Read

It refers to retrieving records from the database.

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

What is the U in CRUD?

A

Update

It refers to editing existing records in the database.

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

What is the D in CRUD?

A

Delete

It refers to removing records from the database.

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