QuestionQ54

VerifiedFeatures and concepts

When working with datasets, which SQL query has its clauses arranged in the correct order to query the FortiAnalyzer database?

Explanation

FortiAnalyzer's dataset SQL queries must follow the standard SQL clause order: SELECT (columns) FROM (table) WHERE (condition) GROUP BY (column). Only the option that lists SELECT devid FROM $log WHERE ... GROUP BY devid preserves this correct sequence, whereas the other options omit the column list after SELECT or place the WHERE clause before FROM, which is invalid SQL syntax.

Community Discussion

No comments yet. Be the first to start the discussion!