Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to count days in between 2 dates excluding weekends?

User_R6EDAMay 17 2022 — edited May 17 2022

Example:
In table Orders I have fields approved_date and creation_date. I want to count how many days between both dates.
approved_date | creation_date | approved - creation
05/16/2022 | 05/12/2022 | 4

Expected Output excluding Saturday and Sunday.:
approved_date | creation_date | approved - creation
05/16/2022 | 05/12/2022 | 2

Comments

USER1211

Do it your Data Form Design.

Have column with the entity,scenario and the year members then have another column with the other entity,scenario and the other year members.

Once you got the clarity you needed remember to mark the thread as answered so members can focus on unanswered questions.

Did Your Question Get Answered in My Oracle Support Community (Doc ID 1180503.1)

3235756

I want that the column of "entity" dimension (1101, 1218) shows only once like this example:

pastedImage_3.png

If I create some columns, the entity repeats. For my example, the column 1101, I want that shows once and now Entity shows 3 times:

pastedImage_0.png

pastedImage_1.png

Further, I don't want to view all years and all scenarios. There are these situations:

  • FY16 and FY15 for "Presupuesto" Scenario
  • Only FY15 for "Real" Scenario
  • Only FY14 for "Presupuesto" Scenario
JohnGoodwin
Answer

You may not get it exactly how you want it but here is an example similar to yours.

pastedImage_1.png

pastedImage_0.png

Marked as Answer by 3235756 · Sep 27 2020
3235756

Thanks, this option tried, but the problem is that I have a lot of members entity (sales east, international sales).

I wanted to know if PBCS had a option to avoid: add entity by entity in the form, and not repeat the member in the view (for example, "sales east" displays in two columns).

At the moment, I will use this option

AL.

Hello,

From my point of view, it seems like you need a report instead of a webform.

Finnancial reporting studio gives you many more posiblities regarding the design and display options. You can merge cells, asign colours or even change the writing font...

Best Regards,

3235756

Thanks, I going to explorer "Finnancial reporting studio" option.

JohnGoodwin

You can only customise the form with the options that are available, as I said it may not always be exactly the format you are looking for.

There are many different ways of doing things you could have entity in the page and then with security the user will just enter data for the entity they have access permissions against.

Also it depends if this is a data entry form or a report which as suggested could be done through FR if it is.

1 - 7
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Feb 21 2023
Added on May 17 2022
4 comments
8,563 views