What if I want to make a comment within a single line in SQL? Can I do something like(to temporarily get rid of “TargetName”:
select SessionSID, TargetID, /* TargetName,*/ FEDSurveyName,
SupplierID,ClientLK_ResponseStatusID from BI_Sessions (nolock)
WHERE EntryDate BETWEEN '05-15-2012' AND '05-16-2012'
AND SupplierID = 336
hcirt erom on
Does any version of SQL allow us to do such commenting(preferably MSSQL)?
Yes, MSSQL allows it exactly as you’ve formatted it. But this will work, too: