Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9034609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T08:31:47+00:00 2026-06-16T08:31:47+00:00

I have a client that wants a year end report that shows the data

  • 0

I have a client that wants a year end report that shows the data in its respective month column like this:

Income               Jan    Feb    Mar   ..... Dec
   Rent              10.00  10.00  10.00       10.00

Expenses
   Landscape         5.00   3.00   2.00        5.00

Net Income           5.00   7.00   8.00        5.00

All the transaction data is stored in one table like this

Create Table transaction(
   id int,
   date DATE,
   amount DECIMAL 10,2,
   account_type INT)

I’m not quite sure how to begin this. I’m using iReport as the report designer and mysql as the database. Is there an efficient way using SQL to get something like this? Is it better for me to do something like this SELECT date FROM transaction WHERE date between 1-01-2012 and 12-31-2012 to give me the results, then use my iReport to somehow split out the data into columns like the client wants?

I’m wondering what the best approach is and how I could accomplish this.

Thanks for your help and ideas.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T08:31:48+00:00Added an answer on June 16, 2026 at 8:31 am

    Smit and Sam, thanks for your replies, I ended up using portions of both of your SQL examples, however, I ended up taking those examples and ultimately outputting the report in iReport. I had to create a column for each month and then used month(date) to separate out each month due to the requirements. So when the report ran it put each transaction under the month column for which it belonged to.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a client that wants a custom importer. The data source is an
I have a client that wants to create a Facebook-like experience on her website
I have a client that wants an app that will detect the persons location
I have a client that wants their tab application to be searchable in Facebook.
I have a client that wants audio to play while the user is browsing
I have a client that wants to have a custom form added as a
I currently have a client that wants me to 'abstract' out a domain model
We have a client that owns Google Apps Business Edition account and wants to
I have a table, it looks something like this: id year effective price 1
I have a client that wants a scrollbar on top of their content. So

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.