Viewing 15 posts - 1 through 15 (of 33 total)
thanks for the reply. the problem is the number of bom names used in the query is dynamic ie., the product names are not limited to 2. even the query...
August 29, 2007 at 8:32 am
I don't want to use CASE statement. I'd like to know how to do this using PIVOT.
August 28, 2007 at 6:27 pm
This one is more accurate >>
Select i.I_ID,ItemName,Active,Commission
From #item I INNER JOIN #commission C
on CHARINDEX(','+RTRIM(CAST(I.I_ID as char(4))),c.I_ID)>0
Where I.active=1
August 17, 2006 at 2:03 am
Select i.I_ID,ItemName,Active,Commission
From #item I INNER JOIN #commission C
on CHARINDEX(RTRIM(CAST(I.I_ID as char(4))),c.I_ID)>0
Where I.active=1
August 17, 2006 at 2:00 am
January 12, 2006 at 7:47 pm
Hi,
What is MDX app? could you explain me a bit more on how to do that?
Thanks,
Hari
January 10, 2006 at 7:04 pm
December 27, 2005 at 7:35 pm
December 27, 2005 at 6:11 pm
Select branchname,count(distinct(transactionid)),count(distinct(id)),
sum(pass) as pass,sum(fail) as fail
from (
select b.name as branchname, t.name as tranname,
i.transactionid, i.id,
case pass when 1 then 1 else 0 end as...
December 27, 2005 at 2:42 am
Hi Paul,
Thanks for your reply, as u said your query will work only for one level. Though it works for the sample data, it'll fail if there is another level...
November 8, 2005 at 6:13 pm
Hi Rajesh,
This is the efficient solution that I can think of coz i used only one loop. if anyone else can come out with a better one, I'll happy to...
September 22, 2005 at 2:15 am
September 22, 2005 at 12:30 am
September 21, 2005 at 7:35 pm
Rob,
Agreed to your point on the wsequence.. since the reset point is not mentioned in the question, i assumed that it'll be reset for each page. that is why i...
April 26, 2005 at 11:39 pm
Viewing 15 posts - 1 through 15 (of 33 total)