I admit to not being very good with calculated fields and SQL statements. But I have been trying to understand. Every example reference I get I double check and learn about at: https://www.w3schools.com/sql/
But nearly everytime I do a calculated field it hates the syntax that I got from W3Schools or a Caspio forum user.
So for Caspio specifically, is there a finite and known list of SQL commands and syntax we have to follow - so we dont waste our time with fucntions that wont work in Caspio?
And are these correct assumptions?
for number functions the number gets no quotes (ie WHERE field_name = 1)
for text string questions you do use quotes (ie WHERE field_name = "some text")
concluding semicolon not needed? Get stuff to work sometimes with the ; sometimes or without it others
Is table_name reference literally just the table name (ie contacts) with no formatting
All references to a field must be in this format [@field:field_name]
I have tried some very basic forum suggested code and they always fail to verify. For example:
SELECT COUNT(ID)
FROM table_name
WHERE ID = target.[@field:incidentID]
or
select count(user_id) from table_name where CME_Category='Value'
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
roattw
I admit to not being very good with calculated fields and SQL statements. But I have been trying to understand. Every example reference I get I double check and learn about at: https://www.w3schools.com/sql/
But nearly everytime I do a calculated field it hates the syntax that I got from W3Schools or a Caspio forum user.
So for Caspio specifically, is there a finite and known list of SQL commands and syntax we have to follow - so we dont waste our time with fucntions that wont work in Caspio?
And are these correct assumptions?
I have tried some very basic forum suggested code and they always fail to verify. For example:
SELECT COUNT(ID)
FROM table_name
WHERE ID = target.[@field:incidentID]
or
select count(user_id) from table_name where CME_Category='Value'
What am I missing (other than basic skills ;^)
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.