Difference between revisions of "Talk:Collins Foundation Final Report"

From FreekiWiki
Jump to navigation Jump to search
(database changes)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
* include here the criteria used for pulling numbers out of database
+
  Note:
 +
  I have placed an Open Office version of this (with minor spelling/grammar edits on ryukin at /usr/local/fgstaff/grantwriting)
  
fgdb=# SELECT jobtype, count(*) FROM memberhour GROUP BY 1 ORDER BY 1;
 
  
jobtype    | count
+
'''this is the formula used for generating numbers relating to volunteers & their hours'''
-----------------+-------
 
  
Admin          |  1875
+
=="Build" volunteer count by year:==
Adoption        |  5191
 
AdvancedTesting |  2428
 
Build           | 10228
 
Comp4Kids      |  125
 
CREAM          |    19
 
DataEntry      |  959
 
Education      |  551
 
Enterprise      |    24
 
Evaluation      |  6997
 
FrontDesk      |  126
 
Laptops        |  231
 
Misc            |  5473
 
Orientation    |    33
 
Outreach        |    43
 
Printers        |    32
 
Programming    |  228
 
Quality        |  1397
 
Receiving      |  6788
 
Recycling      | 11093
 
Repair          |  1033
 
Sales          |  479
 
Sorting        |  1813
 
Support        |  277
 
SysAdmin        |  115
 
Teaching        |  1675
 
Testing        |  4435
 
(28 rows)
 
  
'''I will use the following in reference to adoption:
+
fgdb=# SELECT EXTRACT( YEAR FROM created), COUNT( DISTINCT memberid )
  (with note that a certain overlap exists with build for MISC)'''
+
FROM memberhour WHERE jobtype IN ('AdvancedTesting', 'Build',
*Adoption       
+
'Enterprise', 'Evaluation', 'Laptops', 'Quality', 'Repair', 'Sorting',
*DataEntry   
+
'Teaching') GROUP BY 1 ORDER BY 1;
*FrontDesk 
 
*Misc         
 
*Printers   
 
*Receiving   
 
*Recycling   
 
*Testing
 
  
'''I will use the following in reference to build:
 
  (with note that a certain overlap exists with build for MISC)'''
 
*AdvancedTesting
 
*Build         
 
*Enterprise   
 
*Evaluation 
 
*Laptops           
 
*Quality 
 
*Repair     
 
*Sorting     
 
*Teaching     
 
  
 +
=="Adoption" volunteer count by year:==
 +
 +
fgdb=# SELECT EXTRACT( YEAR FROM created), COUNT( DISTINCT memberid )
 +
FROM memberhour WHERE jobtype IN ('DataEntry', 'FrontDesk', 'Misc',
 +
'Printers', 'Receiving', 'Recycling', 'Testing', 'Adoption') GROUP BY 1
 +
ORDER BY 1;
 +
 +
==Total hours by year:==
 +
 +
fgdb=# SELECT EXTRACT( YEAR FROM created), SUM( hours ) FROM memberhour
 +
WHERE jobtype NOT IN ('Adoption') GROUP BY 1 ORDER BY 1;   
  
''should I include any recycling data?  Is it really pertinent at all?''
 
  
 
: Note: Teaching might be people teaching adoption classes. [[User:Rfs|RfS]] 18:23, 24 January 2007 (PST)
 
: Note: Teaching might be people teaching adoption classes. [[User:Rfs|RfS]] 18:23, 24 January 2007 (PST)
 +
 +
==Income/Expenses Calculations==
 +
note:
 +
all expenses = total expenses for year
 +
 +
2004
 +
*Operational Income = total income - fundraisers - grants - online
 +
*Overall Income = total income
 +
 +
2005
 +
*Operational Income = total income - c4k donations - online donations - fundraisers - grants - untracked adjustments
 +
*Overall Income = total income
 +
 +
2006
 +
*Operational Income = total income - c4k donations - online donations - grants - unsolicited grants - employee matching
 +
*Overall Income = total income
 +
 +
==Website Traffic==
 +
http://www.tump.com/~lmoore/logs/freegeek/
 +
(only gathers for 1 year)
 +
 +
==Donors & Store Transactions==
 +
fgdb=# SELECT extract( year from created ) as year, count(*) FROM
 +
donation GROUP BY 1 ORDER BY 1;
 +
 +
fgdb=# SELECT extract( year from created ) as year, count(*) FROM sales
 +
GROUP BY 1 ORDER BY 1;
 +
 +
== database changes ==
 +
 +
the database queries are from the old fgdb database. in the future they can be used as a guide to write new queries against the fgdb.rb database which has a different structure. most of these queries should be pretty easy to convert.
 +
 +
[[User:Rfs|RfS]] 13:29, 8 February 2007 (PST)

Latest revision as of 14:29, 8 February 2007

 Note:
 I have placed an Open Office version of this (with minor spelling/grammar edits on ryukin at /usr/local/fgstaff/grantwriting)


this is the formula used for generating numbers relating to volunteers & their hours

"Build" volunteer count by year:

fgdb=# SELECT EXTRACT( YEAR FROM created), COUNT( DISTINCT memberid ) FROM memberhour WHERE jobtype IN ('AdvancedTesting', 'Build', 'Enterprise', 'Evaluation', 'Laptops', 'Quality', 'Repair', 'Sorting', 'Teaching') GROUP BY 1 ORDER BY 1;


"Adoption" volunteer count by year:

fgdb=# SELECT EXTRACT( YEAR FROM created), COUNT( DISTINCT memberid ) FROM memberhour WHERE jobtype IN ('DataEntry', 'FrontDesk', 'Misc', 'Printers', 'Receiving', 'Recycling', 'Testing', 'Adoption') GROUP BY 1 ORDER BY 1;

Total hours by year:

fgdb=# SELECT EXTRACT( YEAR FROM created), SUM( hours ) FROM memberhour WHERE jobtype NOT IN ('Adoption') GROUP BY 1 ORDER BY 1;


Note: Teaching might be people teaching adoption classes. RfS 18:23, 24 January 2007 (PST)

Income/Expenses Calculations

note:
all expenses = total expenses for year

2004

  • Operational Income = total income - fundraisers - grants - online
  • Overall Income = total income

2005

  • Operational Income = total income - c4k donations - online donations - fundraisers - grants - untracked adjustments
  • Overall Income = total income

2006

  • Operational Income = total income - c4k donations - online donations - grants - unsolicited grants - employee matching
  • Overall Income = total income

Website Traffic

http://www.tump.com/~lmoore/logs/freegeek/ (only gathers for 1 year)

Donors & Store Transactions

fgdb=# SELECT extract( year from created ) as year, count(*) FROM donation GROUP BY 1 ORDER BY 1;

fgdb=# SELECT extract( year from created ) as year, count(*) FROM sales GROUP BY 1 ORDER BY 1;

database changes

the database queries are from the old fgdb database. in the future they can be used as a guide to write new queries against the fgdb.rb database which has a different structure. most of these queries should be pretty easy to convert.

RfS 13:29, 8 February 2007 (PST)