68.8k views
1 vote
What will the following query return?

FIND (Joe Smith)
IN Name Fields
RETURNING lead(name, phone)

1. All records with a related lead with the name Joe Smith.
2. All leads with the name Joe Smith.
3. It will not compile.

1 Answer

7 votes

Final answer:

The query is likely to return all the leads with the name Joe Smith, assuming the search functionality recognizes the provided syntax.

Step-by-step explanation:

The query provided seems to represent a search within a database or CRM system, looking for records associated with a person named Joe Smith. The query is structured to SEARCH for entries specifically within 'Name Fields', and it is designed to RETURN results that contain 'name' and 'phone' information for leads. Therefore, the query is likely to return option 2: All leads with the name Joe Smith. It assumes that there is a search functionality setup with that specific syntax which will correctly interpret the query and return the expected results.

User Nick Chammas
by
8.4k points