Viewing 15 posts - 1 through 15 (of 18 total)
I took the result set into temp table (that had name ,id) and then looped through its records(using while loop) and updated the original table. Thanks !
January 16, 2015 at 5:20 am
Changing Select to Update doesn't work.Can you please post the UPDATE Query .Thanks !
January 16, 2015 at 4:46 am
Can you please modify the query to Update .Thanks !
January 16, 2015 at 4:21 am
Thanks. But i need an update script to Update the records directly in DataBase.
January 16, 2015 at 4:16 am
The sample query that I have mentioned in my post is the similar to what I need to write.
January 29, 2014 at 4:43 am
So as per your comments, I need to use multiple If's.... But if there are more than 100 types , then having 100 if's would not be good practice ?
January 29, 2014 at 4:20 am
Based on the Type I need to query different tables to get the data.
I hope this helps!
January 29, 2014 at 3:38 am
The ccount is not obtain directly from table as done here.Am rather using the View written as below
With compTable(cid,ccid,ccount)
as
AS
(
select ...
January 16, 2013 at 11:30 pm
As per my requirement , it would be something :
SELECT
CId,
CCId,
CCount,
(select totalCount = SUM([First]) OVER (PARTITION BY (SELECT NULL))
FROM (
SELECT *,
[First] = CASE WHEN 1 =...
January 16, 2013 at 11:08 am
thanks for the reply !!!
July 25, 2012 at 8:55 am
THNKS FOR THE rEPLY 🙂
October 25, 2011 at 10:23 am
Viewing 15 posts - 1 through 15 (of 18 total)