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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Computed column in view

Status
Not open for further replies.

siraj777

Programmer
Aug 22, 2002
27
IN
Hi,

Iam working in Sql Server / PowerBuilder
and I created the view like below:

create view abc as
SELECT DISTINCT (CASE WHEN dbo.resources_detail.cctr IS NULL THEN dbo.resources.cctr_master ELSE dbo.resources_detail.cctr END) cctr,
FROM dbo.resources, dbo.resources_detail
WHERE dbo.resources.resources_id *= dbo.resources_detail.resources_id

select * from abc where cctr = '123' --> simply ignored? (returns all the rows irrespective of cctr = 123), Please help.

Thanks.Siraj.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top