Write an StoredProcedure to get the values of a column
within a date range.

Answer Posted / suren

Example:

select col1 from table_name where
(( convert(DateTime,Date_Column1,102) between coalesce
(@Date_Column1,convert(DateTime,Date_Column,102)) and
coalesce(@Date_Column2,convert(DateTime,Date_Column,102))))

//Date_Column: Column in the Table
//Date_Column1: first value of date range
//Date_Column12: second value of date range

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is il and c#?

663


How to create multiple inheritance in c#, with example?

647


What is delegation in .net?

698


How to customize the trace output?

634


Different levels of priority provided by .net.

689






Explain different types of html, web and server controls.

650


Explain the process of serialization in .NET?

710


Explain boxing and unboxing in .net.

657


Please explain is the jit an interpreter?

688


What is .net and .net framework?

713


What is .net standard?

691


What is a windows process in .net?

664


What is difference between .net core and .net standard?

582


Define satelite assembly?

639


Give a brief introduction on side-by-side execution. Can two applications, one using private assembly and the other using the shared assembly be stated as side-by-side executables?

610