Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
What can I use instead of a "like"
All the mailbox ID that I need start with BRIA
FROM eRx.dbo.eRxMessages
Where ProcessedOn >= '2017-06-18 00:00:00.000'
and Direction = 'I'
and MsgType = 'NEWRX'
and MailboxID LIKE 'BRIABRNM','BRIAGENE','BRIAPALO','BRIAPHSTV','BRIAPRES','BRIAWDSD','BRIADSD','BRIAEST','BRIAWITRVS';
May be like below
FROM eRx.dbo.eRxMessages
Where ProcessedOn >= '2017-06-18 00:00:00.000'
and Direction = 'I'
and MsgType = 'NEWRX'
and WildMatch(MailboxID, 'BRIA*');
... and MailboxID Like 'BRIA%'
Regards,
Antonio


Do this condition with Load statement.