Coding Queries

  1. Okay, now let’s move on. Close any query results tabs that you have open.

  2. The next few queries I am going to show you are better to use when you have done some coding, as they can help you gain insight from all your work coding your content. For example, you could use these to find potential connections between codes, or connections between a code and a certain demographic.

  3. Let’s start with Coding queries. You can use these to find all content coded at selected codes, a combination of codes, or a combination of codes and attributes. You can go to the Explore menu, and from the Queries drop-down menu, select Coding, or it is described as “Search for content based on how it is coded” in the Query Wizard. So for example, let’s say you want to see if there is content coded as both “memorable quote” and “real estate development,” and you only want to see references that are from residents of Marshallberg – you can do this with a Coding query. Let’s access it through the Explore menu, as we can create a more complex query that way. Go to the Explore menu, and from the Queries drop-down menu, select Coding.

    In the top Ribbon, under the explore tab, a red box around Coding.

  4. We can keep the defaults for now, which only finds references that are coded with all the codes listed. So we just need to click on the ‘…’ button next to the All Selected Codes or Cases drop-down menu to select the two codes we want.

    In the Coding Query Results Preview Window, a red box around the ellipses button.

  5. Select“Memorable quote” and “Real estate development.” Then click OK.

    Select Project Items Window with the Nodes folder open and Memorable quotes and Real Estate development selected and outlined in red. Red box around OK.

  6. Now let’s click on Run Query to see the results.

    In the Coding Query Results Preview Window, a red box around Run Query.

  7. You are shown all the results, but you can also click on the Summary tab to see how many results you got. We can see there are a few results in interviews and survey responses.

    In the Coding Query window, a red box outlines the Summary tab.

  8. We can narrow this down further, to just quotes from residents of Marshallberg. To do that, click on the plus sign at the top right to add another parameter to our search.

    In the Coding Query Results Preview Window, a red box around the add parameter button.

  9. For this new row, we use the All Selected Codes or Cases drop-down menu to select Any Case Where.

    The code or case dropdown menu outlined in red with Any case where selected.

  10. Next click on the … button.

    ... highlighted.

  11. Then expand Person, select Township, and click OK.

    Select Project Items Window with the Case Classifications folder open and township outlined in red.

  12. From the far right drop-down, select “Marshallberg.” (You might have to scroll to the right to see this.) So the query says “All” at the top left, meaning all of these conditions must be true. Then one line says that the content must be coded with both nodes, Memorable quotes and Real estate, and then the other line says AND the person who said this must be from Marshallberg.

    Red box around the open dropdown menu beside equals value, with Marshallberg selected.

  13. Click on Run Query again. This time you can see we get just one large memorable quote on real estate from Mary and James, who are from Marshallberg.

    In the Coding Query Results Preview window, in the results table, a red box around the one entry.

  14. We might not want to save the results, but we might want to save this query to re-run again in the future as we continue to code. To do that, click on Save Criteria at the top right.

    In the Coding Query Results Preview Window, a red box around Save Criteria

  15. Give it the name “Marshallberg Quotes on Real Estate” and click on OK. Then close the query results tab.

    Coding Query Window, with the name field completed and outlined in red. Red box around OK.

  16. You can find this query now savedif you go to the left menu, under Queries, select Query Criteria. You can double click on it at any time to re-run the query.

    In the left menu, under Queries, a red box around Query Critera. In the Queries list, a red box around Mashallberg Quotes on Real Estate.

Test Your Understanding 2

Using the Explore menu option run a Coding query for the project to find interview content coded as “Infrastructure,” “Policy, management,” OR “Real estate development” where the interviewees are from Harkers Island. How many references did you find?

(Hint: You will have to change an option to say Any instead of All to satisfy the “or” condition, different than in the demonstration.)

Click here for the answers.

Technique: Qualitative Data Analysis | Tools: NVivo


First created: November 20, 2023
Last updated: May 12, 2026

Tutorial maintained by Kelly Schultz.

Tutorial created by Kelly Schultz.

Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International icon