Perhaps the following is returning more than 1 record:
SET @LastCompDate = ( SELECT DT FROM MFI_SYS WHERE SYS_CD = 'LAST_COMP_DATE' )
select @Fiscal_cd = fiscal_cd from mfi_fiscal_calendar where date = @ThisCompDate
When you see answers and helpful posts, please click Vote As Helpful,Propose As Answer, and/or Mark As Answer
Jeff Wharton
MSysDev (C.Sturt), MDbDsgnMgt (C.Sturt), MCT, MCPD, MCSD, MCITP, MCDBA
Blog: Mr. Wharty's Ramblings
Twitter: @Mr_Wharty
MC ID:
Microsoft Transcript