Skip to content
Advertisement

Tag: oracle

PLSQL – Use variable array on where clause IN

I am looking to use an array of values in the WHERE IN condition. After research, I saw that I had to make a “CREATE TYPE”, since a “TYPE” in local does not work. This solution does not suit me, I do not want to make a new TYPE in Oracle, since the database is used for an ERP/PGI I

ORA-00932 convert and format dates and strings to calculate a range of days

I have a table where the date_one field is of type VARCHAR2 (20 BYTE) and the date_two field is of type DATE. Output for date_one is 29-01-2019 20:22:08 and output for date_two is 25-JAN-19. I need to calculate records based on an interval of days between these two fields but I’m having a hard time with this error: ORA-00932: inconsistent

Oracle SQL Filter common registries (1:1) between two tables

I need some help to approach a proper counting between 2 tables. There are 2 tables with duplicated fields on each table. I need to filter same registries between these 2 tables but it must be counted only once per ID on both tables. I was thinking about selecting by Distinct ID but still not getting the correct result. The

force query to return duplicate values sql oracle

i have a simple query so when this query runs and returns output it only shows 3 rows but i want the output to be repeated like below is there a way i can achieve this Answer Pass in a collection rather than using an IN filter: Which, for the sample data: Outputs: NO SURNAME GENDER 123 m m 456

Three-table join with NO EXISTS

I have three tables and would like to answer the following question in SQL: “Who has only certifications that do NOT have scores?” For instance, in the setup below, the query would return “John” only. Joana has the “AWS Certification”, which is in SCORE table (id 57). Marry has the “ITIL V3 Certification” which is not in the SCORE table,

Oracle SQL : how to specify Time Zone Region

Underlined, as hours are not specified, that means that hour is ’00:00′ I would like to specify that this is for Europe/Paris time zone region. Can you help me set-up this ? Thanks Answer A DATE data type has the components: year, month, day, hour, minute and second. It ALWAYS has those components and NEVER stores anything else (such as

Advertisement