Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

On views, how to link a field to another view

Status
Not open for further replies.

flybravo

Programmer
Jun 30, 2003
35
US
I have 4 views created. 1 view is the main view which has the customers names and I have 1 other view for their products ordered. I need the main view to link to the other view and on the main view be able to have how much producst were orderd
 
You can join to the other view in your main view - this can cause performance problems if you nest a lot of views though.

create view main
as
select ...
from tbl
join vw_other
on tbl.col1 = vw_other.colx
go


======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top