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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T12:11:58+00:00 2026-06-06T12:11:58+00:00

i have four tables user-question contains two columns: questionID, userID, the questions that the

  • 0

i have four tables

  1. user-question contains two columns: questionID, userID, the questions that the user answers.
  2. question-cell contains two columns: questionID, cellID the questions that will be asked in cell.
  3. question-place contains two columns: questionID, placeID the questions that will be asked in place.
  4. question contains two columns: ID, text

i want to know the number of cells question that the user (userID=3) has got

i think like this

select questionID 
FROM `question-cell` 
WHERE questionID in 
    (select questionID 
    from `user-question` 
    WHERE userID = 3 AND competitionID = 4 
    group by competitionID, userID)

and i want to know if that is write , because i am working on Notebad

  • 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-06T12:12:00+00:00Added an answer on June 6, 2026 at 12:12 pm

    I think you’re looking for the following query. Group Bys will not work in sub queries and you had quotes in places where you shouldn’t have them.

    select count(*) FROM question-cell WHERE questionID in (select questionID from 
    user-question WHERE userID = 3 AND competitionID = 4)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my table accounts I have four columns like user, pass, column1, column2 I
I have four tables: Users PrivilegeGroups rdPrivileges LinkPrivilege ----------- ---------------- --------------- --------------- userId(pk) privilegeGroupId(pk)
I have two tables: 1. tableA is a list of records with many columns.
I have created the SQL script below that creates four tables and inserts data
I have four DB tables in an Oracle database that need to be rewritten/refreshed
I have four tables, USER, CONTACT, CONACT_TYPE, and USER_CONTACT USER_CONTACT stores all of the
Let's say I have four tables: PAGE , USER , TAG , and PAGE-TAG
i have four tables alert: * monitor_id * group_id group: * group_id user: *
I have four tables, user , user_billingprofile , user_shippingprofile , and user_address . user:
I have four classes : User, Attribute, Attribcategory, Attribvalue. and four tables : tbl_user,

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.