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



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

Answer / 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

More Dot Net General Interview Questions

What is marshling?

0 Answers  


Explain the .net framework overview?

0 Answers  


How to Exchange data between Webservices

2 Answers  


In Mvc Architecure what is view?

1 Answers   TCS,


State the methods used during deserialization and serialization process.

2 Answers  






What is the model role in Mvc architecture?

3 Answers  


What are the authentication methods in .net?

0 Answers  


What are the benefits of Model-View-Controller Architecture?

1 Answers  


Explain me what is an anonymous method and how is it different from a lambda expression?

0 Answers  


What is the single responsibility principle?

0 Answers  


What are the features of dot net?

0 Answers  


Difference between value type & reference types ?

0 Answers  


Categories