Skip to content
Advertisement

Tag: oracle

Using Cases for currency conversion in oracle

I have two tables what I am trying to find is the ‘daily amount GBP Equivalent per day for the last three months’. For example on date ’05/01/2022 ‘ check the given amount in Payments_history table if the currency is GBP add it into total and move on to the next payment, next if the currency is in USD check

SQL missing parenthesis when creating a table [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 2 months ago. Improve this question I’m trying to create a table for a college project, but when I run my code it tells me I am missing

Why is this CREATE command not running?

This is a part of a script which the whole script runs without errors. I followed the script and made minor changes, just by changing names, etc and discarded few commands like ‘create or replace force view’, sequences. This is one of the ‘CREATE TABLE’ commands that I edited from there. Errors came out; ORA-00907: missing right parenthesis ORA-06512: at

Data in Oracle apex

If I want to take data for today from 00:00 until currently hour how can I do it ??? I have this table datetime hourly clientchannel servicename service_count 13_02_2022 9 ***** notification 2 Answer Presuming that datetime column’s datatype is DATE (should be), then because If datetime’s datatype is VARCHAR2 (bad choice), then you should first convert it to date,

Oracle case statement not returning values for no row results

I have a simple case statement as follows: This code is designed to return ‘A_VALUE_ANYWAY’ because there is no output from the SQL. However, it does not return anything at all. Essentially, what I would like is a value being forced to return from the case statement instead of just no rows. Am I able to do that with the

SQL Oracle fusion lines with same id

Here is a simplification of my problem: I would like to have a result like this (keeping those 2 selects): Not sure how to fusion those 2 lines One ugly solution is: Answer For me it looks like a join with nvl for me: I’m not sure about your data, so probably it should be just left/right join or even

Advertisement