I got two tables, join them and now i just want to count one of them
Select(count(myOtherTable.name), from: myTable).join(myOtherTable).on(myTable.name == myOtherTable.someName)
Executing that query I get
The operation couldn't be completed. (SwiftKuery:QueryError 2.)
Some ideas what my mistake is?
I suspect he issue is that you should be using
count(myOtherTable.someName).Below is sample code that demonstrates the query in your question functioning as expected based on a database schema derived from it.