This method is used to retrieve data based on a parameter other than the primary key. We can create our query and specify the parameter that we want to retrieve data from. We can use the two classes to create our query, both of which we will cover in the following subsections.