Q

Using the SELECT and WHERE clauses to display data

MySQL expert Mike Hillyer explains the command sequences needed for using the SELECT and WHERE clauses to narrow down data results.

How can I display the results of 3 columns (A, B, C) in one table if the value of column "C" is greater than a specific number?

In this case, we specify the columns we want in the SELECT clause and narrow down the results in the WHERE clause:

SELECT A, B, C

FROM mytable

WHERE C > 50;

This was first published in May 2006

Dig deeper on Open source databases

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchDataCenter

SearchServerVirtualization

SearchCloudComputing

SearchEnterpriseDesktop

Close