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 5838707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:29:48+00:00 2026-05-22T11:29:48+00:00

I have a Table that has (names, money, date) And I would like to

  • 0

I have a Table that has (names, money, date) And I would like to get the (name, money of month 1, money of month 2 and so on to month12)

How to do it?

I know how to extract the month from the date;

  • 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-05-22T11:29:48+00:00Added an answer on May 22, 2026 at 11:29 am

    First query:
    name, iif(month(date) = 1, money, 0) AS m1, and so on up to m12

    Second query:
    name, sum(m1) AS mo1, and so on up to mo12
    group by name

    Limitations: only one insert per month and the query must have an year filter that selects ONLY 1 YEAR.

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

Sidebar

Related Questions

i have a table that has event name and event date. if i want
I have a table that has column names like 25, 50, 100, etc.. When
I have a user table 'users' that has fields like: id first_name last_name ...
I have a table called excel that has 3 columns, name , id ,
I have a lookup table that has a Name and an ID in it.
I have a table name Discount that has the following schema: PK DiscountID int
I have one table in my Database that has column names: buildNumber , result
I have a table that has a column called Name. It has data: John
My today's problem is that I have a table that has rows like that:
I have a table that has column names similar to ADDRESS, OLD_ADDRESS, CITY, OLD_CITY,

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.