IT: Data between two years 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 find data between two years in SQL:

Example Question: Which Ice cream flavored were offered between years 1980 and 2000?

SELECT Ice_cream_flavor from ICECREAM where Year_first_Offered between ‘1980’ and ‘2000’;

Output:

> SELECT Ice_cream_flavor from ICECREAM where Year_first_Offered between ‘1980’ and ‘2000’;

ICE_CREAM_FLAVOR

—————-

Vanilla

Chocolate

Mint

Banana

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