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...

What is the difference between two queries:
1. SELECT * FROM table WHERE 1=1;
2. SELECT * FROM table

Answer Posted / chinnu

Hi SQL gurus,

i am working for an MNC...

My team is having a problem in sql server. when user slects
date prompts from jan 1st to april 30, it should display
all months data like :

jan aa
feb bb
mar cc

but when it comes to april its taking data like :

jan aa
feb bb
mar cc
apr dd...and so on

means its taking data again from jan to april which we dont
want. we want the data only april month as we are getting
jan, feb and mar...

can any one write the code to relsove the issue please

would be greatful if you can send to shiva_sans@yahoo.co.in

and also please send your email also ...so that we will be
in touch for any kind of queries ...


Thanks a lot in Advance !!!

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When does the auto update index statistics feature in sql server turn itself on?q) what specific conditions database should meet, before you can bulk copy data into it using bcp?

981


What is the difference between join and inner join?

1017


Is it possible to update the views? If yes, how, if not, why?

1031


What is Sqlpaging in SqlServer 2005 ?

1072


Explain differentiate between a having clause and a where clause?

913


What are the main differences between #temp tables and @table variables and which one is preferred?

1084


Do you know what is sql injection?

1004


Difference between connected and disconnected database in .net with sql server?

1103


What is the command used to check locks in microsoft sql server?

1045


What is the difference between ROW_NUMBER and Ranking function in SQL SERVER?

1148


What is impersonation? What are the different impersonation options available in ssas? : sql server analysis services, ssas

981


Explain the disadvantages/limitation of the cursor?

964


Explain the various types of concurrency problem?

1198


What is inline variable assignment?

1032


How to create a view on an existing table in ms sql server?

1129