How can I select table from sys.tables where table name does not containt special word (which pass in parameters).
I want to select all tables where its contains word 'customer' but not those who ends with 'old' in name.
TableName In DB
customer1
customer2
customer3
customerold1
customerold2
Output Wanted
customer1
customer2
customer3