Click here to Skip to main content
16,016,789 members

Comments by Rabee Qabaha (Top 20 by date)

Rabee Qabaha 28-Apr-21 19:22pm View    
Hello @Gerry,
So what you are saying that I need to create a new table called Invoices, all payments for both yearly and monthly should be stored in this table.
but what about the monthly payments, what the best way to deal with that?? generate a new table contains all the monthly payments??
Rabee Qabaha 17-Mar-21 16:23pm View    
I did as you said but I'm getting this error: "near "BY": syntax error" here is the query now :

SELECT ROW_NUMBER() OVER (ORDER BY
(SELECT 1)) num_col, ID, cust_id, final, value, date, sum(balance) PARTITION BY (partition BY cust_id
ORDER BY date, seq, ID) balance, note
FROM (SELECT ID, cust_id, final, 0, final balance, date, note, 0
FROM transfers UNION ALL
SELECT ID, cust_id, 0, value, - value, date, note, 1
FROM trans_payments) t (ID, cust_id, final, value, balance, date, note, seq)
ORDER BY cust_id, date, seq
Rabee Qabaha 17-Mar-21 8:32am View    
I have an error on Top I know it's limit in SQLite, I'm getting also an error on (SELEC 1)) num_col, I tried a lot But I couldn't convert it I'm new to SQLite
Rabee Qabaha 16-Nov-17 7:58am View    
Thank you man , i solved the problem, appreciate your effort.
Rabee Qabaha 25-Jan-17 18:13pm View    
@Member 9831003 Hello until now i couldn't fiend a solution, can you help me ??
please show me how to do this in code