Question : Need to use LIKE with 30 identifiers in SQL Server

I need to produce results that capture all the data for account and sub-account for 30 diffent accounts.  That is, I have 30 account numbers, but they could also be 123456-INT, 123456BIT, 123456SMALL, etc.  Is there a ay in SQL T-SQL to loop through a LIKE function for all 30 different accounts and capture the main account as well as sub-accounts?

Answer : Need to use LIKE with 30 identifiers in SQL Server

You can modify last line like this:
LEFT( appl_report_id, 6 ) IN('510577','608970','622419', .... )
Random Solutions  
 
programming4us programming4us