Learn SQL and go through database reference materials to understand how tables are organized in QC.
In FROM clause, if more than one table is mentioned, it is known as a join. While joining tables, a condition needs to be mentioned based on which tables should be joined. Ignoring that condition will result in junk data (each row in first table will be joined with every row in second table).
SELECT CY_CYCLE Test_Set, TS_NAME Test_Name,TC_PLAN_SCHEDULING_DATE Planned_Execution,
TC_TESTER_NAME as Tester, CF_ASSIGN_RCYC
FROM TESTCYCL, CYCLE, CYCL_FOLD, TEST
WHERE CF_ASSIGN_RCYC = 38 and CY_FOLDER_ID = CF_ITEM_ID and CY_CYCLE_ID = TC_CYCLE_ID and TC_TEST_ID = TS_TEST_ID
In FROM clause, if more than one table is mentioned, it is known as a join. While joining tables, a condition needs to be mentioned based on which tables should be joined. Ignoring that condition will result in junk data (each row in first table will be joined with every row in second table).
SELECT CY_CYCLE Test_Set, TS_NAME Test_Name,TC_PLAN_SCHEDULING_DATE Planned_Execution,
TC_TESTER_NAME as Tester, CF_ASSIGN_RCYC
FROM TESTCYCL, CYCLE, CYCL_FOLD, TEST
WHERE CF_ASSIGN_RCYC = 38 and CY_FOLDER_ID = CF_ITEM_ID and CY_CYCLE_ID = TC_CYCLE_ID and TC_TEST_ID = TS_TEST_ID