Creating calculations using SQLite and C#/WPF -


i developing small time-management app (so can learn c#/wpf). need know best way return calculations various textblocks on 1 of forms.

i have table called "tblactivity" , need calculate how many times values exist. in old days of vba, have used dsum or dcount, i'm not sure the efficient/correct/fastest way return sort of data (the fields indexed way).

if want query table whole this:

int rowcount = tblactivity.rows.count(); 

if want count column meets criteria, run select statement

datarow[] selectedindexcountrow = tblactivity.select("index = 12 , index2 = 'something'"); 

what can still if need display data , count

int count; foreach row datarow in tblactivity.rows { string valuefromtable = row("column");   //display data if must, count += 1; } 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -