Viewing 15 posts - 661 through 675 (of 1,229 total)
drew.allen (1/4/2012)
ChrisM@home (1/4/2012)
say there are ten rows with the same VND_ID and only one of them matches the filter?
You'll need to post sample data illustrating the problem and the desired...
January 5, 2012 at 11:14 am
atchristian (1/5/2012)
That worked! Thanks everyone for the help! Things have been smooth the last 24 hours!
Compatibility mode? Fantastic 😀
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...
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...
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...
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...
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?
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...
January 4, 2012 at 1:30 pm
Probably something in the UPDATE part of your statement. How about posting the whole statement?
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.
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...
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...
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...
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...
January 4, 2012 at 6:22 am
Them's big rows. Can you post the CREATE TABLE script?
January 4, 2012 at 5:58 am
Viewing 15 posts - 661 through 675 (of 1,229 total)