Skip to content
Advertisement

Tag: oracle

Oracle SQL- Stack dates if they match diagonally

The goal is to stack dates if DT and VAR are same, and END_DATE matches the START_DATE of next highest START_DATE In the example, row 2 and 3 are combined because END_DATE of row 2 matches START_DATE of row 3. Original Expected I have tried the query below but the solution won’t work when there is additional rows. Answer This

Extremely Huge time take for executing my following query?

I just make some queries for select data from my server. The query is: But this query almost take one day. Any idea for optimize this query please? Answer You provide close to no information that is required to help with performance problem, so only a general checklist can be provided Check the Query The query does not qualify the

Oracle 12c Json split

This is how I am getting result in Oracle 12c Id Start Date Range End Date Range 1 [ “2019-01-07″,”2019-02-17″,”2019-03-17”] [ “2019-01-14″,”2019-02-21″,”2019-03-21”] And I want it Id Start Date Range End Date Range 1 2019-01-07 2019-01-14 1 2019-02-17 2019-02-21 1 2019-03-17 2019-03-21 Earlier I had asked this question for single-column split and below is the link How to replace special

how to drop multiple functions in Oracle

I want to drop multiple functions from my database at a time in Oracle’s SQL developer. Is anyone has an idea how to create a script for that? Answer Well, the static option to drop the functions (sometimes considered more secure as you can double-check what you are removing) consist of two steps 1 – run the following query 2

Why do not display values that I have entered in a database table?

Good evening. I have created a database with ORACLE SQL Developer and am having a small problem. In the RENTING table that I have created something like this: I am trying to enter the following data: cAFM = 10001, vPlateNumber = ‘XKO5434’, OutDate = ’13 / 07/2020 09:30 ‘, InDate = ’18 / 07/2020 08:00’ I type these commands: I

Problem using create view and explain plan

I want to test the efficiency of this query using explain plan for. The query works without the explain plan but when I use it I get this errors: I used explain plan on queries without create view and they worked. I don’t know what is causing the error I have tried changing the parenthesis but I get the same

Advertisement