We've had this expression that we thought was necessary to get the Fund Code for our SF item types in a query, probably since implementation in 2002:
regexp_replace(LISTAGG(G.FUND_CODE , ',') WITHIN GROUP (ORDER BY G.FUND_CODE ),'([^,]+)(,\1)*(,|$)', '\1\3')
Hats off to all of you who know what that means just by looking at it!
When ChatGPT put that into English for me, it was obvious that the expression isn't useful for how we are using the query now.
This expression concatenates all FUND_CODE values in sorted order for each group, then removes any duplicate codes, producing a clean, comma-separated list of unique FUND_CODEs.
------------------------------
Susan Gutierrez
FA and SF Functional Analyst
Sonoma State University
------------------------------
Message from the HEUG Marketplace:------------------------------
Find, Review, and Engage with Higher Education-focused solution providers, products, and services using the
HEUG Marketplace.
------------------------------
Original Message:
Sent: 09-25-2025 04:52 PM
From: Sarah Hoegger
Subject: Are you using AI at all with your query/SQL?
You raise a great point, Enrique! AI tools are also great for explaining something that gets handed to you. In my experience, Gemini particularly doesn't want to just revise the SQL but explain why it's doing what it's doing. I've definitely learned some things!
-- Sarah
-- Sarah Hoegger
Business Analyst | ASR-IT, Student Financials
Office of Undergraduate Education | University of Minnesota
Original Message:
Sent: 9/25/2025 4:50:00 PM
From: Enrique Pizana
Subject: RE: Are you using AI at all with your query/SQL?
Yes, I will ask Microsoft Copilot for help with SQL. I'll copy a complex SQL I don't understand and ask it to break it down for me. Sometimes I ask it to modify a SQL for me. I know what I want to do, but maybe I don't know the syntax for it. I am not limited to PS Query. It is helpful.
------------------------------
Enrique Pizana
PeopleSoft Developer and Support Engineer
Washington State Board for Community and Technical Colleges
------------------------------
Message from the HEUG Marketplace:
------------------------------
Find, Review, and Engage with Higher Education-focused solution providers, products, and services using the HEUG Marketplace.
Original Message:
Sent: 09-23-2025 09:32 AM
From: Dana Pawlowicz
Subject: Are you using AI at all with your query/SQL?
I used chatgpt for the first time today to fix my PS Query expression and was just wondering if you guys have done this at all? I had a LISTAGG expression and it was throwing a "string concatenation too long" error so I went into chatgpt and said, this is my expression and this is the error I'm getting, can you fix it?
And it did. It added "ON OVERFLOW TRUNCATE WITHOUT COUNT" which I can honestly say I've never used before.
This query is a bit of a beast and runs long so I might run it in batch, but I am now getting this data back without an error message so I'm happy with the results.
So, have you used AI/chatGPT (something else?) in your SQL world?
------------------------------
Dana Pawlowicz
Business Systems Analyst Sr - ERP
University of Cincinnati
------------------------------
Message from the HEUG Marketplace:
------------------------------
Find, Review, and Engage with Higher Education-focused solution providers, products, and services using the HEUG Marketplace.
------------------------------