0

I have this query:

        SELECT 
             concat(b.Name, " -FirstName") as Name                
        FROM table b
        UNION 
        SELECT 
             concat(b.Name, " -SecondName") as Name                
        FROM table b

The result is :

Frank -FirstName, Frank -SecondName

This works fine, but i think that could exist another way to do this without union.

Edit: I need two rows with different results from same field value.

Row1 = Frank -FirstName
Row2 = Frank -SecondName

Edit2: I can't change the BD too much. I will work with a unique row. Thanks to all!

Jm.ortega
  • 47
  • 10

0 Answers0