select Function |
select is a function that searches a range of values for a range of values or stings that meets the criteria specified by one or more search keys.
Include the table name as part of the valueRange and keyRange parameters. If no other function applied to it, the select function returns a list. If another function is applied, then that function is applied to the list to return a single value.
Use select to find values from among a range of values. The value retrieved must meet criteria specified in the keys, such as employee social security numbers. It finds values matching any of the keys.
Syntax:
select(valueRange, keyRange, key1, ...)
valueRange: the range from which values are returned.
keyRange: the range or group in the table you want to search.
key1: the value or string you are searching for.
keyn: an alternative value or string to key1.
Example:
You want to select the social security numbers and salaries for your employees for a new table you are creating. The table you are selecting from is called Staff List.
Salary = select(Staff List::Salary:Employee, Staff List::SSN:Employee, Social Security)