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.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is connection pooling and how do you make your application use it?

1096


Tell us what is heap and what is stack?

1270


Is Driver Script any how related to AOM?

1256


In code behind class, name the type of code found. Is it the server side code or client side code?

1371


What is common language specification (cls)?

1155


What is the root class in .net?

1207


Please explain when should you use .net web forms over asp.net mvc?

1066


What are the types of jit?

1105


What are pdbs?

1143


Dynamic Fonts

1998


What is the purpose of IClonable interface in .NET?

1102


What tags do you need to add within the asp:datagrid tags to bind columns manually.

1998


How to load the contents of an xml file into an xmldocument object?

1107


Tell us the difference between the while and for loop. Provide a .net syntax for both loops?

1029


With these events, why wouldn't microsoft combine invalidate and paint, so that you wouldn't have to tell it to repaint, and then to force it to repaint?

1069