Newbie - Edit SQL - InfoPath Dev
in

InfoPath Dev

Newbie - Edit SQL

Last post 08-17-2009 01:45 PM by Lolly. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-17-2009 07:48 AM

    • Lolly
    • Not Ranked
    • Joined on 08-17-2009
    • Posts 21

    Newbie - Edit SQL

    I want to edit the SQL to concatenate lastName and fName so it would be Doe, John.  Is that possible and what is the correct syntax?

    Current Query:

    select "empID","fName","lName","employmentStatusCode" from "dbo"."Employee" as "Employee"

  • 08-17-2009 11:24 AM In reply to

    Something like:

    select "empID","fName","lName","employmentStatusCode", "fName" + ' ' + "lName" AS FullName from "dbo"."Employee" as "Employee"

    You'll get an InfoPath warning that the SQL can't be represented as a tree, tell the warning box you are okay with that. You'll also get a warning about potentially unsafe queries, you can tell InfoPath that you are okay with that too....

    Hilary Stoupa

  • 08-17-2009 01:45 PM In reply to

    • Lolly
    • Not Ranked
    • Joined on 08-17-2009
    • Posts 21

    Thank you very much.  Works great now.

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.