Question: In Example 12-1, the logical function lt_city failed to sort APO and Anywhere in proper order because all capital letters appear before all lowercase letters

In Example 12-1, the logical function lt_city failed to sort APO and Anywhere in proper order because all capital letters appear before all lowercase letters in the ASCII collating sequence. Add an internal procedure to function lt_city to avoid this problem by shifting both city names to uppercase before the comparison. Note that this procedure should not shift the names in the database to uppercase. It should only shift the names to uppercase temporarily as they are being used for the comparison.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!