SQL Flashcards

(5 cards)

1
Q

What does SQL stand for and what is its primary purpose?

A

Structured Query Language - the programming language used to communicate with databases and operate on them

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

List the 6 categories of SQL commands based on database operations.

A
  1. Database Design-Construction, 2. Data Manipulation, 3. Reporting (querying), 4. Data Control, 5. Transaction Control, 6. Miscellaneous Commands
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Categorize these SQL operations: Creating tables, SELECT queries, user permissions, BEGIN/COMMIT, INSERT statements, DROP database.

A

Database Design-Construction: Creating tables, DROP database. Data Manipulation: INSERT statements. Reporting: SELECT queries. Data Control: user permissions. Transaction Control: BEGIN/COMMIT

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

What is the command to connect to MySQL from the command line and what do the parameters mean?

A

mysql -u user_name -p. Where -u specifies the username and -p prompts for password authentication

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

Explain the relationship between SQL and databases. Can you use databases without SQL?

A

SQL is the standard language for communicating with relational databases. While some NoSQL databases use different query languages, SQL is essential for relational database operations - you cannot effectively operate relational databases without it

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