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 ...
Richard D. Cushing
Sr. Consultant
SYNGERGISTIC SOFTWARE SOLUTIONS, LLC
March 9, 2004 at 2:21 pm
Thanks everyone for the help. I'm learning!
Richard D. Cushing
Sr. Consultant
SYNGERGISTIC SOFTWARE SOLUTIONS, LLC
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...
Richard D. Cushing
Sr. Consultant
SYNGERGISTIC SOFTWARE SOLUTIONS, LLC
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...
Richard D. Cushing
Sr. Consultant
SYNGERGISTIC SOFTWARE SOLUTIONS, LLC
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...
Richard D. Cushing
Sr. Consultant
SYNGERGISTIC SOFTWARE SOLUTIONS, LLC
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...
Richard D. Cushing
Sr. Consultant
SYNGERGISTIC SOFTWARE SOLUTIONS, LLC
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'...
Richard D. Cushing
Sr. Consultant
SYNGERGISTIC SOFTWARE SOLUTIONS, LLC
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...
Richard D. Cushing
Sr. Consultant
SYNGERGISTIC SOFTWARE SOLUTIONS, LLC
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...
Richard D. Cushing
Sr. Consultant
SYNGERGISTIC SOFTWARE SOLUTIONS, LLC
February 16, 2004 at 1:57 pm
BP, you're right. I misquoted in my original post.
Richard D. Cushing
Sr. Consultant
SYNGERGISTIC SOFTWARE SOLUTIONS, LLC
February 16, 2004 at 1:54 pm
How about using:
WHERE CHARINDEX(table1.name,table2.name) > 0
Will that work for you?
Richard D. Cushing
Sr. Consultant
SYNGERGISTIC SOFTWARE SOLUTIONS, LLC
January 29, 2004 at 4:18 pm
Perfect! Thanks for the reference.
Richard D. Cushing
Sr. Consultant
SYNGERGISTIC SOFTWARE SOLUTIONS, LLC
January 21, 2004 at 7:36 pm
Thanks. Looks like a valuable article. I'm sure I'll gain a lot from it.
Richard D. Cushing
Sr. Consultant
SYNGERGISTIC SOFTWARE SOLUTIONS, LLC
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...
Richard D. Cushing
Sr. Consultant
SYNGERGISTIC SOFTWARE SOLUTIONS, LLC
January 5, 2004 at 12:33 pm
Thanks for the quick response. I'll give it a try.
Richard D. Cushing
Sr. Consultant
SYNGERGISTIC SOFTWARE SOLUTIONS, LLC
January 5, 2004 at 12:23 pm
Viewing 15 posts - 16 through 30 (of 35 total)