MS SQL Server Concepts and Programming Question:
Download Questions PDF

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

MS SQL Server Interview Question
MS SQL Server Interview Question

Answer:

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>

Download MS SQL Server Interview Questions And Answers PDF

Previous QuestionNext Question
What Is a SELECT Query Statement in MS SQL Server?How To Select Some Specific Columns from a Table in a Query in MS SQL Server?