Viewing 15 posts - 13,846 through 13,860 (of 15,381 total)
ramadesai108 (10/4/2011)
SET @query = N'
SELECT * from tbl where (nid = '+@ID+')
AND ID IN('+IDs+')'
It...
October 4, 2011 at 1:13 pm
I understand the concerns about functions from a historical point of view but this is a table valued function and NOT a scalar which is why some shops don't let...
October 4, 2011 at 12:57 pm
I would recommend NOT doing this in dynamic sql. The example you posted is not dynamic sql. Trust me you want to use the splitter function from Jeff.
Your final query...
October 4, 2011 at 12:51 pm
Yes like mentioned you cannot perform multiple aggregations on a single column. You can however split this into two pieces in a subquery and perform your calculation outside. Like this.
select...
October 4, 2011 at 12:46 pm
Probably a better way to do this is to use a splitter. Our very own Jeff Moden has a fantastic one here. http://www.sqlservercentral.com/articles/Tally+Table/72993/%5B/url%5D
The speed you will experience is amazing and...
October 4, 2011 at 11:52 am
I think that may be further proof that few people has utilized this...nobody want to speak on a topic that they don't know about. I am hoping I can find...
October 4, 2011 at 11:48 am
October 4, 2011 at 10:16 am
Hi. It seems you are somewhat new around here. Welcome. Before we have a chance at helping you with your issue you need to provide some details. If you want...
October 4, 2011 at 10:10 am
jcrawf02 (10/4/2011)
SQL Kiwi (10/3/2011)
Sean Lange (10/3/2011)
The images are replaced with "Thief" image because they were lifted.That's neat!
That's hilarious, but I doubt that's usually a viable option. Who is really that...
October 4, 2011 at 7:58 am
hunt (10/3/2011)
Sql server is having Boolean Data Type
Just to be 100% clear sql does not have a boolean but a bit data type is a decent replacement. A boolean...
October 4, 2011 at 7:38 am
If this is a one time thing just run your select in SSMS and select the results to file option. This will let you name the file to whatever. If...
October 4, 2011 at 7:19 am
parsayandan (10/3/2011)
he tell me when you use a thing without...
October 3, 2011 at 3:31 pm
komal145 (10/3/2011)
Example tbale T1 has id 1 , 2, 3, 4and T2 has id 3,4,5,6
so i want 1,2,3,4,5,6 as ID in result table
I think it is a language issue more...
October 3, 2011 at 3:10 pm
parsayandan (10/3/2011)
this is two word with two means
1- If we stole or ... your data , I don't chat with you for this
2- I know different between stole...
October 3, 2011 at 3:06 pm
Viewing 15 posts - 13,846 through 13,860 (of 15,381 total)