V_STUDENT_UNIQUE_STUDENTID

Used to enforce unique values on the STUDENT.STUDENTID field (which is defined as being unique but not required). This view will contain all non-empty values for this field from the STUDENT table.

Fields

Field Field Type Null Description
STUDENTID nvarchar(50) Identification number to be used to identify the student.

Indexes

Index Name Fields Unique Primary Clustered
UIX_V_STUDENT_UNIQUE_STUDENTID STUDENTID yes yes

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  4/29/2010 7:25:27 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=2.6.1444.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE VIEW dbo.V_STUDENT_UNIQUE_STUDENTID WITH SCHEMABINDING
AS
select [STUDENTID] from dbo.STUDENT where [STUDENTID] <> ''