V_QUERY_MKTMARKETINGPLANITEMATTACHMENT

All marketing plan item attachment fields.

Fields

Field Field Type Null Description
ID uniqueidentifier System record ID
ATTACHMENTTYPECODE_DESCRIPTION nvarchar(100) Attachment type
NAME nvarchar(100) Name
DESCRIPTION nvarchar(255) Description
FILENAME nvarchar(255) File name
MARKETINGPLANITEMID uniqueidentifier Marketing plan item ID
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
DATEADDED datetime Date added
DATECHANGED datetime Date changed
TSLONG bigint yes Timestamp value

Definition

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



select
  [MKTMARKETINGPLANITEMATTACHMENT].[ID],
  isnull([MKTATTACHMENTTYPECODE].[DESCRIPTION], '') as [ATTACHMENTTYPECODE_DESCRIPTION],
  [MKTMARKETINGPLANITEMATTACHMENT].[NAME],
  [MKTMARKETINGPLANITEMATTACHMENT].[DESCRIPTION],
  [MKTMARKETINGPLANITEMATTACHMENT].[FILENAME],

  /* System fields */
  [MKTMARKETINGPLANITEMATTACHMENT].[MARKETINGPLANITEMID],
  [ADDEDBY].[APPLICATIONNAME] as [ADDEDBY_APPLICATION],
  [ADDEDBY].[USERNAME] as [ADDEDBY_USERNAME],
  [CHANGEDBY].[APPLICATIONNAME] as [CHANGEDBY_APPLICATION],
  [CHANGEDBY].[USERNAME] as [CHANGEDBY_USERNAME],
  [MKTMARKETINGPLANITEMATTACHMENT].[DATEADDED],
  [MKTMARKETINGPLANITEMATTACHMENT].[DATECHANGED],
  [MKTMARKETINGPLANITEMATTACHMENT].[TSLONG]

  /*#EXTENSION*/

from dbo.[MKTMARKETINGPLANITEMATTACHMENT]
left outer join dbo.[MKTATTACHMENTTYPECODE] on [MKTATTACHMENTTYPECODE].[ID] = [MKTMARKETINGPLANITEMATTACHMENT].[ATTACHMENTTYPECODEID]
left outer join dbo.[CHANGEAGENT] as [ADDEDBY] on [ADDEDBY].[ID] = [MKTMARKETINGPLANITEMATTACHMENT].[ADDEDBYID]
left outer join dbo.[CHANGEAGENT] as [CHANGEDBY] on [CHANGEDBY].[ID] = [MKTMARKETINGPLANITEMATTACHMENT].[CHANGEDBYID];