V_QUERY_REVENUEOPPORTUNITY

Provides the ability to query opportunities associated with revenue.

Fields

Field Field Type Null Description
ID uniqueidentifier System Record ID
OPPORTUNITYID uniqueidentifier yes Opportunity ID

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  11/11/2014 4:17:04 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=4.0.2.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE VIEW dbo.V_QUERY_REVENUEOPPORTUNITY AS



                select
                    REVENUEOPPORTUNITY.ID,
                    REVENUEOPPORTUNITY.OPPORTUNITYID
                from
                    dbo.REVENUEOPPORTUNITY
                left outer join 
                    dbo.CHANGEAGENT ADDEDBY on ADDEDBY.ID = REVENUEOPPORTUNITY.ADDEDBYID
                left outer join 
                    dbo.CHANGEAGENT CHANGEDBY on CHANGEDBY.ID = REVENUEOPPORTUNITY.CHANGEDBYID