Viewing 15 posts - 3,196 through 3,210 (of 5,502 total)
@ Ken
Please provide ready to use table def and sample data together with expected result as described in the first link in my signature.
@mrpolecat
What exactly is the difference of the...
July 6, 2010 at 1:55 pm
And I say shame shame shame shame shame, SHAME ON ME! 😉
I should have spotted it right away...
Regarding your questions:
1 Can you reproduce this?
2 If yes, why would this happen?
3...
July 6, 2010 at 1:49 pm
grevesz (7/6/2010)
I was talking about the SELECT statement in this thread posted yesterday at 4:12:48 PM:
...
This statement, when I run it, returns case when ts_order.trans_type BUY_SELL, as the...
July 6, 2010 at 12:32 pm
grevesz (7/6/2010)
the string value is not re-interpreted as a SQL statement.
No, it isn't. The problem is that it isn't returned as a string correctly.
Regards,
Gabor
I don't quite understand.
What section or character...
July 6, 2010 at 12:03 pm
grevesz (7/5/2010)
Thanks a lot for the explanations and ideas. This is a lot for me to digest, so please bare with me for a day (or two). I am...
July 5, 2010 at 3:13 pm
bryan.duchesne (7/5/2010)
July 5, 2010 at 2:53 pm
Something like this?
INSERT target (field1, field2, field3,.....)
SELECT field1, field2, field3
FROM Source
WHERE NOT EXISTS (SELECT 1 FROM target t2 WHERE t2.field1 = Source.field1)
July 5, 2010 at 2:16 pm
Lowell (7/5/2010)
this statemnts...
July 5, 2010 at 2:12 pm
First of all: Thank your for providing ready to use sample data!! 🙂
Made it really easy to focus on the subject!
Here are a few items I run across while...
July 5, 2010 at 2:06 pm
Regarding question #4: Did you try to right click on the function in question and select "Modify"? 😉
July 5, 2010 at 1:14 pm
As a side note: It seems like all you want to do is get a comma separated list columns ofr a table specified by @an_export_id.
If so, there are concepts available...
July 5, 2010 at 12:52 pm
rajendra prasad-377679 (7/3/2010)
now i am working in one organisation they ask me to write the program for that scenario using cursor..
that s y i ask help to the experts..like u...
July 3, 2010 at 11:22 am
Step one: Define a column to be used as a row/column identifer (either column Parameter or a new column using ROW_NUMBER())
Step two: UNPIVOT the data to get a table with...
July 3, 2010 at 11:06 am
I would precalculate the data per user and day using a CTE or subquery.
; WITH cte AS
(
SELECT ServiceID ,
COUNT(DISTINCT DATE) AS cnt,
SUM(numHours) AS subtotal
FROM @ServiceDates
GROUP BY ServiceID, UserName
)
SELECT L.ClientID, S.LocationID,...
July 3, 2010 at 10:54 am
Viewing 15 posts - 3,196 through 3,210 (of 5,502 total)