Interviewer And Interviewee Guide

MS SQL Server Interview Question:

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

Submitted by: Administrator
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>
Submitted by: Administrator

Read Online MS SQL Server Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.