Hi all,
I'm having troubles creating a query, I hope that I explain it good and you guys can assist me:
Example Table:
As you can see I have EntityKeyID multiple times this represents 1 Flight which has different Statuses (InstanceNames)
Now I need to query this table, to show me only EntityKeyID's where the InstanceName 'FuelArrival' is not contained.
So if I run this query I don't want to see any of the other lines with the same EntityKeyID.
What I tried is this:
SQL
SELECT*fromdbo.vw_EntityServices_LegswhereInstanceNamein(selectA.InstanceNamefromdbo.vw_EntityServices_LegsAwhereA.InstanceNamenotlike'Fuel - Arrival')
but this just removes the one Row which has the InstanceName 'Fuel -Arrival' all the other rows with the same EntitiyKeyID are still shown.
I hope someone can save my life here I'm trying since hours but can't...