Untitled
raw download clone
TEXT
views 5
,
size 301 b
SELECT COUNT (*)
FROM CDN.Wyplaty
WHERE (
	(@DataOd <= WPL_DataDo) and (WPL_DataOd <= @DataDo)
)
AND EXISTS (
	SELECT * FROM CDN.WypElementy
	JOIN CDN.TypWyplata ON WPE_TwpId = Twp_TwpId
	WHERE WPE_WplId = WPL_WplId
	AND (
		TWP_Skrot LIKE 'zlecenie%' OR
		TWP_Skrot LIKE 'dzieƂo%'
	)	
)
close fullscreen
Login or Register to edit or fork this paste. It's free.