how to create views in sql with syntax and example

Answers were Sorted based on User's Feedback



how to create views in sql with syntax and example..

Answer / abhinandan

create view <Viewname> as
select a as A,b as B,c as C
from <tablename>
where <whereclause{optional}> order by A

Is This Answer Correct ?    8 Yes 1 No

how to create views in sql with syntax and example..

Answer / vinoth

CREATE VIEW vino (view_name)
AS
SELECT mark1 (column_name(s))
FROM stud(table name)
WHERE avg>80 (condition)

Is This Answer Correct ?    5 Yes 0 No

how to create views in sql with syntax and example..

Answer / jayesh patel

CREATE VIEW <View Name> AS <Query Goes here>

Is This Answer Correct ?    5 Yes 1 No

how to create views in sql with syntax and example..

Answer / ranjith reddy

CREATE VIEW view_name AS
SELECT column_name(s)
FROM table_name
WHERE condition

Using Views
CREATE VIEW [Current Product List] AS
SELECT ProductID,ProductName
FROM Products
WHERE Discontinued=No

Is This Answer Correct ?    5 Yes 3 No

how to create views in sql with syntax and example..

Answer / v.vaithyanarayanan

CREATE VIEW table_name [ ( column_name1,
column_name2, ... ) ]
AS SELECT ...

EX:
CREATE VIEW ViewOfTableA AS SELECT col1 FROM TableA

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More VB.NET Interview Questions

What is the difference between datagrid and gridview?

0 Answers  


Explain what observations between vb.net and vc#.net?

0 Answers  


Explain how to store decimal data in .net?

0 Answers  


How many languages are supported by .net?

0 Answers  


how to restore database using vb.net?

4 Answers   Eclat, PCS, Pepon, Restor, TCS,


What is the role of new keyword?

0 Answers  


What is an abstract class?

4 Answers  


what is common type system?

0 Answers  


What is private assembly?

0 Answers  


visual basic 6.0 hava print statement for printing on form.what is the alternative for this in vb.net?

5 Answers  


What are the advantages of VB.NET?

0 Answers  


wht is the use of console application?

3 Answers   MRB,


Categories