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 meant by globalization and localization?

0 Answers  


If you are executing these statements in commandobject. Select * from table1; select * from table2? How you will deal result set? 42. How do you sort a dataset.

0 Answers  


Explain different types of cookies in .NET?

1 Answers  


What is the use com component in .net?

0 Answers  


What is the use of design pattern?

0 Answers  


Can you write a class without specifying namespace?

0 Answers  


Which dll translate xml to sql in internet information server (iis)?

0 Answers  


What is the standard you use to wrap up a call to a Web service

2 Answers   Siebel Systems,


what is dotnet architecture? can anyone explain that.

1 Answers  


Which namespace does it belong to by default?

0 Answers  


State some of the different languages supported by .net?

0 Answers  


How does the generational garbage collector in the .net clr manage object lifetime? What is non-deterministic finalization?

0 Answers  


Categories