Viewing 15 posts - 2,776 through 2,790 (of 3,957 total)
polkadot (9/18/2012)
So, group by limits you to one aggregation, and PARTITION BY allows for multiple groupings. Thanks Dwain.
Actually, either supports aggregation to many levels (I am not sure of the...
September 18, 2012 at 11:44 pm
rukhsar1101 (9/18/2012)
I hav just joint this forum.
I have to ask few things.
I have worked with SQL 2000 and basic 2005.database design.
I've planned to work as a DBA ,but not sure...
September 18, 2012 at 9:52 pm
Jeff Moden (9/18/2012)
The following XML takes 193 bytes including a single end-of-line character.
<PartsList>
<Part>123</Part>
<Color>blue</Color>
<Size>small</Size>
<Part>124</Part>
<Color>black</Color>
<Size>medium</Size>
<Part>125</Part>
<Color>red</Color>
<Size>large</Size>
</PartsList>
The following only...
September 18, 2012 at 8:55 pm
That's going to be quite a challenge if it is possible at all.
You might want to look at this recent thread: http://www.sqlservercentral.com/Forums/Topic1351799-392-1.aspx
Look for the suggestion by Eugene Elutin to generate...
September 18, 2012 at 6:54 pm
Agreed that the BOY function is a waste of CPU cycles when the conversion is quite easy as follows:
SET DATEFORMAT MDY
SELECT BOY=DATEADD(year, DATEDIFF(year, 0, MyDate), 0)
,EOY=DATEADD(year,...
September 18, 2012 at 6:45 pm
I think you're going to have a problem converting your part number into a tag.
You can do something like this:
DECLARE @t TABLE (Part INT, Color VARCHAR(10), Size VARCHAR(10))
INSERT INTO @t
SELECT...
September 18, 2012 at 6:32 pm
I can answer for John.
SUM OVER requires a PARTITION clause. In this case, since you're partitioning over the entire rowset, anything will do, like 1 or NULL.
September 18, 2012 at 6:23 pm
L' Eomot Inversé (9/18/2012)
Evil Kraig F (9/18/2012)
Does EXCEL handle that many columns? I didn't think it did (well, reasonably anyway) but I've certainly been inaccurate before.
No, it doesn't. ...
September 18, 2012 at 6:15 pm
Evil Kraig F (9/18/2012)
dwain.c (9/18/2012)
Let's set up the...
September 18, 2012 at 5:08 pm
Nice work on the query mod. Like I said, I figured that info must be somewhere in those tables I SELECTed against.
On your second point, I guess it depends...
September 18, 2012 at 6:25 am
Now I'm fairly sure someone is going to think that I'm crazy and perhaps I am, but why not use XML for this?
Let's set up the incoming data just slightly...
September 18, 2012 at 1:29 am
eh.shams (9/17/2012)
thanks , how i can create job to do it ,periodicaly ?
That could be a very involved question. I suggest you look through the Stairway to SQL Server...
September 17, 2012 at 11:49 pm
I have to agree with NOT A DBA in that your question is worded strangely and his answer is basically correct.
I suspect you may be looking for something else, namely...
September 17, 2012 at 11:38 pm
This is really cool stuff!
Only scanned the article so far but have bookmarked it for a return read this weekend.
I had often wondered if there's an existing algorigthm out there...
September 17, 2012 at 10:24 pm
Jeff Moden (3/3/2009)
Now, just in case anyone gets any smart ideas about using the clustered index in SELECTs to create an "order" without an ORDER BY... [font="Arial Black"]don't bloody well...
September 17, 2012 at 10:19 pm
Viewing 15 posts - 2,776 through 2,790 (of 3,957 total)