![]() | |
#51
| |||
| |||
|
|
select sum(energytable.calories*meal.amount) from meal join energytable using (foodname) where meal.username=<BoundParameter where BoundParameter is SQLite's way of putting the username into your sql query. For inserts it becomes just another value to enter and for update/delete it goes into the where clause. This (the ability to run queries on combined shared and non-shared data) is a big advantage of both Bob's/Volker's and 'my' approach. |
#52
| |||
| |||
|
|
select sum(energytable.calories*meal.amount) from meal join energytable using (foodname) where meal.username=<BoundParameter where BoundParameter is SQLite's way of putting the username into your sql query. For inserts it becomes just another value to enter and for update/delete it goes into the where clause. This (the ability to run queries on combined shared and non-shared data) is a big advantage of both Bob's/Volker's and 'my' approach. |
#53
| |||
| |||
|
|
select sum(energytable.calories*meal.amount) from meal join energytable using (foodname) where meal.username=<BoundParameter where BoundParameter is SQLite's way of putting the username into your sql query. For inserts it becomes just another value to enter and for update/delete it goes into the where clause. This (the ability to run queries on combined shared and non-shared data) is a big advantage of both Bob's/Volker's and 'my' approach. |
#54
| |||
| |||
|
|
select sum(energytable.calories*meal.amount) from meal join energytable using (foodname) where meal.username=<BoundParameter where BoundParameter is SQLite's way of putting the username into your sql query. For inserts it becomes just another value to enter and for update/delete it goes into the where clause. This (the ability to run queries on combined shared and non-shared data) is a big advantage of both Bob's/Volker's and 'my' approach. |
#55
| |||
| |||
|
|
select sum(energytable.calories*meal.amount) from meal join energytable using (foodname) where meal.username=<BoundParameter where BoundParameter is SQLite's way of putting the username into your sql query. For inserts it becomes just another value to enter and for update/delete it goes into the where clause. This (the ability to run queries on combined shared and non-shared data) is a big advantage of both Bob's/Volker's and 'my' approach. |
![]() |
| Thread Tools | |
| Display Modes | |
| |