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 you can add messages to the nt event log from within a stored procedure?
How does SSIS(Sql Server Integration Services) deffer from DTS(Data Transformation Services)?
What is the difference between sdf and mdf?
Which are ddl commands?
Define clusters?
What is the difference between deallocate cursor and close cursor?
how you can get the list of largest tables in a database? : Sql server administration
Explain log shipping?
Do you know what is sql injection?
What are secondary xml indexes?
In case you have filters in your report, when filters will be applied in cached report instance?
What is b tree index?
What is blocking?
explain databases and sql server databases architecture? : Sql server database administration
List all types of constraints in sql server?