Hi community i struggled a lot to try to find a root cause with no success. I try to count number of test failed , number of test succees for requirements.
I m using table transfomer to do some sl request on a table
I have the following request :SELECT T1.'Requirement',
Hi @renaud staessens,
Please use the auto complete hints given by the Table Transformer macro while typing the SQL query. The first thing that I saw were the 'T1.TestStatut' parts. It is not correct in general: T1.’TestStatus’ is a correct variant (the quotes shouldn’t include the T1. part and the column name should be identical to the one that you really have in your table).
Now please try the following SQL query for the case:
SELECT
'Requirement',
COUNT(DISTINCT 'Tests') AS 'Number of Tests',
COUNT(DISTINCT('Bugs')) AS 'Number of Bugs',
COUNT(DISTINCT 'Failed Tests') AS 'Number of Failed Tests'
FROM(
SELECT *,
CASE WHEN 'TestStatus' IS "FAIL"
THEN 'Tests'
END
AS 'Failed Tests'
FROM T1)
GROUP BY 'Requirement'
Hope it helps your case.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.