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

Please send me the latest asp.net,c#,sql server interview questions .my email id is ramtryin@gmail.com

1 Answers  


What is the difference between asp.net & vb.net and explain architecture?

0 Answers  


differance between checkbox and rediobutton in vb.net?

1 Answers  


What is Garbage Collection in .Net? Garbage collection process?

3 Answers  


Should I implement finalize on my class? Should I implement idisposable?

0 Answers  


Please explain the difference between constants and read-only variables?

0 Answers  


How to implement datagrid in.net? How would you make a combo-box appear in one column of a datagrid? What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for datagrid methods. What is the access specifier used for that methods in the code behind file and why?

0 Answers  


Can you edit data in repeater control? How?

0 Answers  


What is Atomicity?

3 Answers   Verifone,


How many types of generations are there in a garbage collector?

0 Answers  


What versions of .net are there?

0 Answers  


What is WSDL? Explain its architecture?

0 Answers   Amdocs,


Categories