Challenge: Say “Hello” to the Table

Use the SELECT statement to display all the records from a table named pets.

The pets table

The pets table stores information about different animals, like their name, type, and age.

ID

Name

Type

Age

1

Coco

dog

5

2

Luna

cat

3

3

Goldie

fish

1

Challenge: Say “Hello” to the Table

Use the SELECT statement to display all the records from a table named pets.

The pets table

The pets table stores information about different animals, like their name, type, and age.

ID

Name

Type

Age

1

Coco

dog

5

2

Luna

cat

3

3

Goldie

fish

1

MySQL
# Write SQL query to fetch data for pets table