Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »


vwPerson.RecordType definition;

  • Staff=traineeĀ 
  • Contact=trainer
  • Both=Trainee and Trainer
  • Admin=HEE admin


select status, recordtype, case when emailAddress is null then 'NULL' ELSE 'NOT NULL' end em, count(*) as rc
from [HEELIVE].[vwPerson]
group by status, recordtype, case when emailAddress is null then 'NULL' ELSE 'NOT NULL' end
order by 1,2

Person by Status & RecordTYpe by EmailAddress


statusrecordtypeemailAddressrc
CurrentAdminNOT NULL5367
CurrentAdminNULL981
CurrentBothNOT NULL24137
CurrentBothNULL4851
CurrentContactNOT NULL11134
CurrentContactNULL2941
CurrentStaffNOT NULL56530
CurrentStaffNULL3191
  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.