how to create views in sql with syntax and example
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / jayesh patel
CREATE VIEW <View Name> AS <Query Goes here>
| Is This Answer Correct ? | 5 Yes | 1 No |
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 |
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 |
What is the top .net class that everything is derived from?
What is the Difference between Web User Control and Web Custom Control?
What is meant by jagged arrays?
What is the main purpose of garbage collector?
What are the features of c# which are not present in vb.net?
Which properties are used to bind a DataGridView control?
difference between control and component more than one differences
List the types of generations in garbage collector?
How vb implements the disconnected architecture as like vb.net?
What is DLL HELL in VB.NET
Hi I am planning to take interview in VB.net,can any one share your interview Questions for a Entry-level job. Regards Lina
Thank you for replying to my Question regarding Barcodes in VB.net. My next question is that how to use Barcode Fonts in VB.net I need a small code to Generate Barcodes in VB.net from a string of Values. This is the only problem i am left with in my project. Any body can help me please.
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)