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 security measures exist for .net remoting in system.runtime.remoting?

0 Answers  


SAP Business One(this is intigrated tool of .net)

0 Answers   TCS,


What is CLR, CLS,CTS

4 Answers   Deloitte, Vee Technologies,


Is there any attempt system for microsoft technology papers?

0 Answers  


Tell me what is a “jagged array”?

0 Answers  


What is alias ? Is it used in .Net ?

0 Answers   MCN Solutions,


What does the "EnableViewState" property do?

1 Answers  


What is Entity Relationship Model in .NET?

0 Answers   Viscus Infotech,


Tell us the differences between an interface and an abstract class in .net?

0 Answers  


How to load the contents of an xml file into an xmldocument object?

0 Answers  


Interop Services?

0 Answers  


What is an assembly? What are the different types of assemblies?

0 Answers  


Categories