V_QUERY_PROJECTNOTE

This query view spec definition provides the ability to query for project notes.

Fields

Field Field Type Null Description
ID uniqueidentifier System record ID
PROJECTID uniqueidentifier Project ID
DATEENTERED datetime Date entered
TITLE nvarchar(50) Title
AUTHORNAME nvarchar(154) yes Author name
AUTHORID uniqueidentifier yes Author system ID
TEXTNOTE nvarchar(max) Notes
TYPE nvarchar(100) yes Type
DATEADDED datetime Date added
DATECHANGED datetime Date changed
TSLONG bigint yes Timestamp value
ADDEDBY_APPLICATION nvarchar(200) yes Added by application
ADDEDBY_USERNAME nvarchar(128) yes Added by user name
CHANGEDBY_APPLICATION nvarchar(200) yes Changed by application
CHANGEDBY_USERNAME nvarchar(128) yes Changed by user name

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  11/30/2010 11:28:12 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=2.8.2022.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE VIEW dbo.V_QUERY_PROJECTNOTE AS



select
    PROJECTNOTE.ID,
    PROJECTNOTE.PROJECTID,
    PROJECTNOTE.DATEENTERED,
    PROJECTNOTE.TITLE,
    AUTHOR.NAME as AUTHORNAME,
    PROJECTNOTE.AUTHORID,
    PROJECTNOTE.TEXTNOTE,
    PROJECTNOTETYPECODE.DESCRIPTION as TYPE,
    PROJECTNOTE.DATEADDED,
    PROJECTNOTE.DATECHANGED,
    PROJECTNOTE.TSLONG,
    ADDEDBY.APPLICATIONNAME as ADDEDBY_APPLICATION,
    ADDEDBY.USERNAME as ADDEDBY_USERNAME,
    CHANGEDBY.APPLICATIONNAME as CHANGEDBY_APPLICATION,
    CHANGEDBY.USERNAME as CHANGEDBY_USERNAME
    /*#EXTENSION*/ 
from 
    dbo.PROJECTNOTE                        
    left join dbo.PROJECTNOTETYPECODE on PROJECTNOTE.PROJECTNOTETYPECODEID = PROJECTNOTETYPECODE.ID
    left join dbo.CONSTITUENT as AUTHOR on AUTHOR.ID = PROJECTNOTE.AUTHORID
    left join dbo.CHANGEAGENT as ADDEDBY on ADDEDBY.ID = PROJECTNOTE.ADDEDBYID
    left join dbo.CHANGEAGENT as CHANGEDBY on CHANGEDBY.ID = PROJECTNOTE.CHANGEDBYID