Viewing 15 posts - 16 through 30 (of 35 total)
SELECT *
FROM tsoDSInvoiceCOGS_SSSI
WHERE POLineKey = 2266
ORDER BY InvoicePostDate
RESULTS:
SOLineKey POLineKey ShipLineKey QtyShipped InvcUnitCost InvoicePostDate InvoiceTranDate InvoiceTranID SOExtCOGS
----------- ----------- ----------- ------------------ ----------------- ------------------------------------------------------ ------------------------------------------------------ ------------- -----------------
5399 2266 8229 ...
March 9, 2004 at 2:21 pm
Thanks everyone for the help. I'm learning!
February 20, 2004 at 10:14 am
You're right! I discovered this and was just coming back to let everyone know I had found the problem.
Now, can you tell me WHY the (...) make a difference in...
February 20, 2004 at 9:53 am
That catch helped a lot! I'm almost there.
Here's what the query looks like now--with a line of debugging code added:
SET QUOTED_IDENTIFIER ON
DECLARE @arrayvar varchar(8000),
@select_stmnt varchar(8000)
DECLARE @k int,
@i int,
@l int,
@c int
SET @select_stmnt...
February 20, 2004 at 9:41 am
Actually, I believe the comma should be present. Note the error message.
The Results set should read something like:
Guitarist0 Guitarist1 Guitarist3...
================ ================= ================
Les Paul Buddy...
February 19, 2004 at 6:14 pm
Well, it is getting clearer: Are you saying that 2.0 <> 2 in SQL Server because when SQL Server evaluates record counts, it is looking not ONLY the VALUE of the...
February 16, 2004 at 3:38 pm
I agree with your reasoning entirely. However, what I am uncertain regarding is WHY using '2.0' in dividing the COUNT() would result in an empty result set. Division by '2'...
February 16, 2004 at 3:18 pm
Okay. I don't mean to be hard to get along with here, but I need to understand more clearly:
Here is a script from The Guru's Guide to Transact SQL--
SELECT Median...
February 16, 2004 at 2:37 pm
Okay, I vaguely recall something now about SQL Server using the data types of origin in doing calculations. So when I entered
SELECT 99/2
SQL Server assumed I was doing Integer math...
February 16, 2004 at 1:57 pm
BP, you're right. I misquoted in my original post.
February 16, 2004 at 1:54 pm
How about using:
WHERE CHARINDEX(table1.name,table2.name) > 0
Will that work for you?
January 29, 2004 at 4:18 pm
Thanks. Looks like a valuable article. I'm sure I'll gain a lot from it.
January 5, 2004 at 12:50 pm
Okay. That works. Now, to carry the question one step further for my project:
I don't want to do a bunch of CASE statements and I want to evaulate an UPDATE along...
January 5, 2004 at 12:33 pm
Thanks for the quick response. I'll give it a try.
January 5, 2004 at 12:23 pm
Viewing 15 posts - 16 through 30 (of 35 total)