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
How sql server enhances scalability of the database system?
What is efficiency data?
Can we call future method from trigger?
How is a full-text index updated?
What is data compression? : sql server database administration
How to remove duplicate rows from table except one?
How do use Having,Group by,Group function in SQL?
Show Practically Sql Server Views are updatable?
What is acid mean in sql server?
Explain the concepts and capabilities of sql server?
To which devices can a backup be created and where should these devices be located? : sql server management studio
Distinguish between nested subquery and correlated subquery?
What's new in sql management studio for sql server? : sql server management studio
What happens if we shrink log file in sql server?
Which tools are available to manage SQL Azure databases and servers?