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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:25:14+00:00 2026-06-09T05:25:14+00:00

First off, sorry about the goofy question. What I’m looking for is to return

  • 0

First off, sorry about the goofy question.

What I’m looking for is to return a “dataset” of hard-coded data. The reason why I need this or whether it’s a good solution or not is irrelevant. I’d just like to know how I can do it.

I basically want to return, via a SELECT, this “fake” dataset.

DisplayText  Value
-----------  -----
Yes          true
No           false

I’d rather avoid going through creating a table, populating it and then querying it if can. I’m thinking there’s a clever way of doing this through the SELECT, but I haven’t the skillz to do it.

Any help would be appreciated. Yes, I know this is goofy. Let’s move past that. =)

  • 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-09T05:25:18+00:00Added an answer on June 9, 2026 at 5:25 am

    It’s not “clever” but this should work:

    Select 'Yes' as DisplayText, 'true' as Value
    UNION
    SELECT 'No', 'false'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First off, sorry if this is a stupid question. I installed code::blocks to try
First off, I'm sorry for asking such a simple question in such a sophisticated
First off, sorry about the long post. Figured it's better to give context to
First off, sorry for the cryptic question. My team is currently using Selenium 2.0rc3
First off, sorry for the title, it was hard to come up with a
First off, sorry if this is a near enough duplicate. I've found this question
First off, I'm sorry if the title doesn't explain this very well. I'm looking
First off, sorry about the title. I wasn't really too sure how to phrase
Let me first start off, sorry for the confusing title. I didn't know how
First off, the function in question. bool Animation::loadFrames() { sf::Texture frame[frameCount]; std::string pathToFrame; for(int

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.