Viewing 15 posts - 1,711 through 1,725 (of 4,081 total)
I actually did have an END in my real query but neglected to include it in the shortened version for this post.
In the future, keep in mind that...
March 25, 2010 at 4:17 pm
There's nothing wrong with your CAST solution, andresito. It works perfectly for getting rid of the spare change.
The reason(s) I used the modulo operator is that...
March 25, 2010 at 2:49 pm
Perhaps its a limitation of the Pervasive db?
March 25, 2010 at 2:16 pm
Grant Fritchey (3/25/2010)
The Dixie Flatline (3/25/2010)
ARID = Alternate Reality ID.I believe it's parameter 117, but I'd have to confirm that with Gail.
And that's a GUID right?
It...
March 25, 2010 at 12:13 pm
You mean like this? Or am I missing something?
DECLARE @X XML
SELECT @X = ( SELECT * FROM sampleTable FOR XML AUTO )
SELECT @X as [@X]
March 25, 2010 at 12:00 pm
ARID = Alternate Reality ID.
I believe it's parameter 117, but I'd have to confirm that with Gail.
March 25, 2010 at 11:48 am
Paul's solution will work. Just don't confuse it with the following code which will NOT work, in violation of the laws of algebra.
select amount
from ...
March 25, 2010 at 11:44 am
Trey, it's possible they are relying on DBCC TIMEWARP to provide point-in-time recovery.
What is your ARID??
March 25, 2010 at 11:35 am
Sure... just test if it is evenly divisible by 1. The modulo operator (%) returns the remainder of a division operator, so if Amount % 1 = 0,...
March 25, 2010 at 11:25 am
Actually, the original query is a cross-tab. It just uses a CTE instead of a subquery. The Case statements in the CTE convert the rows...
March 25, 2010 at 10:59 am
It depends on whether or not it depends? :w00t:
March 25, 2010 at 10:24 am
I'm about to start through Itzik Ben-Gan's "T-SQL Querying".
If I run across an explanation, I'll let you know.
March 25, 2010 at 8:22 am
It's not a hack. It's just one more tool in the toolbox. If it significantly reduces the run time of a job, then it's a...
March 25, 2010 at 7:57 am
Viewing 15 posts - 1,711 through 1,725 (of 4,081 total)