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 are the purposes of using .net?

0 Answers  


Explain what are possible implementations of distributed applications in .net?

0 Answers  


what is GAC?

1 Answers   Manhattan,


Can u explain me What is encapsulation?

7 Answers   Deloitte, GK companies,


What is .net environment?

0 Answers  


Name the classes that are introduced in the system.numerics namespace.

0 Answers  


Please explain what do the terms “boxing” and “unboxing” mean?

0 Answers  


Which two properties are on every validation control?

7 Answers   Siebel Systems,


Explain what do the terms “boxing” and “unboxing” mean?

0 Answers  


What is the managed and unmanaged code in .net?

2 Answers  


how to connect database connectivity in dotNET? if suppose SQL server?and also MS access?

8 Answers  


What is the microsoft .net?

0 Answers  


Categories