Home Products Support Sales Corporate
Products
Performance Monitor
Database Compare
Database Manager
Job Scheduler






Home > Articles > SQL Guide > SQL Statements > SELECT (SQL Statement)

SELECT (SQL Statement)



Description

Retrieves rows from the database and allows the selection of one or many rows or columns from one or many tables.

 

Syntax

SELECT [ DISTINCT ] [ TOP n [ PERCENT ]] select_list
FROM table_source
[ WHERE search_condition ]
[ GROUP BY group_by_expression ]
[ HAVING search_condition ]
[ ORDER BY order_expression [ ASC | DESC ] ]

 

Example

SELECT *
FROM table1
   INNER JOIN table2 ON table1.c1 = table2.c1
WHERE table1.c1 > 10
ORDER BY table1.c1

 

Tools

Troubleshoot SQL Server Performance


Compare and Sync SQL Server Databases


Import & Export SQL Server Data


Schedule SQL Server Express Backups







Articles

Advantages of SQL Server 64-bit


Understanding SQL Server Blocking & Deadlocks


SQL Server Memory Internals

Privacy Statement License Agreement Articles Site Map         Copyright © 2002-2011 Teratrax. All rights reserved.