Hi,
I will do case when in sql. But I will compare the 2 columns and do it.
So if a query is true, this query should work. If the other query is correct, let this query work.
CASE Kode=true
WHEN
THEN
ELSE
END AS Kolon
WHEN
THEN
ELSE
END AS Kolon
WHEN
THEN
ELSE
END AS Kolon
WHEN
THEN
ELSE
END AS Kolon
CASE Kode=false
WHEN
THEN
ELSE
END AS Kolon
WHEN
THEN
ELSE
END AS Kolon
WHEN
THEN
ELSE
END AS Kolon
WHEN
THEN
ELSE
END AS Kolon