Mar 12, 2007 #1 jimoblak Instructor Oct 23, 2001 3,620 US Is it possible to select distinct domain names from an email field in a table in a single statement, extracting the domain after the token '@'?
Is it possible to select distinct domain names from an email field in a table in a single statement, extracting the domain after the token '@'?
Mar 12, 2007 #2 Sleidia Technical User May 4, 2001 1,284 FR Should be this I think : Code: SELECT SUBSTRING_INDEX('user@domain.com', '@', -1) Upvote 0 Downvote