Jump to content

Simple database: Difference between revisions

Line 1,522:
clientDate$ = trim$(#clientDate contents$())
category$ = trim$(#category contents$())
dbVals$ = clientNum;",'";name$;"','";clientDate$;"','";category$;"'"
sql$ = "INSERT into client ("; dbFields$; ") VALUES ("; dbVals$ ; ")"
#sql execute(sql$)
goto [sho]
Line 1,536:
 
' ------------------------------------
' Select by category - Last date only
' ------------------------------------
[lastCat]
sql$ = "SELECT *,client.rowid FROM client
WHERE client.rowidclientDate = (SELECT max(c.rowidclientDate)
FROM client as c WHERE c.category = client.category)
ORDER BY category"
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.