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
What is stored procedure ? how we use it in .NET ?
How server form post-back works?
What's the problem with .net generics?
How do you define the lease of the object in .net?
Explain the difference between asp.net & vb.net and explain architecture?
Write a program to create a user control with name and surname as data members and login as method and also the code to call it.
Tell me what is serialization?
What is garbage collection? Explain the difference between garbage collections in .net 4.0 and earlier versions?
How to spawn a thread?
What are virtual destructures?
What is the difference between function and stored procedure?
What is the difference between override and overload in a method?
What operating systems does the .net framework run on?
How is meant by dll in .net?
What is an interface and what is an abstract class? Please, expand by examples of using both. Explain why?