Viewing 15 posts - 3,796 through 3,810 (of 5,504 total)
At a first glance it looks like it's not required to do it row by row...
Beside the sample data I already asked for please provide the beginning of the procedure...
April 14, 2010 at 1:01 pm
gregory.anderson (4/14/2010)
Ok, I'll try and post the sql stuff...this is going to be long...
How about some (fake) sample dta to play with?
April 14, 2010 at 12:12 pm
You don't have to use dynamic SQL. However, if there are many nodes under col1Data you should compare the performance of the following solution to the dynamic SQL version... Thinking...
April 14, 2010 at 12:09 pm
One of my preferred sites: http://rusanu.com/articles/
April 14, 2010 at 11:45 am
Sasidhar Pulivarthi (4/14/2010)
Select Cust,MAX(OrderDate) Maxdate,MAX(SeqNo) MaxSQnofrom tblname group by Cust
Actually, this won't give the expected result... The MAX() function is applied to each field separately. See the following...
April 14, 2010 at 11:11 am
Aspet Golestanian Namagerdi (4/13/2010)
April 14, 2010 at 10:58 am
gregory.anderson (4/14/2010)
April 14, 2010 at 10:44 am
Identical solutions, posted at the very same time. Must be the best solution then... 😀
Side note: '' = 44sec. That's the closest I've seen so far for posting identical solutions...
April 14, 2010 at 10:12 am
gregory.anderson (4/14/2010)
...I am processing this where I do a Select Top 1 blah Where (criteria here) and assign the values in my select statement to variables. ...
Is it possible in...
April 14, 2010 at 9:59 am
Something like this?
DECLARE @tbl TABLE (ID INT, SurveyDate DATETIME, FY INT )
INSERT INTO @tbl
SELECT 100 ,'8/25/2009', 2009 UNION ALL
SELECT 200 ,'8/26/2009', 2009 UNION ALL
SELECT 300 ,'8/29/2009', 2009 UNION ALL
SELECT...
April 14, 2010 at 9:51 am
There are several ways to do it. One would be to join to a calendar table that would include a column where weekdays can be identified.
An example of a calendar...
April 14, 2010 at 9:45 am
Please be a little more specific what you mean by "database performance is slow". AFAIK, a database itself cannot be slow: if there is no activity at all (neither insert...
April 13, 2010 at 4:20 pm
I'm not sure if that's exactly what you're looking for... But at least it should give you something to start with.
The tricky part to get different node names is to...
April 13, 2010 at 12:41 pm
CirquedeSQLeil (4/12/2010)
Paul White NZ (4/10/2010)
Amanda Lawrence
Thank you...
April 12, 2010 at 12:34 pm
SELECT cols
FROM YourTable
where YourColumn like '%[0-9]%'
will return only rows with numbers.
SELECT cols
FROM YourTable
where YourColumn like '%[^0-9]%'
will return only rows at least one...
April 12, 2010 at 11:59 am
Viewing 15 posts - 3,796 through 3,810 (of 5,504 total)