PS Query & SQL

 View Only
  • 1.  How to Convert Column of IDs to Single Row

    Posted 01-22-2025 09:38 AM

    Thought I would add a couple of items to the growing list of things we know ;)


    Steph

    Converting Column of IDs 

    1. Open Notepad ++ 
    2. Copy and paste column of data into Notepad ++
    3. Search > Replace
    4. Enter in the fields (this will add a single quote comma single quote between every item)
      Find What: (\h*\R)+
      Replace with = ',' 
    5. Add left parentheses and single quote at beginning of string and single quote and right parentheses at end of string
    6. If you add the ANY command to a query a simple copy and paste can be done of the data above. 


    ------------------------------
    Steph Zimmerman
    IT Tech Associate
    Illinois State University
    ------------------------------

    Message from the HEUG Marketplace:
    ------------------------------
    Find, Review, and Engage with Higher Education-focused solution providers, products, and services using the HEUG Marketplace.
    ------------------------------
    HEUG the mic


  • 2.  RE: How to Convert Column of IDs to Single Row

    Posted 01-22-2025 11:34 AM

    Thanks Steph, I added this to the library with title

    Convert column of values to single-quote-comma-separated row with Notepad++



    ------------------------------
    Kevin Shalla
    Director of Technology
    University of Chicago
    ------------------------------

    HEUG the mic