|
|
Sergey Kornilov admin 11/10/2004 |
|
Hi, select sum(purchased-used) as ConnectionsRemaining from ... |
|
|
D
|
dnoakes author 11/10/2004 |
|
Worked great but is totalling all of the connections as I have lots of different suppliers. |
|
|
|
Sergey Kornilov admin 11/10/2004 |
|
Hi, select sum(purchased-used) as ConnectionsRemaining from ... where supplier = 'AnySupplier' |
|
|
D
|
dnoakes author 11/10/2004 |
|
Sadly as I feared, it is not totalling by supplier it is only looking at the individual records, which is defeting the purpose of the SQL |
|
|
|
Sergey Kornilov admin 11/10/2004 |
|
You can create a view/query on the top of your SQL statement and use this query as a datasource in ASPRunner. Probably this is what you looking for. |
|
|
D
|
dnoakes author 11/10/2004 |
|
That works a treat thanks <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=2773&image=1&table=forumreplies' class='bbc_emoticon' alt=':D' /> |
|