You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.
set @GTF = (select r.Forecast from [WeatherMyWay].[dbo].[SendForecast] sf
inner join [WeatherMyWay].[dbo].[Recommendations] r on (r.[GroupItemId] = sf.[SendForecastID])
where sf.[WeatherCond]=@CondId and sf.[VitaminD]=@VitaminDId and sf.[MelanomaRisk]=@MelanomaRiskId and sf.[UserId] = @UserId and sf.[ForecastDate] = @CurrentDate)
if (@CountForecast != NULL) BEGIN
RETURN @GTF
END
ELSE BEGIN
SET @UnsendForecast = (select [WeatherMyWay].[dbo].[Recommendations].[Forecast] from [WeatherMyWay].[dbo].[Recommendations] where
[GroupItemId] not in (select [SendForecastID] from [WeatherMyWay].[dbo].[SendForecast] where [WeatherCond]=@CondId and [VitaminD]=@VitaminDId and [MelanomaRisk]=@MelanomaRiskId) and
[CondId]=@CondId and [VitaminDId]=@VitaminDId and [MelanomaRiskId]=@MelanomaRiskId)