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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:56:20+00:00 2026-05-26T04:56:20+00:00

I have to remove data and count for facebbok like notification. there are 3

  • 0

I have to remove data and count for facebbok like notification. there are 3 tables from where i need to remove data
1st company table where i remove company id.
2nd table is mark_question where i mark the question as read/unread, fav/unfav, notification status
3rd is the forum topic questions where the data regarding the questions asked

1st query is removed on the result of a query where i get a set of values.

select * 
       from gl_mark_ques 
       where user_id =".$this->session->userdata('user_id')." and 
             vs_ques_status=0

after this i get a set of id’s these id’s should not be present in the next query i execute

SELECT uc.*,count(mq.vs_ques_status) 
       from gl_user_comp as uc 
       inner join gl_mark_ques as mq 
             on uc.user_id=mq.user_id and 
                uc.comp_id='$comp_id' 
       where mq.user_id<>".$this->session->userdata('user_id')." and 
             mq.new_ques_id!=2 and 
             mq.vs_ques_status=1

mq.new_ques_id=2 <– here i need to add the id’s i got from first query. There may be only one id or multiple id’s. How do i integrate this kindly help, thanks in advance

  • 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-26T04:56:21+00:00Added an answer on May 26, 2026 at 4:56 am
     SELECT uc.*,count(mq.vs_ques_status) as cnt_status_advhub 
    from gl_user_comp as uc inner join gl_mark_ques as mq 
    on uc.user_id=mq.user_id and uc.comp_id='$comp_id' 
    where mq.user_id<>".$this->session->userdata('user_id')." and 
    mq.vs_ques_status=1 and mq.new_ques_id NOT IN 
    (select new_ques_id from gl_mark_ques where user_id 
    =".$this->session->userdata('user_id')." and vs_ques_status=0)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem where I need to remove all code and triggers from
I have xml data that is retrieved from a server and I need to
i have a table array dynamically generated from a data query and stored in
I use a form where i have listed the data from database like title,
I have to remove a branch from svn history for good. Normally I would
say I have a string like so Testing How could I have it remove
I am having on xml from which i have to remove the one book
Why isn't Collection.remove(Object o) generic? Seems like Collection<E> could have boolean remove(E o); Then,
I have two functions to add and remove table rows that contain a form
I have an event handler that will remove an element from a list of

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.