Hello,
I searched the internet but i couldnt find any info. I need something like this:
My database has many entries lets say a sample data is :
id value success
1 1.45 1
1 1.80 1
1 1.70 1
2 2.40 2
2 3.20 1
2 2.50 1
3 1.60 1
3 1.30 1
3 1.20 1
4 1.40 2
4 1.90 2
4 1.60 1
first, to group by the id all entries
I can do this simply with
select * from tbllist group by id
Now , what i need is :
1) determine the grouped id whichs all the values for "success" is 1 ( i must get grouped ids : 1 and 3 )
2) I need those grouped id 1 and 3 's (which we found in step1 ) values multipled. ( for example for id 1 i need 1.45 * 1.80*1.70 and for id 3 1.60*1.30*1.20 )
Can someone help me with this
TY
I searched the internet but i couldnt find any info. I need something like this:
My database has many entries lets say a sample data is :
id value success
1 1.45 1
1 1.80 1
1 1.70 1
2 2.40 2
2 3.20 1
2 2.50 1
3 1.60 1
3 1.30 1
3 1.20 1
4 1.40 2
4 1.90 2
4 1.60 1
first, to group by the id all entries
I can do this simply with
select * from tbllist group by id
Now , what i need is :
1) determine the grouped id whichs all the values for "success" is 1 ( i must get grouped ids : 1 and 3 )
2) I need those grouped id 1 and 3 's (which we found in step1 ) values multipled. ( for example for id 1 i need 1.45 * 1.80*1.70 and for id 3 1.60*1.30*1.20 )
Can someone help me with this
TY