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 last 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.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

SearchServerVirtualization

SearchCloudComputing

SearchEnterpriseDesktop

Close