ICES Marine Data
DATSU
 
DATSU > List of operations > Specification of the format > Details of the check
 

   
Details of a check:
   
Record: EH
Check Description: Check if you file is a resubmission, that NationalHaulID already exist in the database
Error type: warning

RecordSQL ExpressionSQL Type
EHFROM EggsAndLarvae.dbo.tblHaul INNER JOIN EggsAndLarvae.dbo.tblHaulData ON EggsAndLarvae.dbo.tblHaul.tblHaulID = EggsAndLarvae.dbo.tblHaulData.tblHaulID INNER JOIN REH ON EggsAndLarvae.dbo.tblHaulData.Value = REH.NationalHaulID where tbluploadID not in ( SELECT tblUploadID FROM REH INNER JOIN EggsAndLarvae.dbo.vw_EH_Record ON isnull(REH.Institute,'') = isnull(EggsAndLarvae.dbo.vw_EH_Record.Institute,'') AND REH.Survey = EggsAndLarvae.dbo.vw_EH_Record.Survey AND REH.Country = EggsAndLarvae.dbo.vw_EH_Record.Country AND REH.Year = EggsAndLarvae.dbo.vw_EH_Record.Year AND REH.Ship = EggsAndLarvae.dbo.vw_EH_Record.Ship group by tblUploadID )Free SQL

International Council for the Exploration of the Sea (ICES) · Conseil International pour l'Exploration de la Mer (CIEM)
ICES Secretariat · H. C. Andersens Boulevard 44-46, DK 1553, Copenhagen Denmark · Tel: +45 3338 6700 · Fax: +45 3393 4215 · info@ices.dk
Disclaimer © ICES - All Rights Reserved