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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:34:28+00:00 2026-06-12T18:34:28+00:00

I just started taking a database class and we’re learning SQL. I have a

  • 0

I just started taking a database class and we’re learning SQL.

I have a table that has several columns. The last two columns are the first name and the last name of a person. No two people have the same last name, and I want to sort the table by the person’s name (first and last) and show something like :

Trainee FirstName || Trainee LastName || Trainer FirstName || Trainer LastName || 
AAA               || BB               || Tom               || Banks            ||
Test              || Test             ||                   ||                  ||
CCC               || DD               ||                   ||                  ||
Another           || PERSON           || Susan             || Lee              ||

… etc.

I can get it so the duplicate last names don’t show up by doing :
break on lastname;
select .... order by T.lastname,
but I can’t figure out how to get the first names to not duplicate as well.
Help would really be appreciated, I’ve looked around online and I’ve been able to do a lot of the other exercises, but I can’t figure out how to do this one.

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

    Are you supposed to solve this problem by limiting the output or by preventing duplicates from entering the database in the first place?

    If you are trying to limit the output, look into the DISTINCT operation of SELECT.

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

Sidebar

Related Questions

I just started taking a class on C# .NET and have found it really
just started dabbling in Android and have been told that Strings shouldnt be hard
I just started taking a C++ class at my local college and the instructor
I've just started a job and have identified an issue in which the database
I started making my app last year, but have recently had that HOLY ****
Ok, So, I just started screwing around with threading, now it's taking a bit
Just started learning algorithms. So the exercise is to find if statement is always/sometimes
Just started mongo and started having issue with querying already. i have a collection
I've just started a new job and noticed that the analysts computers are connected
I started taking tenouk's tutorials for socket programming in windows environment. I currently have

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.