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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:38:39+00:00 2026-05-30T18:38:39+00:00

Table questions has the question id and title. Table posts has the id, question_id,

  • 0

Table questions has the question id and title.
Table posts has the id, question_id, post.

Is it possible to search for a field in a table using FULLTEXT indexing, and based on the rows value of the question_id field for example, perform a count of posts which have that question id which is being retrieved by sql. JOINS isnt helping me at the moment i’m afraid.

I have discovered the answer, you can select the id AS RESULT_ID and then perform another query with that answer! Thanks for your help, everyone!

  • 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-30T18:38:41+00:00Added an answer on May 30, 2026 at 6:38 pm

    first join things up.

    select q.question_id, q.title
    from question q, post p
    where q.question_id = p.question_id
    

    then filter down to the posts you want

    select q.question_id, q.title
    from question q, post p
    where q.question_id = p.question_id
    and p.post like '%SEARCHTERM%'
    

    (or full text or whatever)

    then count up

    select q.question_id, q.title, count( post_id )
    from question q, post p
    where q.question_id = p.question_id
    and p.post like '%SEARCHTERM%'
    group by q.question_id, q.title
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a question/answer based application I have a Post table in the db
Background I'm using the acts_as_list gem in a rails app my posts table has
Most questions revolving around the title of this post ask about making Hibernate, or
Requirements : I have a table of several thousand questions. Users can view these
I have a query that pulls up questions from one table and answers from
Replaces Question: Update multiple rows into SQL table Here's a Code Snippet to update
This question is similar to GWT Table that supports sorting, scrolling and filtering However
This question is along the lines of HTML table horizontal spacing We have an
a quick question in regards to table design.. Let's say I am designing a
Assuming a table of tags like the stackoverflow question tags: TagID (bigint), QuestionID (bigint),

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.