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

  • Home
  • SEARCH
  • 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 9071089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T17:49:52+00:00 2026-06-16T17:49:52+00:00

I have written a query : SELECT YEAR(Date),SUM(replace(price, ‘,’, ”)) FROM example GROUP BY

  • 0

I have written a query : SELECT YEAR(Date),SUM(replace(price, ',', '')) FROM example GROUP BY year(date); .I am trying to get sum of all price for that year but I am getting an error – no such function : year. Please guide me .I am a noob in db.Thanks again.

12/10/11        377,245.67
12/19/11        5,104,245.00
12/28/11        23,332.98
12/24/10        126,875.21
12/24/10        5,112,225.14
12/23/10        4,552.54
11/24/10        402.82
10/15/09        132,875.32
9/19/09     126,334,123.32
9/23/09     345,887.21
9/29/09     16,520.11
9/28/09     388,902.02
11/12/08        24,622.43
10/25/08        278,916.52
10/12/08        42.22
9/22/08     17,234.01
9/16/08     377,245.67
12/15/07        5,104,245.00
12/18/07        23,332.98
12/19/07        126,875.21
12/22/07        23,332.98
12/28/07        126,875.21

Format I am looking for:

Year(Date)               price
8           438483479.3
9           8774343479
10          5654389.34
11          5654354646
12          23434483479
  • 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-16T17:49:53+00:00Added an answer on June 16, 2026 at 5:49 pm

    try this

    SELECT strftime('%Y', Date),SUM(replace(price, ',', '')) FROM example GROUP BY strftime('%Y', Date);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written below query SELECT DEPT_ID, COUNT(*) AS stud_count FROM TBL_STUDENT_DEPARTMENT_593932 GROUP BY
I have written this query for retrieving data from mysql as below select FeedbackCode,EMailID,FeedbackDetail,
I have written a query in Sql server 2008. select select * from program
I have written a query to Select sales values from a database and apply
I have written a query, and from the date of birth field, and I
I have written the following query: SELECT CLIENT.CLIENTNO, CLIENT.CNAME, TOTALS.TOTAL FROM CLIENT, (SELECT CLIENTNO,
Hi I have written this query SELECT cl_brands.name AS Brand,DATE_FORMAT(cl_doctor_call.date_entered,'%b%y')AS MonthYear, SUM(FIND_IN_SET(CONCAT('^',cl_brands.id,'^'),cl_doctor_call_cstm.brand_discussed_c))AS No_Times_Brand_Discussed FROM
I have written a query to find similar ids based on tags from a
I have written a query to get a code from table A which is
I am using sql reporting and written query SELECT * FROM users WHERE created_by

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.