Views in SQL

What is a View?
A view is nothing more than a saved SQL query. A view can also be considered as a virtual table.


View script 

Create view VIEW_NAME
AS
SELECT T1.CUSTEMOR _NAME, T1.CUST_ID , T1.Address,  T2.Order_units
From CUSTERMORTABLE  AS T1
Inner join  ORDERS AS T2
ON T1.CUST_ID =T2.CUST_ID
Where order_units > = 60  



Comments

Popular Posts

How to Clean unwanted symbols in a Number column In SQL server ?

class 4 - SQL COMMANDS and sample code to Create tables with constraints

Learn useful command prompt commands for Beginners