Subversion Repositories SmartDukaan

Rev

Rev 16360 | Rev 16362 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16360 Rev 16361
Line 52... Line 52...
52
    
52
    
53
    UNION
53
    UNION
54
    
54
    
55
    select bp.user_id,bp.brand,bp.category_id,count(1) as count,"preferences" as source,(uw.weightage* count(1)) as weight
55
    select bp.user_id,bp.brand,bp.category_id,count(1) as count,"preferences" as source,(uw.weightage* count(1)) as weight
56
    from brand_preferences bp join user_segmentation_weigthage uw on "preferences"=uw.weightage_type  
56
    from brand_preferences bp join user_segmentation_weigthage uw on "preferences"=uw.weightage_type  
57
    where user_id!=0 and status='show' group by category_id,brand,user_id;
57
    where user_id!=0 and status='show' group by bp.category_id,bp.brand,bp.user_id
58
 
-
 
59
) as x
58
) as x
60
 
59
 
61
"""
60
"""
62
 
61
 
63
 
62