Viewing 15 posts - 10,801 through 10,815 (of 15,381 total)
And to add to Luis, there is a reason we have a datetime datatype in sql. Please us it and not some horrible integer/string disaster. It will cause you and...
September 7, 2012 at 7:29 am
Richard Warr (9/7/2012)
I looked at the first option and was disappointed that the second one wasn'tCollect $200 for parsing GO.
+1 😀
Good question. Made me stop and think before my first...
September 7, 2012 at 7:26 am
Here is my take on what you need to do. You should read the article at the first link in my signature, the one about best practices. Keep in mind...
September 7, 2012 at 7:12 am
Lynn Pettis (9/6/2012)
I guess we are supposed to be miracle workers here and know just what went wrong given minimal information.
I saw that post and got very quiet as I...
September 6, 2012 at 3:08 pm
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
Viewing 15 posts - 10,801 through 10,815 (of 15,381 total)