Forum Replies Created

Viewing 15 posts - 61 through 75 (of 320 total)

  • Reply To: Concat XML field values ?

     

    Thanks Drew,

     

    Works perfectly , I'm sorry, I forgot to add the there is a "Text" field if Checked=true.

    I tried to add it in , but not getting the output I...

  • Reply To: Concat XML field values ?

     

    Hi Eirikur,

    Thanks for getting back

    So in the example , the output for "Purpose of  Request" would be " 'New Bill, Additional Spending money/Leisure' since only those two are checked=true.

    But all...

  • Reply To: Rendering in XML ?

    Hi

    So here is some sample code for the first 15 fields

    and attached  is a sample of the entire XML

    Thanks

    SELECT People.[First Name],
    ...
    Attachments:
    You must be logged in to view attached files.
  • Reply To: Rendering in XML ?

    Thanks Lynn,

    let  me work on this and I'll send a better sample

     

  • Reply To: Rendering in XML ?

    Sorry for being SO vague, just wasn't sure what to ask....

    So the XML, I posted was part  of a layout I received for data to send on a monthly basis...

  • Reply To: ? List all tables used in stored procedures and views ?

    Sorry

     

    Also alot of tables are being called from another Database

  • Reply To: Another XML ?

    Ahh got it!

    Works as I need . I wrote the data out to a temp table using a cross apply then chose the values as needed .

    Thank you

     

  • Reply To: XML Data singleton value not fixed????

    Thank You

    Eddie and Drew...

    I appreciate the info and the learning experience....

     

  • Reply To: XML Data singleton value not fixed????

    Hi Eddie

     

    Thanks so much, I get the logic, but not to sound dumb...

    How do I incorporate this into a select statement ?

    where 'data' is coming from xdoc table

    FROM data.dbo.CalendarEvents AS...

  • Reply To: XML Data- Data.exist ????

    Got it...

    needed Double quotes encasing the double quotes in the text ...

     

    Thanks for your time...

     

     

    CASE

    WHEN x.Data.exist('Data/Treatment_x0020_Focus/PACT_x005F_x0020_Service_x005F_x0020_Note_Treatment_x0020_Focus_Option

    [Name="N/A = Skip to ""Other Information"""][Checked="true"]') = 1

    THEN 'Yes'

    END AS [NA],

  • Reply To: XML Data- Data.exist ????

    This is the XML data

    </Location>

    <Treatment_x0020_Focus>

    <PACT_x005F_x0020_Service_x005F_x0020_Note_Treatment_x0020_Focus_Option>

    <Name>N/A = Skip to "Other Information"</Name>

    <Checked>true</Checked>

    </PACT_x005F_x0020_Service_x005F_x0020_Note_Treatment_x0020_Focus_Option>

  • RE: Case in a where clause?

    ScottPletcher - Tuesday, February 5, 2019 12:35 PM

    CASE must evaluate to a single value.  For this, you need to use "standard" WHERE...

  • RE: Split comma delimited field?

    Lynn Pettis - Wednesday, October 24, 2018 1:57 PM

    ScottPletcher - Wednesday, October 24, 2018 1:51 PM

    October 24, 2018 at 1:59 pm

    #2011006

  • RE: Split comma delimited field?

    Thanks Scott

    That works great!!

  • RE: XML Field index ??

    Hi Eddie
    Sorry, one more question on this 
    Can I grab the "Name" field if the "Checked" field is 'True'?
    if the field is setup as a for only one...

Viewing 15 posts - 61 through 75 (of 320 total)