我有一个带列的表;
- 全名,
- 组号,
- 日期,
- 日程,
- 克拉蒙,
- 德拉蒙,
- 金额。
我想选择那些 textbox111.text 大于 formula 的列SUM(Cramount)*26/(SUM(Dramount+Iamount))
。
下面的 SQL 给了我语法错误,有人可以帮助我吗 DATABASE IS SQLITE AND PROGRAMMING IN XOJO。
sql= "SELECT Fullname, GroupNo, Tdate, Schedule,( SUM(Cramount)*26)/SUM(Dramount+Iamount) AS ok FROM Trans WHERE Branchcode = '1210 - Loans'GROUP BY LoanID HAVING SUM(Cramount)*26/(SUM(Dramount+Iamount)) < '"TextBox111.text'""