This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
WillyVervest
/
How_to_retrieve_data_from_a_single_table
forked from
RafVergauwen/How_to_retrieve_data_from_a_single_table
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
oef4
master
willy vervest
2 years ago
parent
e4ac2d1192
commit
91e1eab50f
1 changed files
with
7 additions
and
0 deletions
Split View
Show Diff Stats
7
0
Exec_4.sql
+ 7
- 0
Exec_4.sql
View File
@@ -0,0 +1,7 @@
SELECT invoice_number,
invoice_total,
payment_total + credit_total AS payment_credit_total,
invoice_total - payment_total - credit_total AS balance_due
FROM invoices
WHERE balance_due > 50
ORDER BY balance_due DESC;
Write
Preview
Loading…
Cancel
Save