Showing posts with the label oracle-sqldeveloper

[FIXED] Oracle SQL: Average amount for past few months

Issue I am trying to find the average amount for the recent 4 months for each customer. Below is th…

[FIXED] SQL Query to enclose column with quotes when it has |

Issue A table has the following details Course_Number Description 10 …

[FIXED] Multiply columns and then sum rows: Oracle SQL

Issue I'm trying to make a query in Oracle SQL Developer that must show the customer who has sp…

[FIXED] Are recursive foreign keys also marked as primary keys? (In Oracle SQL Developer)

Issue Example: Is this recursive relationship written correctly? Would Mgr be marked as a primary …

[FIXED] Common Table Expression to Replicate Dates

Issue I may be overthinking this, but here goes: I have 2 tables, one which is a date table; say &…

[FIXED] Choose a value by year and the max week

Issue I have a sales field which I want to display for the past number of years in the table by the…

[FIXED] Why date formats are different in APEX and Oracle SQL Developer?

Issue The date format in Oracle SQL Developer looks like DD-MON-YY . For example 17-OCT-03 . Th…

[FIXED] I am using Oracle SQL Developer and it says I am "missing left parenthesis", but I don't see what is wrong with the code

Issue create table BookChe ( check number(10) not null, bookISBN number(13) not null, bookCopy numb…

[FIXED] How to select only duplicate values, but with one different column?

Issue I have a table, which looks like this: class="s-table"> Aircraft WorkOrder …

[FIXED] How to insert numerous rows on a table from another table with conditions on Oracle SQL

Issue I do have a problem on how to insert numerous rows of data into a table from an existing tabl…

[FIXED] SQL query to retrieve column name among 3 columns in table whose values are mutually excluse ie.one among them will be 'Y' whose col name to be found

Issue I have a query in which multiple joins and select from various tables are used. One table str…

[FIXED] Variable not working properly inside oracle procedure

Issue I want my procedure to return rows of values using the select query when I provide the gende…