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 would you troubleshoot blocking? : Sql server database administration
What is the New in SQL server 2008?
How to create hyperlink from returned sql query ?
If you want to send some data from access database to sql server database. What are different component of ssis will you use?
Which operator do you use to return all of the rows from one query except rows are returned in a second query?
what's the difference between delete table and truncate table commands? : Sql server database administration
What is lock escalation? : sql server database administration
What happens if the update subquery returns no rows in ms sql server?
code to create procedure for taking databse backup in sql server or i have the query for it but what it's query returns means i want to show on my jsp that the databse backup has been taken on the basis of that return value.does it returns 0 or 1.wat is the code for that
Explain the categories of stored procedure?
What is report server project?
What is difference between rownum and row_number?
Is port 1433 secure?
Where can you add custom error messages to sql server?
How to count duplicated values in a column in ms sql server?