in clause to match all items


    select * from ItemsPackage where ItemId IN (3,5,2)

This will be match as OR Expression
to make it get ALL item Id you can make it :

    select PakageId
    from ItemsPackage 
    where ItemId in (3,5,2)
    group by PakageId
    having count(PakageId) = 3 -- Count of In clause (3,5,2)

Comments

Popular posts from this blog

Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=xx.0.0.0, Culture=neutral, PublicKeyToken='xxx' or one of its dependencies.

C# Crop white space from around the image

The specified version string contains wildcards, which are not compatible with determinism.