Skip to content

Tag: oracle

SQL Query Exercise Oracle 18c

I’m trying to resolve this exercises: Visualize the actors who have had more than twice the compensation of the media of their compatriots. FILM (CODFILM,TITLE,YEAR,GENRE) –Year is NUMBER, it contains only the Year ACTOR (CODACTOR,NAME,SURNAME,NAZIONALITY) CAST (CODFILM,CODACTOR, COMPENSATION). I&…

why i got error ora-00904 invalid identifier in insert into table?

I have 2 tables MR_FILES and WEBSITE_USERS i need to insert data from first table to secode table but i got the error ora-00904 website_users.patient_no invalid identifier , but the column already exist in the both table with same datatype number(12), this is the SELECT statement : what is the error ? Answer …

SQL concatenate – INSERT MANY VALUES TO ONE ROW

I’m currently trying to add 3 rows in to 1 row so that the information is separated by a ‘,’like using a concatenation. However, I’m new to this and any help will be useful. Below is my current code and what I have tried. This code below does not work: I have also tried this code below…

get null values with decode

I have a table with names, where the name can be null. If I want to get all the rows with null names, I do the following: but I want to make sure that if I specify a value it will get the non-null values and if it won’t get the null values So I get the values that are

Input parameters in procedure

Tell me how to solve such a case: There is a predicate in the stored procedure that searches for input_param by the input parameter: When calling this procedure, I need to pass two or much parameters: It naturally doesn’t work Are there any solutions? Answer Would this help? Sample data: Procedure: