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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:12:57+00:00 2026-06-07T05:12:57+00:00

My Google-Fu is weak on this one, so mayhaps you all can help. If

  • 0

My Google-Fu is weak on this one, so mayhaps you all can help.

If you want to select multiple columns, you can do…

SELECT 'something' as userName, 'fooBar' as typicalSaying

And you’d get:

+----------------+-----------------+
|    userName    |   typicalSaying |
+----------------+-----------------+
|   something    |    fooBar       |
+----------------+-----------------+

However, how do I do the above with rows?

EG:

SELECT someLine, effy.text from table
LEFT JOIN (SELECT 'a' as text UNION 'b' UNION 'c') as effy 

EDIT:
To get a result like..

+----------------+--------------+
|    someLine    |   effy.text  |
+----------------+--------------+
|   entryA       |    a         |
|   entryA       |    b         |
|   entryA       |    c         |
+----------------+--------------+
  • 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-07T05:12:59+00:00Added an answer on June 7, 2026 at 5:12 am

    You were almost there:

    SELECT someLine, effy.text
    FROM table
    LEFT JOIN (
      SELECT 'a' as text
      UNION ALL
      SELECT 'b'
      UNION ALL
      SELECT 'c'
    ) as effy 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My Google-Fu is weak today, hopefully this is a simple thing. I need to
I've been searching for this for a while, and either my google-fu is weak
Google calendar throws at me rfc3339, but all my dates are in those milliseconds
Google Maps itself can sort of Highlight areas, when you are searching for example
Google suggests to create for each image 4 different versions - one for each
Google doesn't help me find a solution of my problem. (As far I was
My Google-fu is weak and so I turn to the hive mind... I have
i googled for an hour now but maybe my Google-Fu is just too weak,
I have a property that looks like this: @property (weak, nonatomic) id<NavigationControllerDelegate> delegate; But
I should probably be able to find an answer to this but my Google-fu

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.