Enhance your skills with the CompTIA Data+ Certification Test. Engage with flashcards, tackle challenging multiple choice questions, complete with hints and explanations. Get yourself exam-ready now!

Multiple Choice

To derive a new field that flags sales within January from a sales table, which type of function should be used?

This is about using a logical test to create a binary flag for each row. A logical function evaluates a condition and returns true/false (or 1/0), which is perfect for marking whether a sale occurred in January. You’d check the date field, for example testing if the month is January (and optionally the year to target a specific period), and output a 1 for January and 0 otherwise. Date functions would just extract parts of a date, not produce a per-row flag; Aggregate functions would summarize data across rows; String functions handle text. So using a logical function is the right approach to derive the January-flag field.

This is about using a logical test to create a binary flag for each row. A logical function evaluates a condition and returns true/false (or 1/0), which is perfect for marking whether a sale occurred in January. You’d check the date field, for example testing if the month is January (and optionally the year to target a specific period), and output a 1 for January and 0 otherwise. Date functions would just extract parts of a date, not produce a per-row flag; Aggregate functions would summarize data across rows; String functions handle text. So using a logical function is the right approach to derive the January-flag field.