![]() |
|
Archives of the TeradataForumMessage Posted: Wed, 27 Feb 2013 @ 11:04:12 GMT
Hi, Looks like you are retrieving years data ((date '2012-02-26') AND (date'2013-02-26') by using between function in the first sql, which might take time if you have lot of data. SQL 2 : you are querying only with respect to date (2013-02-22) Thanks, Surya
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||