C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




How to write view in sql query


Posted Date: 28 Aug 2008      Total Responses: 4

Posted By: Legend        Member Level: Silver     Points: 1


How to write view in sql query



Responses

Author: vipul    28 Aug 2008Member Level: DiamondRating:     Points: 3
hi,
please specify that you want to create a view or you want to get data from the view if you wnat to data from the view you used same as geting data from the table
select * from viewname


vipul,
http://dongavipul.blogspot.com


Author: Amalraj Irudayamani    28 Aug 2008Member Level: SilverRating:     Points: 3
in SQL Server use the following script:

create view tmpview as
select * from <yourtablename>

in Oracle,

create or replace view tmpview as
select * from <yourtablename>

this will create a view in your database schema.


you can join one or more tables in the select statement
and have the conditions in the where clause also.

to select the records from the created view, run
select * from <yourviewname>



Author: kalyan kumar pasupuleti    28 Aug 2008Member Level: GoldRating:     Points: 2
Hi Legend of Micro

Its a simple query

create view <view name> as
select * from <table name>

Regards
Kalyan Pasupuleti


Author: Legend     29 Aug 2008Member Level: SilverRating:     Points: 5
Thanks to all


Post Reply
You must Sign In to post a response.
Next : Attach Database
Previous : Free Asp.Net Books
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

internet fax

Contact Us    Privacy Policy    Terms Of Use