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

what is machine key error in .NET how can we solve it?

0 Answers  


Is .net an object oriented language? What are their components?

0 Answers  


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

0 Answers  


What is connected and diconnected database ?

0 Answers  


What is the difference between function and stored procedure?

0 Answers  


Please explain what is the .net framework and how does it work?

0 Answers  


What is marshling?

0 Answers  


What are .net functions?

0 Answers  


Which method do you use to redirect the user to another page without performing a round trip to the client?

4 Answers   Siebel Systems,


What is COM Interoperability in .NET

0 Answers  


What base class do all Web Forms inherit from?

1 Answers  


What is a delegate in .NET?

1 Answers  


Categories