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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T09:36:14+00:00 2026-05-21T09:36:14+00:00

I have a column which needs to be populated with ture/false/(N/A) data. This column

  • 0

I have a column which needs to be populated with ture/false/(N/A) data. This column is part of a select statement
So, How can i achieve this?

SELECT distinct 
program_id, 
prog_name,
Eitc_Active_Switch as Prog_Status,
progmap.client_id,
progmap.ORG_ID,
sec.calwinexists_ind as interface,
sec.Client_name
FROM ref_programs prog (nolock)
LEFT OUTER JOIN ref_county_program_map progmap (nolock)         
ON progmap.program_id=prog.prog_id AND progmap.CLIENT_ID=prog.CLIENT_ID 
INNER join sec_clients sec (nolock)
on sec.client_id=progmap.Client_id

‘sec.calwinexists_ind as interface’ is the column. the true/false should be displayed for only three records (AMC, AMBD, ACMNI) and ‘N/A’
for the rest of the records

Can anyone help me?

  • 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-21T09:36:15+00:00Added an answer on May 21, 2026 at 9:36 am

    You should use CASE expression.

    Example:

    SELECT name,salary,
    CASE    
    WHEN  salary <= 2000 THEN 'low'
    WHEN  salary > 2000 AND salary <= 3000 THEN 'average'
    WHEN  salary > 3000 THEN 'high'
    END AS salary_level
    FROM employees
    ORDER BY salary ASC
    

    And in this way you should adapt your query to match your needs.

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

Sidebar

Related Questions

I have a simple 3-column ListView. This control is programatically populated with data from
I need a select from table which does not have column that tells when
I have a column which is of type nvarchar(max). How do I find the
I have a column which has a datatype : datetime. But now i want
In SQL Server I have a DATETIME column which includes a time element. Example:
I have a Template Column under which I have Placed a Dropdownlist. Now I
I have a table with a binary column which stores files of a number
Hi I want to have two tables each have an INT id column which
I have a string column in a database table which maps to an Enum
I have a table of users which has a username column consisting of a

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.