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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:26:16+00:00 2026-05-31T20:26:16+00:00

I’ve have gone through stackoverflow for days and googled a lot but can still

  • 0

I’ve have gone through stackoverflow for days and googled a lot but can still find the solution.
I have 2 tables profile and qualification
in the table profile

  pro_id  surname    firstname   
--------  --------  ------------

   1  John James           
   2  King Fred        
   3  Paul Smith      
   4  Cindy Hayes

Qua_id  Degree   School   Year
------  ------   ------   -----
   1  MBA  Wharton university 2002          
   1  LLB  Yale University 2001    
   2  BSc  Covington University 1998
   2  BEd  Kellog University 1995
   2  Msc  MIT 2011
   3  MBA  Havard Business School 2002          
   3  MSc  Yale University 2012     
   4  BSc  University of Edinburgh 2010
   4  BA   University of Liverpool 2009    

Now what i want to achieve is this

1  John James MBA  Wharton university 2002,  LLB  Yale University 2001
2  King Fred  BSc  Covington University 1998, BEd  Kellog University 1995, Msc  MIT 2011
3  Paul Smith MBA  Havard Business School 2002, MSc  Yale University 2012  
4  Cindy Hayes BSc  University of Edinburgh 2010, BA   University of Liverpool 2009 

But what i currently have is :

1  John James MBA  Wharton university 2002  
1  John James LLB  Yale University 2001 
2  King Fred  BSc  Covington University 1998 BEd  
2  King Fred Kellog University 1995
2  King Fred Msc  MIT 2011
3  Paul Smith MBA  Havard Business School 2002
3  Paul Smith MSc  Yale University 2012  
4  Cindy Hayes BSc  University of Edinburgh 2010
4  Cindy Hayes BA   University of Liverpool 2009   

Here is my code

 Select pro_id, surname, firstname concat(degree,school,year) as qual from profile,qualification Where profile.proid=qualification.qua_id
  • 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-31T20:26:17+00:00Added an answer on May 31, 2026 at 8:26 pm
    Select pro_id, surname, firstname, group_concat(degree,school,year) as qual
    from profile
    left join qualification
    on qualification.qua_id = profile.pro_id
    group by qua_id
    

    your filed names look a little odd – qua_id should perhaps be profile_id (which I think shoudl really be user_id – ie they should both be a user id and foreign keys to a user table).

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

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a French site that I want to parse, but am running into
Seemingly simple, but I cannot find anything relevant on the web. What is the
I am trying to loop through a bunch of documents I have to put
I have just tried to save a simple *.rtf file with some websites and
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I want to count how many characters a certain string has in PHP, but
this is what i have right now Drawing an RSS feed into the php,

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.