↑ Return to General SQL Commands

Print this Page

SQL Select

How to write Select statement in SQL?:

The SELECT keyword allows us to grab all information from a column (or columns) on a table. This, of course, necessarily mean that there will be redundancies. What if we only want to select each DISTINCT element? This is easy to accomplish in SQL. All we need to do is to add DISTINCT after SELECT.

The syntax is as follows:

SELECT DISTINCT “column_name”
FROM “table_name”

SELECT customer_name FROM tblcustomer

Permanent link to this article: http://www.techxpress.in/general-sql-commands/select-syntax/

Leave a Reply

Bookmark this page