Viewing 15 posts - 3,046 through 3,060 (of 5,504 total)
You need to add the namespace declaration, especially the DEFAULT declaration:
;WITH XMLNAMESPACES
('http://www.w3.org/2001/XMLSchema-instance' as xsi, -- not required for this specific query
'http://schemas.xmlsoap.org/soap/encoding/' as soapenc, -- not required for this...
August 4, 2010 at 6:21 am
What have you tried so far?
Please post your current solution.
August 4, 2010 at 3:13 am
I think we need some sample data. You could also reduce the table def to the columns required. This would also reduce the amount of sample data to be generated...
August 4, 2010 at 2:57 am
Wouldn't it be easier to do it in one query? Or am I missing the obvious?
SELECT land1, COUNT(*)
FROM kna1
WHERE land1 IN('SE', 'FI')
GROUP BY land1
August 3, 2010 at 5:31 am
Well, maybe the information provided so far cannot be used to answer your question...
Please attach both xml files and provide the DDL script for the [File] table.
August 3, 2010 at 5:18 am
Create a user role with SELECT permissions on the views and DENY SELECT on the source tables. This will be a lot easier to setup and maintain than the trigger...
August 3, 2010 at 4:01 am
Please post table def and some sample data in a ready to use format for the following tables:
CASES, PROPERTY, CASEEVENT, and CR_REPORTPERIODS.
Also, please post your expected result based on those...
August 3, 2010 at 3:57 am
You could wrap your UNION statment in a subquery or CTE. This way you could save one sorting operation by moving the ROW_NUMBER() function to the outer SELECT.
At a first...
August 3, 2010 at 3:42 am
First thing to say: storing date values as varchar is a really bad design idea. SQL Server came up with DATETIME and SMALLDATETIME for as reason!
Regarding the error: Other than...
August 3, 2010 at 3:25 am
Please post table def and some sample data in a ready to use format. There might be an easier way to do it...
August 3, 2010 at 3:13 am
ColdCoffee (8/2/2010)
jvanderberg (8/2/2010)
dateadd(wk, datediff(wk, 0, @ThisDate), 0)This will convert a date into the first Monday of the week that contains it. Group on this date.
Check out Lynn Pettis' wonderful...
August 3, 2010 at 3:08 am
chandrasekaran.ganapathy (8/2/2010)
Can any give me the easiest way to check?:
Yes: see my previous post.
August 2, 2010 at 12:55 pm
I was hoping you just selected the wrong forum to post in so we could use ROW_NUMBER()...
But since you're at SQL2000 I would use the "quirky update method" as described...
August 2, 2010 at 12:53 pm
Please confirm that you're using SQL2000 and not 2005 or 2008.
If SQL2000: can we add one more column to the temp table as well as a clustered index?
August 2, 2010 at 9:55 am
Here's what I came up with. Since I didn't know if you need the values for attribute B or the element name A I included both.
I don't know of a...
August 1, 2010 at 2:12 am
Viewing 15 posts - 3,046 through 3,060 (of 5,504 total)