Skip to content

Tag: oracle

How to sum and count in grouping in sql

I have tables like below. I would like to grouping and counting by referreing to its score. First, I would like to sum score by customer It achived by group by method. second, I would like to count by binning following band. I couldn’t figure out how to count after grouping Are there any way to achieve …

CONVERT_TZ() equivalent in Oracle

I am trying to convert a timestamp value of the format YYYY-MM-DDTHH24:MI:SS to another timezone value YYYY-MM-DD HH24:MI:SS.SSSSSS. I was able to do this in MySql using the CONVERT_TZ(date, from_tz, …

NetSuite ODBC Limitations

I’m trying to find out if anyone is aware of any list of the limitations of NetSuite’s ODBC SuiteAnalytics Connect Service being used through OpenQuery? I’ve been running into many problems with some of my more complex queries failing for no apparent reason, and I finally started narrowing i…

Sum REGEXP_SUBSTR resulting ORA-01722: invalid number error

I’m creating a reconciliation report where I basically just want to know document value of each sent batch. Batch ID is in its own column and sent data is in one column and it’s comma separated, see randomly generated example below: Each batch have minimum 2 rows and max can be 2000 rows. In this …

ORA-06553: PLS-801:Internal Error [55018]

I want to make a function call like SELECT URUN_GETIR(‘test1’) FROM DUAL; but i got ORA-06553: PLS-801: Internal Error [55018]. I tried ORA-06553: PLS-801: internal error [55018] when testing function returning ROWTYPE this like for ex URUN_GETIR(‘test1’).KULUSERNAME but getting same e…