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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:05:13+00:00 2026-06-14T09:05:13+00:00

Users id, first, last 1 John Johnsson 2 Mark Jackson 3 Chris Lager Tags

  • 0

Users

id, first, last
1   John   Johnsson
2   Mark   Jackson
3   Chris  Lager

Tags

id, userID, tag,       pass,        active
1   2       42564eb6   <some hash>  1
2   1       524846b6   <some hash>  0

What i want to output is this combination of data:

Tags

ID(from user), First name, Last name, Tag number, Password hash, Active
1              John        Johnsson   524846b6    <hash>         0
2              Mark        Jackson    42564eb6    <hash>         1
3              Chris       Lager                                  

So basically, I want a table with users, ordered by their ID’s, with the tag number, pass and active fields if applicable

I’m using webbased databases with PHPMyAdmin on an external server, and I am querying on it in Java through JDBC.

My question: what query do I need to use for this? I’m not really sure what commands such as Group By or Order By will do with my data, which comes in as a ResultSet object in Java.

  • 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-14T09:05:15+00:00Added an answer on June 14, 2026 at 9:05 am

    I think it’s a LEFT JOIN, eg:

    select
    u.id,
    u.first as [First Name],
    u.Last as [Last name],
    t.tag as [Tag Number],
    t.pass as [Password],
    t.Active
    FROM [user] as u
    LEFT JOIN [Tags] T ON U.id=T.UserId
    ORDER BY u.[id] ASC
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

SELECT DISTINCT u.first, u.last FROM users u, user_friends f WHERE f.userId = 1 AND
the row source for a listbox looks like this: SELECT users.id, users.first, users.last, chavrusas.luser_type
Given the following example data: Users +--------------------------------------------------+ | ID | First Name | Last
I did this: [User.first, User.last].to_xml and got this: <users type=array> <user> <created-at type=datetime>2010-03-16T06:40:51Z</created-at> <id
I have an array structured like this: $arrNames = array( array('first'=>'John', 'last'=>'Smith', 'id'=>'1'), array('first'=>'John',
I want to create a simple user registration form with First / Last name,
I would like to display the first and last name of the authenticated user.
I have 4 tables: Users record_id first_name last_name 1 John Smith 2 Jim Brown
I have a table called Users that stores generic user information (user id, first,
Below is my code. I want to retrieve all the users whose first name

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.