Viewing 15 posts - 196 through 210 (of 210 total)
Hi Thorn,
Its take ID has primary key and I am only taking ID count.
ID=1 is available 3 times.so for ID=1(Multiple value available for this particular ID) if any of...
December 6, 2017 at 2:59 am
Thanks Jeff for sharing your experience.....
Regards,
Saravanan
November 22, 2017 at 10:48 pm
Hi Jeff,
Thanks for point it out and your contribution to SQL is immense . I am a tester when I run my query it usually takes lot of...
November 22, 2017 at 8:24 am
This might fitting into your requirement.
November 22, 2017 at 12:55 am
Thanks Thorn. If possible can you kindly explain with a example...
Regards,
Saravanan
November 5, 2017 at 6:30 am
Thanks Allen...
Can you kindly tell me how to generate two result sets...
Regards,
Saravanan
November 4, 2017 at 11:05 pm
Can you kindly check the syntax
Goal is: if HEDGE CLASS CODE is null and DC_ManagerCode is null then:FundCode--->(Why semicolon is used in front of column name)
if...
September 25, 2017 at 8:19 am
Hi Roger,
I got your desired output by using the below query. See if fits your requirement:
select customer,SUM(consolidated_amount)as total_amount from
(
select b.customer,b.purchase,SUM(amount) as consolidated_amount
from orders b
September 9, 2017 at 10:13 pm
This is the query your looking for I Think:
select * from (select acctno,custid,title,name,empeeno,reflresult,datereferral,
RANK() over(partition by acctno order by dateprop desc) as ranking
from #customer)b
where b.ranking=1...
September 6, 2017 at 6:59 am
Hi ,
This might be answer your are looking for :
select distinct a.productcode,
case when a.franchisegroup='B1' and a.franchisevalue=b.B1 then b.FranchiseCode
when a.franchisegroup='B2' and a.franchisevalue=b.B2 then b.FranchiseCode
else a.FranchiseCode...
September 6, 2017 at 3:38 am
Thanks Bro..
February 21, 2017 at 2:48 am
Thanks Thorn
February 20, 2017 at 11:19 pm
Thanks Thorn ... I really appreciate your efforts . But I am not able to understand Cross Apply... Could you pls provide any useful link for it.. If you got...
February 20, 2017 at 4:01 am
Also, your CASE statements should be returning 0 or...
January 28, 2017 at 6:30 am
Viewing 15 posts - 196 through 210 (of 210 total)