Skip to content
Advertisement

Bind where clause to a column

Input:

When Process ID = 610

ID Value
50 2
60 16
// 2
80 128

I have two separate queries that fetch two values from the same table so I am trying to merge them together instaed of calling the table twice.

When this is run the where clause applies to [value1] and nothing is set for [value2] I am trying to make a different where clause to apply to [value2] where the [stepid] is a different number like:

This is quite new to me and haven’t managed to find a way yet. Any help is appreciated.

Output:

Output

Advertisement

Answer

Do you need in this:

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement