IT: Select All in SQL

So what is the benefit of SQL, also known as Oracle? Well you can keep track of your customers records easily for one thing. Second, it is secure, so no one, unless you give them permission, will access this information. Below you will see one of the basics of SQL.

How to select All in SQL:

*=symbol for ALL

select * from ICECREAM;

Output you should see:

SQL> select * from ICECREAM;

ICE_CREAM_ID ICE_CREAM_FLAVOR      PRICE YEAR_FIRST_OFFERED SELLING_STATUS

———— —————- ———- —————— ————–

101 Berry                     4               2010 Null

201 Vanilla                 2.5               1981 high

211 Cherry                    3               1976 low

311 Chocolate                 3               1981 high

321 Strawberry                2               1961 high

405 Pistachio               2.5               2012 low

406 Almond                    3               2010 Null

407 Blackberry                4               2015 Null

510 Mint                    1.5               1998 medium

520 Cookie                    2               2001 medium

525 Green Tea               4.5               2012 low

ICE_CREAM_ID ICE_CREAM_FLAVOR      PRICE YEAR_FIRST_OFFERED SELLING_STATUS

———— —————- ———- —————— ————–

540 Raspberry                 3               2012 Null

545 Banana                  1.5               1992 medium

550 Pineapple               2.5               2001 high

560 Coconut                3.25               2012 medium

15 rows selected.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s