Skip to Content
author's profile photo Former Member
Former Member

Regarding Query Generator One Column Extra

hi.

i have one requirement

ie.

normally

sleect ordr.cardcode from ordr

i put this query in query generator

so, the result will come like


s

y

x

p


but what i need is, i want one column extra each time the value of this column is 'co'

like


co s

co y

co x

co p


is it possible...


i need your valuable suggestions..







Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on May 19, 2014 at 07:35 AM

    Hi,

    Try this:

    SELECT 'CO' + T0.[CardCode] FROM ORDR T0

    Thanks & Regards,

    Nagarajan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 19, 2014 at 07:44 AM


    Dear Srinivas,

    if you Need the column Extra

    try this also

    SELECT 'CO' , T0.[CardCode] FROM ORDR T0

    Regards

    Ajith

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 19, 2014 at 08:28 AM

    Hi Srinivas,

    Yes, Possible. Please try below.

    SELECT 'CO' as 'CO', T0.[CardCode] FROM ORDR T0

    Hope this help 😊

    --

    --

    Regards::::

    Atul Chakraborty

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.