Quantcast
Channel: Subquery returned
Viewing all articles
Browse latest Browse all 7

Subquery returned

$
0
0

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



Viewing all articles
Browse latest Browse all 7

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>