SELECT 
    ER.FIRSTNAME, 
    ER.LASTNAME, 
    RH.ITEMCHANGED, 
    RH.PREVIOUSSETTING,
    RH.NEWSETTING, 
    RH.DATECHANGED, 
    RH.CHANGEDBYID
FROM  dbo.EA7RECORDS ER
    INNER JOIN dbo.SB7RECORDHISTORY RH ON ER.EA7RECORDSID = RH.PARENTID
WHERE
    RH.ITEMCHANGED = 3 --Billing Status

ITEMCHANGED field - Values between and including 1 and 13 only

Possible item changed values:

  •  1 = name,
  •  2 = user defined id,
  •  3 = billing status,
  •  4 = credit limit amount,
  •  5 = discount %,
  •  6 = current grade (student only),
  •  7 = address is primary,
  •  8 = address contents,
  •  9 = nickname,
  • 10 = current school (student only),
  • 11 = phone,
  • 12 = billing option,
  • 13 = degree/diploma audit changes


Disclaimer: Blackbaud provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes you are familiar with Structured Query Language and the tools used to create and modify SQL statements and Crystal Reports. Blackbaud Customer Support may help explain the functionality of a particular procedure, but we will not modify, or assist you with modifying, these examples to provide additional functionality.