Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Distinct on Group of Names

Status
Not open for further replies.

saw15

Technical User
Jan 24, 2001
468
US
Good day ..

We keep a historical table of all users who submit a job. This table, logs the user name how they have logged into the db that day, example. User logs in as User1 or user1 or USER1.

I need to run a distinct on the group of user names, that does not compare case each name, so User1, user1 and USER1 would result in a count of one, not three.

Help is much appreciated.
 
Try This

Select distinct(lower(UserName)) from the HistoryTable;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top