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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:49:39+00:00 2026-06-07T16:49:39+00:00

My statement is correct missing one Column, but it does not insert the hashtag

  • 0

My statement is correct missing one Column, but it does not insert the hashtag from table trending_topics into the rss table based on order.

Any adjust can help me with my statement.

INSERT INTO rss (id,hashtag,total)
SELECT
  hashtag,
  SUM(count) AS total
FROM `trending_topics`
WHERE lang=0
  AND hashtag !=     ''
  AND date >= date_sub(left(now(), 10), interval 1 day)
GROUP BY hashtag order by total desc;;

My insert into table (rss) looks like:

  id  hashtag  total
  1    null    55
  2    null    22
  • 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-07T16:49:40+00:00Added an answer on June 7, 2026 at 4:49 pm

    If the datatypes and your example sql etc. are correct (and there is a hashtag returned by the select) then the following should work (remove the id in the insert into statement)

    INSERT INTO rss (hashtag,total)
    SELECT
      hashtag,
      SUM(count) AS total
    FROM `trending_topics`
    WHERE lang=0
      AND hashtag !=     ''
      AND date >= date_sub(left(now(), 10), interval 1 day)
    GROUP BY hashtag order by total desc;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I am inserting a string into a table as follows: table.insert(tbl, mystring) and
I have to insert many product value records into an Oracle table. I get
Is this statement correct syntactically: $query = SELECT matric_no session course_name FROM main_table session
If the statement above is correct, then why when I use reflector on .Net
I used the SELECT COUNT(*) to check my WHERE statement and got the correct
I am looking at code which has the correct using statements declared but yet
Statement st=conn.createStatement(); String sql=SELECT a.ID,a.A_TEXT,a.B_TEXT,a.C,a.D_TO_E,a.F_TEXT,a.G,a.INTIME,b.EXIT_TIME FROM tm_A a LEFT JOIN tm_B b ON a.ID=b.ID
I'm just now starting to dive into IF statements in R . From what
In H&S5 I encountered the most bizarre switch statement (8.7.1, p. 277) not using
I'm pretty certain I'm missing something really obvious here but this seems quite bizarre.

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.