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.
------------------------------