開発者は、ユーザーを次の名前のカスタム プロファイルに割り当てることができるシステム監査機能を実装する必要があります。
「監査人」は、Account オブジェクト内の履歴レコードに対して検索を実行します。開発者は、検索で 6 か月から 12 か月前の履歴レコードを返すことができることを確認する必要があります。
以下のコードの場合、6 か月から 12 か月の範囲のアカウント履歴レコードを取得する有効な方法として、どの選択ステートメントを下に挿入する必要がありますか?

正解:B
Given the code snippet, the correct query to retrieve Account History records between 6 and 12 months old would be the one that includes a WHERE clause filtering records where the CreatedDate is greater than or equal to initialDate and less than or equal to endDate. Option B's statement does this correctly by using the >
= and <= operators to define the range between initialDate (which is set to today's date minus 12 months) and endDate (set to today's date minus 6 months). Options A, C, and D either use incorrect comparison operators or compare against the wrong variables, resulting in an incorrect data set being returned.
References
SOQL Date Formats and Date Literals: SOQL and SOSL Reference Guide
最新のコメント (最新のコメントはトップにあります。)
This answer is A