Viewing 15 posts - 3,631 through 3,645 (of 5,504 total)
Did you notice? Based on the last login info the OP obviously lost interest or found an answer...
April 29, 2010 at 3:40 am
Digs (4/28/2010)
I wish to hold a data dumpfor 1000 symbols with 1000's of records
In one table row.
What columns you want to store the data in?
Please review your provided information...
April 29, 2010 at 3:38 am
If you're using MySQL and not SQL Server you probably should try a MySQL forum instead....
The solutions we're posting probably won't work...
April 29, 2010 at 3:27 am
ricardo_chicas (4/28/2010)
I simplify the query a lot, I need the others tables, but with just the one with the a.column_key like ....., is enough to have a really poor performance
Most...
April 28, 2010 at 5:29 pm
The nvarchar(128) is the defined type and length for identifiers (see BOL, section "identifiers [SQL Server]")
I would use the allowed tpes as described for base_types when creating a user-defined type...
April 28, 2010 at 5:24 pm
First question:
Why do you have table2 and table3 in your query? They are neither part of your SELECT nor your WHERE condition....
To help you any further please post more detailed...
April 28, 2010 at 5:05 pm
Digs (4/28/2010)
....Sorry I dont understand your response, and could you please coment on my performance concern with 20,000 records...
Your performance concern comes second. First we have to understand what you're...
April 28, 2010 at 4:57 pm
Digs (4/28/2010)
Ok thanks you answered 1,2,4 for me,thanks.:-DBut you missed 3..
...
No, I didn't. I told you that the information you provided so far is not consistent. You use columns in...
April 28, 2010 at 4:52 pm
@matt-2: you beat me this time... :crying:
But at least our answers do not contradict... 😉
April 28, 2010 at 4:30 pm
Digs (4/28/2010)
So I just do
INSERT INTO dbo.DIM_OHLC_Xml
SELECT
@symbol AS Symbol,
@CurrDate AS Currdate,
...
April 28, 2010 at 4:27 pm
You might want to use XQuery instead of Openxml:
DECLARE @xml XML
SELECT @xml='<ohlc>
<record date="02/01/2010" open="125.25" high="126.25" low="124.25" close="125.20" volime="554651668" adjclose="125.20" />
<record date="02/02/2010" open="126.25" high="127.25" low="125.25" close="126.20" volime="548935488" adjclose="126.20" />
<record date="02/03/2010" open="125.25"...
April 28, 2010 at 3:57 pm
If you have a fixed number of brand_names then you could either use PIVOT (see BOL, aka BooksOnLine, the SQL Server help system), or CrossTab (see the related link in...
April 28, 2010 at 1:51 pm
You're referencing different tables in your SELECT and GROUP BY clause:
SELECT
dbo.DimAge.Age,
dbo.DimSex.Sex,
dbo.DimOccupation.Occupation
GROUP BY
DimCountry.Age,
DimTaxDetails.Sex,
DimRace.Occupation
Since we're talking about a cross join across 10 tables: I truly...
April 28, 2010 at 1:46 pm
Grant Fritchey (4/28/2010)
April 28, 2010 at 1:21 pm
The code you're running is basically a triangular join which probably doesn't scale very well...
You should look into ROW_NUMBER().
Something like this (untested, since ne ready to use sample data to...
April 28, 2010 at 1:06 pm
Viewing 15 posts - 3,631 through 3,645 (of 5,504 total)