Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: stonysmithYou need to use a SQL command that is compatible with the database you are accessing. (Don't use BrainScript code in the SQL)
For Oracle:
select distinct field1,field2,
from ops$fre.sbb_base
where field2 <> to_date('0001-01-01','CCYY-MM-DD')