0
0
MySQLquery~5 mins

Why SELECT retrieves data in MySQL - Quick Recap

Choose your learning style9 modes available
Recall & Review
beginner
What does the SELECT statement do in SQL?
The SELECT statement is used to get or retrieve data from a database table. It shows the data you ask for.
Click to reveal answer
beginner
Why do we use SELECT instead of other SQL commands to get data?
SELECT is designed to read and show data without changing it. Other commands like INSERT or UPDATE change data, but SELECT only looks at it.
Click to reveal answer
beginner
How does SELECT know what data to retrieve?
You tell SELECT which columns and rows you want by writing them in the query. For example, SELECT name FROM users gets the 'name' column from the 'users' table.
Click to reveal answer
beginner
What happens if you use SELECT * in a query?
SELECT * means 'get all columns' from the table. It retrieves every piece of data in each row.
Click to reveal answer
beginner
Can SELECT change data in the database?
No, SELECT only reads and shows data. It does not add, delete, or change anything in the database.
Click to reveal answer
What is the main purpose of the SELECT statement?
ATo create a new table
BTo delete data from a database
CTo update data in a database
DTo retrieve data from a database
Which part of the SELECT statement tells which columns to get?
AFROM clause
BWHERE clause
CSELECT clause
DORDER BY clause
What does SELECT * mean in a query?
AGet all columns from the table
BUpdate all columns
CDelete all data
DGet all rows from the table
Can SELECT change the data stored in the database?
AYes, it can delete data
BNo, it only reads data
CYes, it can update data
DYes, it can insert new data
Which SQL command would you use to get data from a table?
ASELECT
BINSERT
CDELETE
DUPDATE
Explain in your own words why the SELECT statement is used to retrieve data from a database.
Think about how SELECT is different from commands that change data.
You got /3 concepts.
    Describe what happens when you run a query with SELECT * FROM table_name.
    Focus on what the * symbol means in the query.
    You got /4 concepts.