MS SQL Server Concepts and Programming Question:
Download Questions PDF

Can SELECT Statements Be Used on Views in MS SQL Server?

Answer:

Select (query) statements can be used on views in the same way as tables. The following tutorial exercise helps you creating a view and running a query statement on the view:
<pre>
CREATE VIEW myLinks AS SELECT * FROM ggl_links
WHERE url LIKE '%glo%'
GO
SELECT tag, counts, url, created
FROM myLinks ORDER BY counts DESC
GO
tag counts url created
DBA 972 globalguideline.com 2007-05-19
SQA 728 globalguideline.com/html 2007-05-19
DEV 120 globalguideline.com/sql 2006-04-30
</pre>

Download MS SQL Server Interview Questions And Answers PDF

Previous QuestionNext Question
How To Count Rows with the COUNT(*) Function in MS SQL Server?How To Filter Out Duplications in the Returning Rows in MS SQL Server?