I have 2 names that i have fetched from my database.
string query1 = SELECT FIRSTNAME FROM STUDENT;
string query2 = SELECT FIRSTNAME FROM CUSTOMER;
The result from query1 is say RESET and the result from query2 is for example SET. i want to compare the 2 strings and get the match as an integer and calculate the percentage. In the example above the match is 3. so the % will be 3/5 * 100. which C# function can i use to compare the strings? i want to do the comparison in C# code and not using SQL.