Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
1 vote
1 answer
38 views

I can’t figure out what I’m specifying incorrectly, null values ​​from the STUDENT.CURRENT_CURS_ID column are not processed by iif or nvl2 and in general this student with a null value is not included ...
Yula's user avatar
  • 25
1 vote
1 answer
58 views

I have customers. Who can have 1 or customer accounts. In each customer account there can be debits or credits in a transaction table. I am converting a function to a MACRO in order to do performance ...
2 votes
3 answers
322 views

My oracle database has 3 tables Order (id, order_number, external_id(FK to other app),version, description, create_tS) Partner (id, order_id(FK to orders),partner_code, partner_name, identifier, type,...
0 votes
2 answers
786 views

I have the following Oracle SQL: with dat as ( SELECT (trunc(sysdate) - level + 1)AS ISSUE_DATE, 'Tesla' AS MAKE FROM DUAL CONNECT BY LEVEL <= (to_date(sysdate+59,...
Mike's user avatar
  • 4,435
1 vote
4 answers
125 views

For a very specific need for my application, in the best scenario, I must always retrieve an additional record preceding the date filter that the user selected. Suppose in my database I have orders ...
pgendron's user avatar
0 votes
1 answer
448 views

I do have that silly job at work,in which I need to analyse and improve the performance on some stupid 20 years old SQL statements. One statement uses NVL in the WHERE clause (no wonder why it's slow) ...
0 votes
1 answer
113 views

SELECT cast(ID as number) AS ID, cast(MARKETER_ID as NUMBER) AS MARKETER_ID, CAST(NEW_MARKETING_BANKS_ID AS NUMBER) AS NEW_MARKETING_BANKS_ID_ASSIGNE, To_char(To_date(REQUEST_DATE,'YYYY/MM/...
-1 votes
1 answer
85 views

I need write select script that checks if column is null then shows "is null" value, when column is not null then shows "is not null" value in output. But I should use only nvl, ...
0 votes
2 answers
723 views

Let's consider the following example. Say I have a table column called N.Note and it contains the string: Veg: Lettuce 200 ¶ Fruit: Oranges 200 ¶ Dairy: Milk 300 ¶ This string is not constant and ...
0 votes
0 answers
65 views

My database schema is as follows: Students(sid, firstname, lastname, status, gpa, email) Courses(dept_code, course#, title) Course_credit(course#, credits) Classes(classid, dept_code, course#, sect#, ...
2 votes
2 answers
83 views

When I write: SELECT last_name, NVL(commission_pct, 0) FROM Hr.employees; it works fine. When commission percentage is null, then it is set to 0. But I want to set it to 'NO COMMISSION' ...
0 votes
1 answer
123 views

I've a pivot table output and now I want to check for the values from the pivot columns and replace the values if null from another column from another table. Invoice_No Column value 111 A One 111 B ...
1 vote
0 answers
603 views

I am using this JPAQueryFactory .select to get the data queryFactory.select( Projections.bean(detailDTO.class, qEmpcate.id, qEmcate.date.as("...
0 votes
1 answer
75 views

I was reading a query and came upon the following code: nvl(case when month>start then null else 0 end, 1) and it seemed to me there was no reason for the nvl. Why not do this: case when month>...
Bruce's user avatar
  • 341
1 vote
2 answers
120 views

There are two different tables Table 1: select nvl(a.column1,'dummy_employee') from table1 a; Table 2: select nvl(b.column1,a.column1) from table1 a left join table2 b on a.key_col=b.key_col Logic: ...

15 30 50 per page
1
2 3 4 5
...
10

AltStyle によって変換されたページ (->オリジナル) /