Viewing 15 posts - 661 through 675 (of 1,228 total)
atchristian (1/5/2012)
That worked! Thanks everyone for the help! Things have been smooth the last 24 hours!
Compatibility mode? Fantastic 😀
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 5, 2012 at 10:20 am
Not sure. Perhaps a column list isn't required with a table source
USING #TradeVolumes AS Source --(TradeID, AnalysisTypeID, VolumeTypeID, [Hour], [Value])
other than that, the syntax looks ok.
I'd recommend writing and testing...
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 5, 2012 at 9:32 am
SQLKnowItAll (1/5/2012)
Cadavre (1/5/2012)
SQLKnowItAll (1/4/2012)
Thanks for that, but what I am really trying to get at in this post is not an...
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 5, 2012 at 9:14 am
Have a look at the result set from the following query - you should be able to quickly figure out what to do next:
DECLARE @Today DATE
SET @Today = DATEADD(dd,1,GETDATE())
SELECT @Today
SELECT...
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 5, 2012 at 7:39 am
kumar.sachu08 (1/5/2012)
then what should i do....when any interviewer asking like such type of question ?
Should i...
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 5, 2012 at 2:45 am
kumar.sachu08 (1/5/2012)
...How many nonclustered index we can implement on one column like "id" ...
Why would you want more than one index on the same column?
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 5, 2012 at 2:40 am
drew.allen (1/4/2012)
UPDATE PLU_1
SET DSPL_DESCR = replace ([DSPL_DESCR],'"','in')
WHERE AND DSPL_DESCR LIKE '%"%'
AND...
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 4, 2012 at 1:30 pm
Probably something in the UPDATE part of your statement. How about posting the whole statement?
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 4, 2012 at 11:52 am
Replace comma plus space with comma, then space with comma. Or something similar which works with your data (test it).
Then use Jeff's splitter.
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 4, 2012 at 11:22 am
where VND_ID NOT IN (select VND_ID from PLU_1
Where len(DSPL_DESCR)=40
AND DSPL_DESCR LIKE '%"%' )
This is functionally equivalent to Phil's LEFT JOIN.
You could also use NOT EXISTS as a correlated subquery.
Your...
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 4, 2012 at 11:15 am
Marco V (1/4/2012)
I got a database with a table (meterdata) which has little of 70 million rows. Often new rows are added to be precise every 15 mins from between...
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 4, 2012 at 8:39 am
erikpoker (1/4/2012)
A merge is not gonna work for me. What i'm looking for is a way to use a function and insert something somewhere within the function.
And...
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 4, 2012 at 6:25 am
DROP TABLE #Sample
CREATE TABLE #Sample (ID INT, PID INT, Name VARCHAR(10))
INSERT INTO #Sample (ID, PID, Name)
SELECT 1, 0, 'Ad' UNION ALL
SELECT 2, 0, 'Area' UNION ALL
SELECT 3, 1, 'List' UNION...
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 4, 2012 at 6:22 am
Them's big rows. Can you post the CREATE TABLE script?
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 4, 2012 at 5:58 am
Have you tried using MERGE for the upsert, instead of your current two-stage process?
Shredding XML isn't instant - you may gain by separating this from the table changes too:
SELECT
TradeID...
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]
January 4, 2012 at 5:32 am
Viewing 15 posts - 661 through 675 (of 1,228 total)