deadsploid Posted February 9, 2023 Share Posted February 9, 2023 Hello, when I load a SQL query into a jasper studio report, the columns in which Sum, convert, MIN, MAX are used are either empty, or it says which column is counted. How to fix it? Link to comment Share on other sites More sharing options...
Solution jgust Posted February 9, 2023 Solution Share Posted February 9, 2023 Assuming the SQL is correct you should provide an alias for each column by adding "as" followed by the alias name.select convert(varchar(10), MIN(DateBeginPeriod), 103) as StartDate , convert(varchar(10), MAX(DateEndPeriod), 103) as EndDatefrom UnmeteredConsumption[/code] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now