Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Explain the difference between constants and read-only variables?

0 Answers  


can we use private assembly in other project in dot net.

3 Answers  


What is misl?

0 Answers  


What is the difference between vb.net and vc#.net?

0 Answers  


Can I write my own .net host?

0 Answers  


Why you want to leave your previous company.

0 Answers  


Explain attributes in dot net?

0 Answers  


What is use of ContextUtil class?

1 Answers  


Explain what is immutability, what is it for and how is it codified?

0 Answers  


What is the procedure to add assemly to gac to make it shared one?

0 Answers  


What are the collections you've used?

0 Answers  


What are the differences in C# .Net and ASP .Net.

4 Answers   NetLink,


Categories