Hii All,
Faced issue while preview of report data,it's showing null value.
Configured a SQL query for the report format. This query for the calculate total machine working hours during 24 hour cycle.
Problem: As per mentioned below query for fetch total hours without defining the parameter. (Like a StartDate, EndDate) The data is displayed in the output window.
Configure a SQL query as per below.
SELECT Min(sqlt_data_2_2024_10.intvalue) AS Min_intvalue,
Max(sqlt_data_2_2024_10.intvalue) AS Max_intvalue,
Max(sqlt_data_2_2024_10.intvalue) - Min(sqlt_data_2_2024_10.intvalue) AS
Total_Hour
FROM sqlt_data_2_2024_10
WHERE sqlt_data_2_2024_10.tagid = 889
Defined the query data.
But, when defined a StartDate and EndDate parameter, displayed data a null value.
SELECT Min(sqlt_data_2_2024_10.intvalue) AS Min_intvalue,
Max(sqlt_data_2_2024_10.intvalue) AS Max_intvalue,
Max(sqlt_data_2_2024_10.intvalue) - Min(sqlt_data_2_2024_10.intvalue) AS
Total_Hour
FROM sqlt_data_2_2024_10
WHERE sqlt_data_2_2024_10.tagid = 889 AND t_stamp BETWEEN ? AND ?