The Raiser's Edge stores some BBNC information (including the BBNC username for a constituent record) on the dbo.BBNCCLIENTUSERS table.  The following surfaces some information seen in RE on the NetCommunity tab of a constituent record.
 
SELECT
      cu.UserName, 
      COALESCE(r.FIRST_NAME + ' ' + r.LAST_NAME, r.ORG_NAME) as RecordName,
      r.CONSTITUENT_ID, 
      cu.DateAdded,
      cu.DateLastLogin
FROM dbo.RECORDS r
JOIN dbo.BBNCCLIENTUSERS cu on cu.BackofficeID = r.ID
WHERE r.LAST_NAME like 'Hernandez'


Disclaimer: We provide 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. Our 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.