test_plan_list
Column | Type |
---|---|
id | |
name | |
test_case_count | |
created_by | |
created_at |
SQL DDL
CREATE VIEW test_plan_list AS
SELECT
id,
name,
( SELECT
count(test_case_id) from test_cases
where group_id in (
SELECT
id
FROM
groups g
WHERE
plan_id like '%'||t.id||'%')) as test_case_count,
created_by,
strftime('%d-%m-%Y', created_at) as created_at
FROM test_plan t order by id asc