I am working on a project where I have been given Domain\Usernames (Contoso\JSmith) and my data dump has records containing the Domain\ and no user name, Domain\administrator, and Bogus Domains that I need to remove with delete queries. I am looking to isolate both the left and right of the "\" to remove garbage items, but I need some assistance in doing so. I have attempted to use the following:
Expand|Select|Wrap|Line Numbers
- Right([tbl_users].[user_list_Column],InStr([tbl_users].[user_list_Column],'\'))>""
Expand|Select|Wrap|Line Numbers
- Left([US_Local_Admin],InStr([US_Local_Admin],'\')-1) <>"Contoso"