Category "oracle"

effective query than AND operator

I would like to know that is there any other effective way or query to get the desired output for the below query with AND operators because if I run this below

How to convert year month type to datetime format

I want to convert value year month ('202101') 2021 > year 01 > month to 2021-01-31(end day) in toad for oracle please help me, if somebody know.

Export a CSV file in Oracle database by using stored procedures

I am using the following stored procedures (Oracle Database) to export the output of the query to a CSV file CREATE OR REPLACE PROCEDURE run_query(p_sql IN

How to fetch only CH_PAY_MODE loan_id from this table?

loan_id coll_date coll_pay_mode 8007571771 APR-2022 CH 8007571771 FEB-2022 CH 8007571771 JAN-2022 CH 8007571771 MAR-2022 CH 8007571771 MAR-2022 CL 8007571771 M

How to prevent Oracle SQL Developer from creating the product.conf file in %APPDATA%

In 2022, the question asked in how-to-prevent-oracle-sql-developer-from-writing-to-appdata-roaming is still a bit of a problem. While the -Dide.user.dir option

Oracle loadjava JSch

I am wondering if using loadjava to load the Java package called JSch.jar in an Oracle database and then loading another .java file, that utilizes the JSch pack

return table from oracle procedure

How do I return the table of my procedure whenever I call it? -- this code will find all the empty categories. create or replace procedure empty_cats(emptyCat

How to export application oracle apex with all data in all tables using supporting objects?

I want to export/import an oracle apex application between two different workspaces. i have already tried to create supporting objects then export the applicati

php throws exception "Call to undefined function oci_connect()"

Here is my configuration: Window Server 2016 build 14393 From phpinfo: PHP Version 8.1.5 Architecture X64 Server API CGI/FastCGI Loaded configuration file: D:

List all table origin columns for all views in Oracle database

Let's assume I have following tables: TABLE_A (ID; NAME; ...) TABLE_B (ID; NAME; TABLE_A_FK; ...) And I expose the table data through this view: SELECT a.id, a

Specify v$session.program for R2DBC Oracle connection

I was trying to set the v$session.program at the connection from a R2DBC Oracle connection (within a Spring application) For now I've tried this but without suc

What kind of query optimization can be expected?

tl;dr; Will the query optimizer be able to optimize the max calls? select id , max(case when this and that11 and that12 then 1 else 0 end) name1 , max(c

SQL If Value Exists then return that otherwise return whole table

Note: This is an over simplified version of what I am trying to do. Let's say I have a table called USERS that has FIRSTNAME, LASTNAME. Contents are: JOHN SMI

How to feed PARTITION clause dynamically in ORACLE?

I need to know if it is possible to feed the PARTITION clause with the latest partition name of a table, instead of using his value. Normaly we have: SELECT *

Oracle : Use of CURSOR%FOUND in PL/SQL

I have a code as follows. My question is - why do we need IF statement for CURSOR%FOUND ? If no rows are found, that will trigger NO_DATA_FOUND condition and co

SNP_SESSION Table shows value null in ERROR_MESSAGE column

I tried fetching error message from the snp_session table in ODI 12C. I have explicitly inserted erroneous data in order to get an error. But that error is not

How to show input field in only Uppercase using Oracle Jet oj-input-text?

I want to show letters only in uppercase in input text field. <oj-input-text style="text-transform: uppercase;" id="text-input" placeholder="Select new Item

Retrieve the last value of each data group - Oracle SQL

I’m having trouble on a query right now to retrieve only the last value saved for each group of results. I explain myself with a table. I have these value

Oracle SQL - table type in cursor causing ORA-21700: object does not exist or is marked for delete

I have problem with my function, I'm getting ORA-21700: object does not exist or is marked for delete error. It's caused by table type parameter in cursor, but

Oracle Apex pretty URL

i need help for a problem. Before someone complain. I have post the same question in another forum but i didn't get any useful help there. https://community.ora