Help with Data SUPPORT and LIFT [message #310883] |
Wed, 02 April 2008 13:51 |
jlbovo
Messages: 8 Registered: February 2008
|
Junior Member |
|
|
I need a little help with a problem. I have to come up with Association Rules for a table that I have. I must also do the support and lift for them.
Is there an easy way to calculate this, for the table has over 800 records.
I have done the COUNT function to get a count of single items from the table. I must do them for two items and some have three or more items and I can not get a count to COUNT all.
For example, I used this code to count how many records were on Monday. SELECT COUNT(DAY_ID)
FROM FACT5
WHERE DAY_ID = 1; ....and then I used this code to find Males in the tables..SELECT COUNT(SEX_ID)
FROM FACT5
WHERE SEX_ID = 1;
How do i find out how many records have Monday(day_id = 1) and that are Males(sex_id = 1).
Any help would be appreciated.
Thanks - Justin.
|
|
|
|
|