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 do you mean by Driver Script?

0 Answers   TCS,


C++ & C# differences ?

1 Answers  


Is .net core the future?

0 Answers  


What is the difference between function and stored procedure?

0 Answers  


What is meant by globalization?

0 Answers  


What is the model role in Mvc architecture?

3 Answers  


ctype(123.34,integer) - should it throw an error? Why or why not?

1 Answers   Wipro,


What are the main components in .net?

0 Answers  


What is RunTime Polymorphism?

5 Answers   Deloitte, eClerx, Horizon, Intel, Pragna Technologies,


Explain the .net framework overview?

0 Answers  


What is Full trust permission set in .Net

0 Answers  


What are the differences between com architecture and.net architecture?

0 Answers  


Categories