Version: Microsoft SQL Azure (RTM) - 12.0.2000.8 (Azure Managed Instance)
I'm working with a table (ActivityAttributes) that has ~190Mn rows. I've created an Index as below.
CREATE NONCLUSTERED INDEX [IX_ActivityAttributes_namevalue_new] ON [dbo].[ActivityAttributes]
(
[Activity_id] ASC
)
INCLUDE([name],[value]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
GO
And my query is
select
name,
value
from ActivityAttributes
where value = 'Apps'
and [name] = 'New Status'
And my table looks like this,
| name | Activity_id | value | Id |
|---|---|---|---|
| New Status | 140737 | Member | 7051743 |
| New Status | 1512010 | Apps | 705211747 |
| New Status | 1595147 | Apps | 705112750 |
The execution plan I get for this query is,

My problem is why it does Index Scans even though I used the included fields in the predicate.
Thank you in advance.