I am writing a SSRS report and I have been given SQL query to for the SSRS report. I am trying to understand what the conditional statement means in the SQL query so, I can properly add the parameters and filters to the SSRS report. Can someone please help me understand this statement.
Statement:
where (" & sqlcriteria & " )
AND (Certificatenumber between '" & lngcertstartnum & "' and '" &
lngCertEndNum & "')
AND convert(int,dbo.Student.CertificateNumber) >= " &
CLng(txtCertNum.text)
My understanding is that for one of filters, the certificate number has to be between start number and end number which are both long data type. I am completely lost on the second line. Can someone please help me understand this statement please.
for the first statement: I created two parameters start number and end number. When I preview it prompts people to type the number to display. Now, I assumed that we have to add the filter to so, the table will only display the values btw start and end number which is causing me errors.
for the second statement: I try to convert the certificate number to int as one of filter, but it doesnt like it and it giving me [expr]