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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:32:44+00:00 2026-05-12T15:32:44+00:00

Given the following HBase schema scenario ( from the official FAQ )… How would

  • 0

Given the following HBase schema scenario (from the official FAQ)…

How would you design an Hbase table
for many-to-many association between
two entities, for example Student and
Course?

I would define two tables:

Student: student id student data
(name, address, …) courses (use
course ids as column qualifiers here)

Course: course id course data (name,
syllabus, …) students (use student
ids as column qualifiers here)

This schema gives you fast access to
the queries, show all classes for a
student (student table, courses
family), or all students for a class
(courses table, students family).

How would you satisfy the request: “Give me all the students that share at least two courses in common“? Can you build a “query” in HBase that will return that set, or do you have to retrieve all the pertinent data and crunch it yourself in code?

  • 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-12T15:32:45+00:00Added an answer on May 12, 2026 at 3:32 pm

    The query as described is better suited to a relational database. You can answer the query quickly, however, by precomputing the result. For example, you might have a table where the key is the number of classes in common, and the cells are individual students that have key-many classes in common.

    You could use a variant on this to answer questions like “which students are in class X and class Y”: use the classes as pieces of the key (in alphabetical ordering, or something at least consistent), and again, each column is a student.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given the following: List<List<Option>> optionLists; what would be a quick way to determine the
Given the following: declare @a table ( pkid int, value int ) declare @b
Given the following: &row->count Would &(row->count) be evaluated or (&row)->count be evaluated in C++?
given the following tables, how would I go about finding the most common ip
Given following table: rowId AccountId Organization1 Organization2 ----------------------------------------------- 1 1 20 10 2 1
I need some help with modeling in Cognos Framework Manager 8.4. Given following schema
Given following Ruby statements: (Read input and store each word in array removing spaces
Given the following XML: <current> <login_name>jd</login_name> </current> <people> <person> <first>John</first> <last>Doe</last> <login_name>jd</login_name> </preson> <person>
Given the following example, why do I have to explicitly use the statement b->A::DoSomething()
Given the following XML structure <html> <body> <div> <span>Test: Text2</span> </div> <div> <span>Test: Text3</span>

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.