SELECT count(*) as 'ax mass murders'
WHERE (incidents.ax=1);
Access rejects this as "The SELECT statement includes a reserved word or an argument name that is misspelled or missing, or the punctuation is incorrect."
Missing "FROM incidents"
The count seems too low.
Trying to sum dead by decade was hard but I solved it:
select int(year/10)*10, sum(incidents.dead) as dead from incidents group by (int (year/10)*10);
Conservative. Idaho. Software engineer. Historian. Trying to prevent Idiocracy from becoming a documentary.
Email complaints/requests about copyright infringement to clayton @ claytoncramer.com. Reminder: the last copyright troll that bothered me went bankrupt.
Friday, March 27, 2020
Subscribe to:
Post Comments (Atom)
I don't work with Access much but usually if you have a table or field name that would conflict with a keyword you can surround it with []. Thus, if I remember correctly, you could have a field named, say, select, by calling it [select] instead.
ReplyDelete