0
0
MySQLquery~5 mins

First query execution in MySQL - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of the SELECT statement in SQL?
The SELECT statement is used to retrieve data from a database table. It lets you choose which columns and rows to see.
Click to reveal answer
beginner
What does this query do? <br>SELECT * FROM users;
This query retrieves all columns and all rows from the table named users. The asterisk (*) means 'all columns'.
Click to reveal answer
beginner
Why do we end SQL statements with a semicolon (;)?
The semicolon marks the end of an SQL statement. It tells the database that the command is complete and ready to run.
Click to reveal answer
beginner
What is a database table?
A database table is like a spreadsheet with rows and columns. It stores data in an organized way so you can find and use it easily.
Click to reveal answer
beginner
What happens when you run your first SQL query?
When you run your first SQL query, the database reads your command, finds the data you asked for, and shows it to you.
Click to reveal answer
What does the SELECT statement do?
ARetrieves data from a database
BDeletes data from a database
CUpdates data in a database
DCreates a new database
What does the asterisk (*) mean in SELECT * FROM table_name;?
ASelect only one column
BSelect no columns
CSelect all columns
DSelect only rows with *
Why do SQL statements end with a semicolon (;)?
ATo mark the end of the statement
BTo start the statement
CTo comment the statement
DTo ignore the statement
What is a database table similar to?
AA video file
BA spreadsheet with rows and columns
CA photo album
DA text document
What happens when you run your first SQL query?
ANothing happens
BThe database deletes all data
CThe database crashes
DThe database shows the data you asked for
Explain what happens when you run your first SQL query.
Think about how the database processes your command and shows you data.
You got /3 concepts.
    Describe the role of the SELECT statement in SQL.
    Focus on what <code>SELECT</code> does in a query.
    You got /3 concepts.