Viewing 15 posts - 2,866 through 2,880 (of 5,502 total)
I think it would be easier for most of us if you'd provide sample data and expected result instead of a code snippet (not even sure what programming language that...
September 7, 2010 at 1:01 pm
Revenant (9/7/2010)
September 7, 2010 at 12:50 pm
Instead of trying to explain what you're looking for it would be more efficient if you would provide table def and sample data in a ready to use format as...
September 7, 2010 at 12:26 pm
Quite a while ago I thought using PIVOT would be, well... "cool".
After I figured how the syntax needs to be I was surprised that it didn't provide any performance gain...
September 7, 2010 at 12:21 pm
davidsalazar01 (9/7/2010)
Hi All,Just need to select all XML elements from 2 different XML data type colums in the same table.
Select XMLcolumn 1 and XML column 2 from 'table name'
Thanks!
Try one...
September 7, 2010 at 12:01 pm
I would use CROSS APPLY on a 10 row table (or subquery):
DECLARE @t TABLE(ID INT, SNO INT)
INSERT INTO @t
SELECT 1,5124 UNION ALL
SELECT 2,6231
SELECT t.ID , t.SNO + z.N
FROM @t...
September 7, 2010 at 10:35 am
ioani (9/7/2010)
Thank you,I managed to solve the problem.
Would you mind sharing your solution so others might benefit from it?
September 7, 2010 at 10:15 am
ioani (9/7/2010)
September 7, 2010 at 2:51 am
Errrmmm... that's a requirement not seen very often... 😉
One option would be to create a c.u.r.s.o.r. on a rather large table (to "avoid" a set based operation).
Inside the c.u.r.s.o.r.:
Join a...
September 7, 2010 at 2:48 am
I would change the design of the table:
Unpivot the data, reduce it to have only values other than Zero and add a unique constraint on Flg_type.
You'd basically have a table...
September 6, 2010 at 8:05 am
Herer's the CrossTab method I would use. It's describe in more details in the related link in my signature.
One thing to notice: Your sample data have multiple rows for P5...
September 6, 2010 at 7:56 am
anuhya.mudumba (9/6/2010)
U r right....i have the same doubts though but i instructed to bring the max benifits of using ssrs and it is one among them.
i have to do...
September 6, 2010 at 6:10 am
I think you're looking for UNION ALL...
Select A1, A2 from A WHERE @CheckA = 1
UNION ALL
Select B1, B2 from B WHERE @CheckB = 1
UNION ALL
Select C1, C2 from C WHERE...
September 6, 2010 at 2:41 am
You should specifically state the collation you want to use.
Example:
SELECT col2 COLLATE Latin_General_CP1_cI_AS AS col1_collation FROM myTable WHERE col1=1
September 6, 2010 at 2:36 am
anuhya.mudumba (9/5/2010)
I cannot use it in the sql part. The requiremment is such that i should get the raw data from the tables and perform all...
September 6, 2010 at 2:29 am
Viewing 15 posts - 2,866 through 2,880 (of 5,502 total)