Viewing 15 posts - 7,771 through 7,785 (of 15,381 total)
lawson2305 (6/26/2013)
GilaMonster
You escape quotes by doubling them.
I find it strange when you double them it puts in the single quote. Thanks for...
June 26, 2013 at 1:05 pm
This isn't too bad to write. Any chance you can post ddl and sample data in a consumable format? (Create tables and inserts so we can hit f5 and get...
June 26, 2013 at 12:10 pm
Luis Cazares (6/26/2013)
Sean Lange (6/26/2013)
1. Sample DDL in the form of CREATE TABLE statements
2. Sample data in the form of INSERT INTO statements
3. Expected results based...
June 26, 2013 at 11:49 am
Steven Willis (6/26/2013)
Sean Lange (6/26/2013)
Steven Willis (6/25/2013)
June 26, 2013 at 11:44 am
skempf (6/26/2013)
June 26, 2013 at 10:36 am
What would really help is:
1. Sample DDL in the form of CREATE TABLE statements
2. Sample data in the form of INSERT INTO statements
3. Expected results based on the sample data
You...
June 26, 2013 at 10:25 am
dob111283 (6/26/2013)
It just said "Error near Offset" and "error near fetch", when I completed the aforementioned query. Only top worked.
But you still haven't posted the actual query that you ran....
June 26, 2013 at 9:58 am
Hi and welcome to the forums. In order to help we will need a few things:
1. Sample DDL in the form of CREATE TABLE statements
2. Sample data in the form...
June 26, 2013 at 9:43 am
bquintana (6/26/2013)
June 26, 2013 at 9:41 am
Barkingdog (6/26/2013)
June 26, 2013 at 9:29 am
mamzy10 (6/26/2013)
June 26, 2013 at 9:24 am
mamzy10 (6/26/2013)
learner ...
June 26, 2013 at 9:09 am
kapil_kk (6/26/2013)
SELECT id,
SUBSTRING((SELECT ', ' + Term
FROM Something s2
WHERE s1.id = s2.id
and s2.Type = 'Subject'
ORDER BY s2.Term
FOR XML...
June 26, 2013 at 9:01 am
kapil_kk (6/26/2013)
I know to print comma seperated values using FOR XML.
But I was trying the same solution using COALESCE like this:
DECLARE @var varchar(max)
SELECT @var = coalesce(@var +',','') + term...
June 26, 2013 at 8:58 am
gurjer48 (6/26/2013)
how for xml path('') works here to get all values in single row?please explainthanks and regards
sudarshan
Not quite sure what you are asking? Are you asking how does FOR...
June 26, 2013 at 8:54 am
Viewing 15 posts - 7,771 through 7,785 (of 15,381 total)