SQL Flashcards
(5 cards)
What does SQL stand for and what is its primary purpose?
Structured Query Language - the programming language used to communicate with databases and operate on them
List the 6 categories of SQL commands based on database operations.
- Database Design-Construction, 2. Data Manipulation, 3. Reporting (querying), 4. Data Control, 5. Transaction Control, 6. Miscellaneous Commands
Categorize these SQL operations: Creating tables, SELECT queries, user permissions, BEGIN/COMMIT, INSERT statements, DROP database.
Database Design-Construction: Creating tables, DROP database. Data Manipulation: INSERT statements. Reporting: SELECT queries. Data Control: user permissions. Transaction Control: BEGIN/COMMIT
What is the command to connect to MySQL from the command line and what do the parameters mean?
mysql -u user_name -p. Where -u specifies the username and -p prompts for password authentication
Explain the relationship between SQL and databases. Can you use databases without SQL?
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