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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:23:24+00:00 2026-05-26T15:23:24+00:00

I am trying to work on a query where my database schema looks like:

  • 0

I am trying to work on a query where my database schema looks like:

MEMBER TABLE

member_id----------member_name--------member_nickname

    1              prashant             prash
    2              christopher          chris
    3              nick                 nick
    4              harvey               harvey

----------------------------------------------------------

CHECKIN TABLE

checkin_id------------------member_id------------------reg_on

    1                      1             1287713712
    2                      1             1287723999
    3                      2             1287733712
    4                      1             1287735912
    5                      3             1287803712
    6                      2             1287833712

Now when I select distinct users, I want to join both tables to see the following result:

member_id----------------member_name---------------reg_on

   1------------------------------prashant -----------------1287713712

   2------------------------------christopher---------------1287733712

   3------------------------------nick------------------------1287803712

Please Help!!!

  • 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-26T15:23:25+00:00Added an answer on May 26, 2026 at 3:23 pm

    Edit Don’t know what I was thinking by overcomplicating my previous answer…

    This is a simple JOIN with an aggregate:

    SELECT
      m.member_id,
      m.member_name,
      MIN(c.reg_on) AS reg_on
    FROM
      MEMBER m JOIN CHECKIN c ON m.member_id = c.member_id
    GROUP BY m.member_id, m.member_name
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to work out a query that self join itself on a table
I'm trying to query a hierarchy of data in a single database table from
I'm trying to create a table of information in a database query using Zend
I am trying work out with MERGE statment to Insert / Update Dimension Table
I have my database query currently set up like so: Edit, By the way
I'm trying to use Entity Framework to query database and I have following code
i am trying to do a query of my database for a string lets
I am trying to add this query to database and I can't get it
Pulling my hair out, trying to figure out what's wrong here. Create table query:
My query looks like this: var products = from p in Products select new

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.