Viewing 15 posts - 10,801 through 10,815 (of 15,376 total)
Lynn Pettis (9/6/2012)
Steve Jones - SSC Editor (9/4/2012)
OK, not my day. Not sure how to break the news here that this person is in way, way, over their head.http://www.sqlservercentral.com/Forums/Topic1353224-2799-2.aspx#bm1354093
Okay, you're...
September 6, 2012 at 2:48 pm
sku370870 (9/6/2012)
September 6, 2012 at 1:33 pm
pelusodm (9/6/2012)
September 6, 2012 at 1:31 pm
a4apple (9/6/2012)
(
id BIGINT,
name Varchar(50)
)
CREATE TABLE Jou
(
id BIGINT,
iss_id BIGINT,
created_on DATETIME
)
CREATE TABLE Jd
(
id BIGINT,
jou_id BIGINT,
VARCHAR(10),
old_value varchar(10),
new_value varchar(10)
)
CREATE TABLE
(
id BIGINT,
name BIGINT
)
INSERT INTO (id, name) values (1,'Phase')
INSERT INTO (id,...
September 6, 2012 at 12:40 pm
sku370870 (9/6/2012)
September 6, 2012 at 12:24 pm
cms9651 (9/6/2012)
The rule for the sorting is mat geographic NAME.MAW = My Area West
MAE = My Area East
MAC = My Area Center
MAS = My Area South
Ahh there is the challenge...
September 6, 2012 at 10:24 am
cms9651 (9/6/2012)
Eugene Elutin (9/6/2012)
The MAT column will be ordered randomly, but Tot will still come as a last one per DVD.
I agree, that setup needs clarification about Total: is it...
September 6, 2012 at 9:57 am
ScottPletcher (9/6/2012)
Jeff Moden (9/6/2012)
ScottPletcher (9/6/2012)
I don't think audit triggers are relevant any more, given the better options built into SQL itself now.I've not found those options to do so well.
Interesting....
September 6, 2012 at 9:55 am
sunny.tjk (9/6/2012)
Lynn Pettis (9/6/2012)
sunny.tjk (9/6/2012)
I've a question, I ran the following query and when I looked at the execution plan it's just...
September 6, 2012 at 9:42 am
Eugene Elutin (9/6/2012)
Sean Lange (9/6/2012)
...This query will produce the same results:
SELECT
COALESCE ([MAT], 'Tot') AS [MAT],
[DVD],
SUM ([SALES])
FROM
TestTable
GROUP BY
(MAT),
[DVD] --with rollup
ORDER BY
[DVD] DESC
...
Try to add one more data row:
INSERT INTO...
September 6, 2012 at 9:12 am
The rollup option suggested previously is not what you want here. I have to admit I don't quite understand why your query is so complicated. It seems you introduced a...
September 6, 2012 at 9:04 am
derek.colley (9/6/2012)
September 6, 2012 at 8:42 am
I'm not much of a dev guru so can't test this from an external application call, but I reckon it would be possible to fool a call to the SP...
September 6, 2012 at 8:26 am
Actually the functions in your where clause should not render nonSARGable as Derek suggested because it is not a row based call.
It is pretty hard to tell why the...
September 6, 2012 at 8:14 am
derek.colley (9/6/2012)
Jeff Moden (9/6/2012)
Try it. You'll find that it's not susceptible to injection because it's not being used in dynamic SQL.
Good point. You'd merely get the string inserted...
September 6, 2012 at 8:09 am
Viewing 15 posts - 10,801 through 10,815 (of 15,376 total)