How To Select All Columns of All Rows from a Table with a SELECT statement in MS SQL Server?

Submitted by: Administrator
The simplest query statement is the one that selects all columns of all rows from a single table: "SELECT * FROM tableName". The (*) in the SELECT clause tells the query to return all columns. The missing WHERE clause tells the query to return all rows in specified table. The tutorial exercise below returns all columns and all rows from table "ggl_links":
<pre>
SELECT * FROM ggl_links
id url notes counts created
101 globalguideline.com NULL 0 2006-04-30
102 globalguideline.com/html NULL 0 2007-05-19
103 globalguideline.com/sql NULL NULL 2007-05-19
</pre>
Submitted by: Administrator

Read Online MS SQL Server Job Interview Questions And Answers