Ravindra BagaleCourses & study guides Track your progress

3. SELECT Basics: Read Rows Without Changing Data

3.1 What SELECT Does (Read Only — Safe to Practise)

Why. Fear of breaking data stops beginners. SELECT is read-only.

What. SELECT reads rows. It does not UPDATE or DELETE unless you write those words.

How. Start every practice day with SELECT … FROM … LIMIT.

Steps

  1. Open raja_coffee.
  2. Run a small SELECT with LIMIT.
  3. Confirm Browse Data still looks the same.

Examples

Example 1 · dataset: raja_coffee

SELECT order_id, amount_inr FROM orders LIMIT 3;

Output

order_idamount_inr
1001840.0
1002720.0
1003890.0

Meaning. Three amounts — data unchanged after the query.

Ravindra Bagale's Tip

If the statement starts with SELECT, you are in safe practice mode.