Calendar force question
I have a bit of a problem with the function of strain on a command prompt. A little curious to know if what I'm trying to do is even possibleI have 2 items on my guest.
#1. Selection of the date (calendar)
#2. User (drop-down)
Now, the user is limited based on Date selection. It works very well... BUT only when I press 'GO '. It's almost as if the calendar don't post at the time where a new date is selected... so it is not ultimately compel the dropdown to 'Go' is enabled
The real problem is when I run the report once, and then change the date and press 'Go '.
If it happens to be a single user since this date, the report will be run on this "new" user However the guest user will view the former user of the first round until I have change it manually. Customers don't like it
Is it possible to fix this?
I think that what you describe is the way OBI works. I have not found a way to "fix" this so if someone goes off with the answer, I'd be more than happy to learn that it is. But after reading a few books of 'best practices' on OBI desgin of dashboard, I read something that addresses this issue that at least allows the user.
In a separate in the report section, place a text object in the section. Use the NAV. guided in the properties of the section and have it connect to the report with the 'if the query returns nothing"selected option button.
Then paste this in the text field:
Please select a value from the prompt above and hit the "Go" button.
Don't forget to check the HTML. Modify the test above as see fit you.
Now the user is alerted at least to select an appropriate from the prompt value.
Tags: Business Intelligence
Similar Questions
-
shared Calendar iCal questions
My daughter used to have an iphone with sharing calendars that have been with me, in ical, buther broken phone, and she used other phones temporarily while she earned money to fix his phone. She just got her phone back, but schedules have gone after a few months of non-use. I tried to send invites (uisng my iPad), but she was not make them, so I tried to send my computer prompt. Then she got the prompt, but when she accepted them, she just got a black screen.
So, I tried to remove the shared calendar, & re-invited to the calendar... still no luck. So, I got my husband out of another shared calendar, & re - invited... he had the black screen also. So, my husband set up schedule, invited my daughter, & there is no problem! So apparently my os iCal problem and I did the research on it with no luck...
Any ideas?
Jenny
Hey its bad to hear about your problem.
Here are a few corrections that might help you:
-> Try to force your device restarts: hold the Home and power button. When the Apple Logo appears, do not hold down the buttons more.
-> Check if the appliance is updated on the most recent Version.
-> disconnect and reconnect to iCloud
If this does not correct the appeal of the issue the Apple Care Support
-
I recently added some things to my gcal, as weather and things, I can't get the pre to show my events and the time on the same point of view of the calendar, is possible to see that, as the same view the two tabs of different color for the function?
Thanks, dave
When the calendar is open
Select Calendar
Choose Preferences and accounts
Select / tap the calendar that you want to
When that opens, you will see the current selected color box for each associated google calendar - touch it and you change the colors
The only I have that used sync is up to now the sports calendar (which sucks, I want my games loaded on the pre not only the gmail web calendar)
-
Hello
I use a Date column in my guest, using the operator ' is between ' and the calendar for the selection of the user control. My problem is that when a user selects a date, automatically adds the timestamp to the end, so it will look like on 08/05/2009 12:00:00 AM. How can I get rid of the portion of time when a user selects a date?
I tried a tip I read a blog where you add the column to a report, replace the desired format and save the default system wide, but this does not in the guest.
Any ideas?
Thank youHello.
Physical layer change column data type to a DATE (DATETIME was now).
Concerning
Goran
http://108obiee.blogspot.com -
Stored procedure calendar basic questions
If I have the following statements in a stored procedure, what happens if a user performs an update, insert, or select this option for the MAIN_TABLE during the procedure (assume that the procedure takes a few seconds)?
MY_PROCEDURE:
If they do an update/insert, MY_PROCEDURE data will see that update/insert and send it to BACKUP_TABLE? Or it will depend on if this file has been processed yet? Or the update/insert will not persist until the procedure is completed? (I suspect the latter, but it's hard to get the timing right to test it myself)INSERT INTO BACKUP_TABLE (COL1, COL2, ETC.) (SELECT COL1, COL2, ETC. FROM MAIN_TABLE WHERE BACKED_UP = 'N'); UPDATE MAIN_TABLE SET BACKED_UP = 'Y' WHERE BACKED_UP = 'N';
Would there be problems doing a select on MAIN_TABLE while this process occur?
If there is a reference to how these timing issues are resolved that someone could tell me, that would be great; I can't find anything on mine.When all else fails, read the Fine
http://download.Oracle.com/docs/CD/E11882_01/server.112/e16508/consist.htm#sthref1118
-
BlackBerry Smartphones sync will not sync all calendar items
Everything worked fine until a few days ago, well I noticed it this morning. My Outlook calendar has NOTHING of my future appointments. I don't know how or why they were deleted. Appointments are on my Black Berry Torch schedule, but they will not synchronize.
I tested with sync settings trying to force synchronization.
I changed the default calendar account.
I tried all the files suggested troubleshooting assistance.
Here's the strange thing... If I create a new appointment in outlook, or on my phone they synchronize correctly. But the appointments that has disappeared from my computer will not synchronize.
What I did, however, set is: I don't know what fixed! I took the black berries on another computer I rarely ever synchronize with just to see what would happen. All data, including mysterious calendar synchronized (leaked?) correctly entries. OK, so I've narrowed the problem to my laptop (which is the computer that I had the problem with when you posted this thread).
So I took the blackberry to my laptop, logged, sank and nothing, the calendar, same question. Then I hit reset in the desktop software and tried to sink again, and it worked as if by magic. So I guess that reset solved the problem. Everything from the phone, including mystery calendar entries are now synchronized. I guess I should have tried the obvious earlier instead of trying all of these advanced settings. K.I.S.S.
-
The Xperia calendar does not work
When it is open from February 2015 is collapsed.
nothing is help!
Settings-applications-all-calendar, force stop and erase the data. Turn it back on.
-
Outlook calendars separate synchronization of 2 Smartphones blackBerry to my "BOLD"
I have a "BOLD" and use B/B Desktop 4.6. I have two desktops (work and home) running Outlook. Currently I don't sync my "BOLD" to my vision of the House (contacts and calendar). Question: Can I add my outlook (calendar only) work to my "BOLD"? If so how to go to and then will be able to make a difference on my handheld between work and home appointments?
Hello
The Blackberry has only a single database of address book and calendar, then no, you cannot have two separate on the same device.
If you are trying to connect the handset to the Labour Act and sync then you will import the details of the House for the work e-mail account - workOutlook will show both, as well as the combined BB (as you wil sync'ing the HH details to the PC).
-
Reproduced by Google Calendar Sync exchange meetings
I've been using an Exchange account for a few years, and I use Google Calendar Sync to copy my exchange calendar in Google Calendar, so I can easily share it with my family. I just got a pre, and I realized that all my meetings Exchange appeared in my WebOS calendar twice, so I removed the Google Calendar 'Work' the view «All calendars» Unfortunately, I still get two notifications every time I have a meeting to exchange with a reminder. Is it possible to not synchronize a Google of my account calendar, or turn off all notifications of this calendar?
Did you enter in Google Calendar and and under notifications, option for the calendar in question choose to disable notifications. These notifications are coming from the side of Google, and if this does not work and you have any other questions I would contact Google directly for help on this issue.
-
Single SQL query for the analysis of the date of customs declaration under the table of Stock codes
Dear all,
Please tell us a single SQL query for the below,
We have a Table of Stock as shown below,
STOCK_TABLE
ITEM_CODE
(item code)
BAT_NO
(lot no.)
TXN_CODE
(transaction code)
DOC_NO
(number)
BOE_DT
(date of the customs declaration)
I1
B1
I1
I2
I3
B70
I4
B80
I5
B90
T102
1234
JULY 2, 2015
I6
B100
We have to find the date of customs declaration (i.e. the date when the items have come under this particular table) for items that are not attached to any document (that is, who have TXN_CODE, DOC_NO and BOE_DT fields with a NULL value).
For each item in the table of actions, which is not attached to any document, the customs declaration date is calculated as follows.
- If (code section, lot number) combination is present under HISTORY_TABLE, the date of customs declaration will receive the UPDT_DT, the transaction code (TXN_CODE) is an IN or transactions (which can be analyzed from the TRANSACTIONS table).
- If (code section, lot number) combination is NOT currently at the HISTORY_TABLE (or) the transaction code respective to item - batch number combination code is an operation then customs declaration date will be the date of the document (DOC_DT) that we receive from one of the 3 tables IN_TABLE_HEAD that contains the element of that particular lot.
- If the case 1 and case 2 fails, our customs declaration date will be the last date of document (DOC_DT) that we receive from one of the 3 tables IN_TABLE_HEAD containing that particular item and the BAT_NO in expected results will be that corresponding to this document, as appropriate, to another NULL.
- If the case 1 or case 2 is successful, the value of the last field (in the output expected, shown further below) BATCH_YN will be 'Y', because it fits the lot. Otherwise it will be 'n'.
-
my calendar has frozen after trying to drag and drop a piece of mail to the calendar; still frozen after forcing them to leave... using OS X v 10.9.5
Get the error that civilian could not be refreshed... requires a force quit and then when reopened, get the same message
Try restarting your Mac in safe mode:
-Stop your Mac
-Wait until your computer turns off and after that press the power button
-Just after you hear the startup tone, press in and hold the SHIFT key
-Release the SHIFT key when you see a gray Apple sign and the progress under this sign bar
-Once you see office, start a scan Disk Utility to detect and repair file system errors (remember to choose your primary hard drive)
-Click on the disc to check, then, if requested to solve the problems on the repair disk
-After that click on verify disk permissions, and then click Repair disk permissions
-Once the process is complete, stop your Mac and turn it on again after 30 seconds
I hope this helps!
-
JavaScript question - do not click on dates in a calendar
We try on online tennis court booking site. When I click the calendar icon to select a date in the calendar, I can click on the date, but he does not at that date.
Other browsers such as Chrome and Internet Explorer work fine. It just goes straight to the date I click.
<"rel = 'nofollow' > http://demo3.onlinecourtreservations.com/Reservations.asp > demo version"
<"rel = 'nofollow' > http://mum.onlinecourtreservations.com/Reservations.asp > our trial version."
Here's what I sent to the developer and his answer is below.
My Question: When you use the calendar for date selection tool, I noticed that it will not to the date on the calendar that I click. I can navigate using the arrows of day view and the view arrows week next to the icon of calendar very well.
DEVELOPER RESPONSE: The calendar tool is based on javascript, so the security of your browser must allow scripts. To do this, the simplest method is to add your site to the "trusted sites" on your browser.
The steps I've tried:
1. the reset of the functionality of Firefox
2. clear all history
3. start in Safe Mode
4. check to make sure that javaScript is enabled and it is.I wonder why this works fine in Chrome and Internet Explorer and not Firefox.
Could someone help me solve the problem?
Thank you.
If you use this script, you can change it?
The pop-up tries to submit a form hidden in the main window using a standard, old SEO method. You can correct the script in the pop-up window, or you can create a reference in the main window.
Method #1:
Change the code in the popup
reservation_window.frmCalendar.submit();
for this
reservation_window.document.forms['frmCalendar'].submit();
Method #2:
In the main window, create a global script variable that creates the missing reference:
window.frmCalendar = document.forms['frmCalendar'];
Once solve you this problem, there is a new number. Web site empty, and when you view the source, you see that there is a problem with one of the hidden form parameters.
Microsoft VBScript runtime error '800a000d' Type mismatch: 'CInt' /demo/common/reservationssheet/script.asp, line 25
Since it is on the server, I don't know what goes wrong, but the script apparently don't deal well with a time value start missing. For what it's worth, I get the same error in IE8.
-
Just upgraded to El Capitan and cannot access the calendar. It opens with a message 'Moving calendars to the server.
I cannot access all features and can be closed only by using force quit.
Please stop calendar and also the application of reminders, runs. Force quit if necessary.
Back up all data.
If you synchronize some of your calendars, or reminders with iCloud, then in the iCloud preferences window, uncheck that marked calendars and reminders. You will be prompted to confirm that you want to remove your iCloud calendars and reminders of the computer. They will always be in iCloud. Re-check the boxes.
If you synchronize agendas or reminders with another network such as Google service, please open the preferences panel Internet accounts. Make a note of the settings for calendar accounts, then delete and recreate.
Launch schedule and see if there is an improvement.
-
Holiday calendar question simple unit 4.04
Unit 4.04. Have a configuration of call for our business Office Manager. Their schedule is from Monday to Friday 08:00 to 17:00. Meanwhile the standard greeting plays and when that time is not in force their closed greeting plays. If I put a holiday in Sept 5 labor day and check the box of holiday observing what greeting will play this day there... It's the closed greeting which will remain in force?
Thank you!
Hi Chris,
It will be greeting closed. Watch this excerpt of a good doc of the unit;
"All managers to call in Cisco Unity work according to a schedule, which is located on the profile page for the call handler. The calendar dictates that closed or standard welcome message is broadcast. The standard greeting is a greeting played during normal office hours. The closed greeting message is played after normal office hours. In Cisco Unity, the system administrator, under the calendar option, there are several default schedules that can be found by using the option to find on the toolbar. Once a program is selected on the table to edit table, if a block is checked, the Standard greeting is played for this block of thirty minutes of time. If a block is not checked, the closed greeting plays.
According to the Cisco Unity documentation, when a holiday framework is in force, Cisco Unity plays closed greetings and observes the closed transfer rules. You can configure several years vacation at a time. You can copy the holiday from one year to the next and set dates according to the needs
This doc.
Establishment of a Holiday Greeting for Cisco Unity
http://www.Cisco.com/en/us/products/SW/voicesw/ps2237/products_tech_note09186a008011aa09.shtml
I hope this helps!
Rob
Remember messages useful rate...
-
Hello
Our company uses an Exchange Server for email, contacts and calendar.
Can I use Mail app to connect to the Exchange Server for email (the same question is for contacts or people and calendar)?
Kind regards
Matej
You must install the SSL certificate before connect you to the Regional service, the easiest way is to go to "desktop" IE10 open, go to the exchange server web access page, click on the notification of "certificate error" red and view / install the store "certificate authorities roots of trust." Then, make sure that your surface RT complies with the minimum requirements of security then connect to the exchange via the mail application server.
HISTORY_TABLE
ITEM_CODE | BAT_NO |
TXN_CODE
DOC_NO
UPDT_DT
I1
B1
T1
1234
JANUARY 3, 2015
I1
B20
T20
4567
MARCH 3, 2015
I1
B30
T30
7890
FEBRUARY 5, 2015
I2
B40
T20
1234
JANUARY 1, 2015
TRANSACTION
TXN_CODE | TXN_TYPE |
T1 | IN |
T20 |
OFF
T30
ALL THE
T50
IN
T80
IN
T90
IN
T60
ALL THE
T70
ALL THE
T40
ALL THE
IN_TABLE_HEAD_1
H1_SYS_ID (primary key) | TXN_CODE | DOC_NO |
DOC_DATE
H1ID1
T1
1234
JANUARY 1, 2015
H1ID2
T70
1234
FEBRUARY 1, 2015
IN_TABLE_ITEM_1
I1_SYS_ID |
H1_SYS_ID
(foreign key referencing H1_SYS_ID in IN_TABLE_HEAD_1)
ITEM_CODE
I1ID1
H1ID1
I1
I1ID2
H1ID1
I100
I1ID3
H1ID2
I3
IN_TABLE_BATCH_1
B1_SYS_ID | TXN_CODE DOC_NO (now in IN_TABLE_HEAD_1) | BAT_NO |
B1ID1
T1
1234
B1 / can be empty
B1ID2
T70
1234
B70
IN_TABLE_HEAD_2
H2_SYS_ID (primary key) | TXN_CODE |
DOC_NO
DOC_DATE
H2ID1
T30
4567
FEBRUARY 3, 2015
H2ID2
T60
1234
JANUARY 3, 2015
IN_TABLE_ITEM_2
I2_SYS_ID | H2_SYS_ID (foreign key referencing H2_SYS_ID in IN_TABLE_HEAD_2) | ITEM_CODE |
I2ID1 | H2ID1 |
I1
I2ID2
H2ID1
I200
I2ID3
H2ID2
I2
IN_TABLE_BATCH_2
B2_SYS_ID |
I2_SYS_ID
(foreign key referencing I2_SYS_ID in IN_TABLE_ITEM_2)
BAT_NO
B2ID1
I2ID1
B30 / null
B2ID2
I2ID2
B90
B2ID2
I2ID3
B60
IN_TABLE_HEAD_3
H3_SYS_ID (primary key) | TXN_CODE | DOC_NO | DOC_DATE |
H3ID1 |
T50
1234
JANUARY 2, 2015
H3ID2
T80
1234
JANUARY 3, 2015
H3ID3
T90
1234
JANUARY 4, 2015
H3ID4
T40
1234
AUGUST 5, 2015
IN_TABLE_ITEM_3
I3_SYS_ID |
H3_SYS_ID
(foreign key referencing H3_SYS_ID in IN_TABLE_HEAD_3)
ITEM_CODE
BAT_NO
I3ID1
H31D1
I2
B50
I3ID2
H3ID2
I4
B40
I3ID3
H3ID3
I4
I3ID4
H3ID4
I6
There is no IN_TABLE_BATCH_3
Please find below the expected results.
OUTPUT
ITEM_CODE | BAT_NO | TXN_CODE | DOC_NO |
BOE_DT
BATCH_YN
I1
B1
T1
1234
JANUARY 3, 2015
THERE
I1
B30
T30
7890
FEBRUARY 5, 2015
N
I2
B60
T60
1234
JANUARY 3, 2015
N
I3
B70
T70
1234
FEBRUARY 1, 2015
THERE
I4
T90
1234
JANUARY 4, 2015
N
I6
T40
1234
AUGUST 5, 2015
N
Controls database to create the tables above and insert the records.
CREATE TABLE stock_table()item_code VARCHAR2()80),bat_no VARCHAR2()80),txn_code VARCHAR2()80),
doc_no VARCHAR2 (80), boe_dt DATE );
INSERT EN stock_table
VALUES ('I1', 'B1', '', '', '');
INSERT EN stock_table
VALUES ('I1', '', '', '', '');
INSERT IN stock_table
VALUES ('I2', '', '', '', '');
INSERT EN stock_table
VALUES ('I3', 'B70', '', '', '');
INSERT EN stock_table
VALUES ('I4', 'B80', '', '', '');
INSERT EN stock_table
VALUES ('I5', 'B90', 'T102', '1234', '02-JUL-2015');
INSERT EN stock_table
VALUES ('I6', 'B100', '', '', '');
SELECT *
FROM stock_table
CREATE TABLE history_table()item_code VARCHAR2()80),bat_no VARCHAR2()80),txn_code VARCHAR2()80),
doc_no VARCHAR2 (80), updt_dt DATE );
INSERT IN history_table
VALUES ('I1', 'B1', 'T1', '1234', '03-JAN-2015');
INSERT IN history_table
VALUES ('I1', 'B20', 'T20', '4567', '03-MAR-2015');
INSERT IN history_table
VALUES ('I1', 'B30', 'T30', '7890', '05-FEB-2015');
INSERT IN history_table
VALUES ('I2', 'B40', 'T20', '1234', '01-JAN-2015');
SELECT *
FROM history_table
CREATE TABLE transaction1()txn_code VARCHAR()80),txn_type VARCHAR()80));
INSERT INTO transaction1
VALUES ('T1', 'IN');
INSERT INTO transaction1
VALUES ('T20', 'OUT');
INSERT INTO transaction1
VALUES ('T30', 'ALL');
INSERT INTO transaction1
VALUES ('T40', 'ALL');
INSERT INTO transaction1
VALUES ('T50', 'IN');
INSERT INTO transaction1
VALUES ('T60', 'ALL');
INSERT INTO transaction1
VALUES ('T70', 'ALL');
INSERT INTO transaction1
VALUES ('T80', 'IN');
INSERT INTO transaction1
VALUES ('T90', 'IN');
SELECT *
FROM transaction1
CREATE TABLE in_table_head_1()h1_sys_id VARCHAR2()80) PRIMARY KEY,txn_code VARCHAR2()80),
doc_no VARCHAR2 (80), doc_dt DATE );
CREATE TABLE in_table_head_2()h2_sys_id VARCHAR2()80) PRIMARY KEY,txn_code VARCHAR2()80),
doc_no VARCHAR2 (80), doc_dt DATE );
CREATE TABLE in_table_head_3()h3_sys_id VARCHAR2()80) PRIMARY KEY,txn_code VARCHAR2()80),
doc_no VARCHAR2 (80), doc_dt DATE );
INSERT IN in_table_head_1
VALUES ('H1ID1', 'T1', '1234', '01-JAN-2015');
INSERT IN in_table_head_1
VALUES ('H1ID2', 'T70', '1234', '01-FEB-2015');
INSERT IN in_table_head_2
VALUES ('H2ID1', 'T30', '4567', '03-FEB-2015');
INSERT IN in_table_head_2
VALUES ('H2ID2', 'T60', '1234', '03-JAN-2015');
INSERT IN in_table_head_3
VALUES ('H3ID1', 'T50', '1234', '02-JAN-2015');
INSERT IN in_table_head_3
VALUES ('H3ID2', 'T80', '1234', '03-JAN-2015');
INSERT IN in_table_head_3
VALUES ('H3ID3', 'T90', '1234', '05-JAN-2015');
INSERT IN in_table_head_3
VALUES ('H3ID4', 'T40', '1234', '05-AUG-2015');
CREATE TABLE in_table_item_1()i1_sys_id VARCHAR2()80) PRIMARY KEY,
h1_sys_id VARCHAR2 (80) REFERENCES in_table_head_1()h1_sys_id),item_code VARCHAR2()80));
CREATE TABLE in_table_item_2()i2_sys_id VARCHAR2()80) PRIMARY KEY,
h2_sys_id VARCHAR2 (80) REFERENCES in_table_head_2()h2_sys_id),item_code VARCHAR2()80));
CREATE TABLE in_table_item_3(i3_sys_id VARCHAR2(80) PRIMARY KEY,
h3_sys_id VARCHAR2 (80) REFERENCES in_table_head_3()h3_sys_id),item_code VARCHAR2()80),
bat_no VARCHAR2 (80));
INSERT IN in_table_item_1
VALUES ('I1ID1', 'H1ID1', 'I1');
INSERT IN in_table_item_1
VALUES ('I1ID2', 'H1ID1', 'I100');
INSERT IN in_table_item_1
VALUES ('I1ID3', 'H1ID2', 'I3');
INSERT IN in_table_item_2
VALUES ('I2ID1', 'H2ID1', 'I1');
INSERT IN in_table_item_2
VALUES ('I2ID2', 'H2ID1', 'I200');
INSERT IN in_table_item_2
VALUES ('I2ID3', 'H2ID2', 'I2');
INSERT IN in_table_item_3
VALUES ('I3ID1', 'H3ID1', 'I2','B50');
INSERT IN in_table_item_3
VALUES ('I3ID2', 'H3ID2', 'I4','B40');
INSERT IN in_table_item_3
VALUES ('I3ID3', 'H3ID3', 'I4','');
INSERT IN in_table_item_3
VALUES ('I3ID4', 'H3ID4', 'I6','');
SELECT *
FROM in_table_item_1
SELECT *
FROM in_table_item_2
SELECT *
FROM in_table_item_3
CREATE TABLE in_table_batch_1()b1_sys_id VARCHAR2()80) PRIMARY KEY,
txn_code VARCHAR2 (80), doc_no VARCHAR2 (80), bat_no VARCHAR2 (80));
CREATE TABLE in_table_batch_2()b2_sys_id VARCHAR2()80) PRIMARY KEY,
i2_sys_id VARCHAR2 (80) REFERENCES in_table_item_2()i2_sys_id),bat_no VARCHAR2()80));
INSERT IN in_table_batch_1
VALUES ('B1ID1', 'T1', '1234', 'B1');
INSERT IN in_table_batch_1
VALUES ('B1ID2', 'T70', '1234', 'B70');
INSERT IN in_table_batch_2
VALUES ('B2ID1', 'I2ID1', 'B30');
INSERT IN in_table_batch_2
VALUES ('B2ID2', 'I2ID2', 'B90');
INSERT IN in_table_batch_2
VALUES ('B2ID3', 'I2ID3', 'B60');
Please advise a solution for the same.
Thank you and best regards,
Séverine Suresh
very forced (question subfactoring used to allow easy testing/verification - could work with these test data only)
with
case_1 as
(select s.item_code,
s.bat_no,
h.txn_code,
h.doc_no,
h.updt_dt boe_dt,
cases where s.bat_no = h.bat_no then 'Y' else ' n end batch_yn.
cases where h.txn_code is not null
and h.doc_no is not null
and h.updt_dt is not null
then 'case 1' '.
end refers_to
from (select item_code, bat_no, txn_code, doc_no, boe_dt
of w_stock_table
where bat_no is null
or txn_code is null
or doc_no is null
or boe_dt is null
) s
left outer join
w_history_table h
On s.item_code = h.item_code
and s.bat_no = h.bat_no
and exists (select null
of w_transaction1
where txn_code = nvl (s.txn_code, h.txn_code)
and txn_type in ('IN', 'ALL')
)
),
case_2 as
(select s.item_code,
NVL (s.bat_no, h.bat_no) bat_no.
NVL (s.txn_code, h.txn_code) txn_code.
NVL (s.doc_no, h.doc_no) doc_no.
NVL (s.boe_dt, h.updt_dt) updt_dt.
cases where s.bat_no = h.bat_no then 'Y' else ' n end batch_yn.
cases where h.txn_code is not null
and h.doc_no is not null
and h.updt_dt is not null
then 'case 2'.
end refers_to
from (select item_code, bat_no, txn_code, doc_no, boe_dt
of case_1
where refers_to is null
) s
left outer join
w_history_table h
On s.item_code = h.item_code
and exists (select null
of w_transaction1
where txn_code = nvl (s.txn_code, h.txn_code)
and txn_type in ('IN', 'ALL')
)
and not exists (select null
of case_1
where item_code = h.item_code
and bat_no = h.bat_no
and txn_code = h.txn_code
and doc_no = h.doc_no
and updt_dt = h.updt_dt
)
),
case_31 as
(select s1.item_code,
NVL (S1.bat_no, W1.bat_no) bat_no.
NVL (S1.txn_code, W1.txn_code) txn_code.
NVL (S1.doc_no, W1.doc_no) doc_no.
NVL (S1.updt_dt, W1.doc_dt) updt_dt.
cases where s1.bat_no = w1.bat_no then 'Y' else ' n end batch_yn.
cases where w1.txn_code is not null
and w1.doc_no is not null
and w1.doc_dt is not null
then "case 31'.
end refers_to
from (select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn, refers_to
of case_2
where refers_to is null
) s1
left outer join
(select i1.item_code, h1.txn_code, h1.doc_no, h1.doc_dt, b1.bat_no
of w_in_table_item_1 i1
inner join
w_in_table_head_1 h1
On i1.h1_sys_id = h1.h1_sys_id
inner join
w_in_table_batch_1 b1
On h1.txn_code = b1.txn_code
and h1.doc_no = b1.doc_no
) w1
On s1.item_code = w1.item_code
),
case_32 as
(select s2.item_code,
NVL (S2.bat_no, W2.bat_no) bat_no.
NVL (S2.txn_code, W2.txn_code) txn_code.
NVL (S2.doc_no, W2.doc_no) doc_no.
NVL (S2.updt_dt, W2.doc_dt) updt_dt.
cases where s2.bat_no = w2.bat_no then 'Y' else ' n end batch_yn.
cases where w2.txn_code is not null
and w2.doc_no is not null
and w2.doc_dt is not null
then "case 32'.
end refers_to
from (select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn, refers_to
of case_2
where refers_to is null
) s2
left outer join
(select i2.item_code, h2.txn_code, h2.doc_no, h2.doc_dt, b2.bat_no
of w_in_table_item_2 i2
inner join
w_in_table_head_2 h2
On i2.h2_sys_id = h2.h2_sys_id
inner join
w_in_table_batch_2 b2
On i2.i2_sys_id = b2.i2_sys_id
) w2
On s2.item_code = w2.item_code
),
case_33 as
(select s3.item_code,
w3.bat_no,
NVL (S3.txn_code, w3.txn_code) txn_code.
NVL (S3.doc_no, w3.doc_no) doc_no.
NVL (S3.updt_dt, w3.doc_dt) updt_dt.
cases where s3.bat_no = w3.bat_no then 'Y' else ' n end batch_yn.
cases where w3.txn_code is not null
and w3.doc_no is not null
and w3.doc_dt is not null
then "case 33'.
end refers_to
from (select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn, refers_to
of case_2
where refers_to is null
) s3
left outer join
(select i3.item_code, h3.txn_code, h3.doc_no, h3.doc_dt, i3.bat_no
of w_in_table_item_3 i3
inner join
w_in_table_head_3 h3
On i3.h3_sys_id = h3.h3_sys_id
) w3
On s3.item_code = w3.item_code
)
Select item_code, bat_no, txn_code, doc_no, boe_dt, batch_yn
of case_1
where refers_to is not null
Union of all the
Select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn
of case_2
where refers_to is not null
Union of all the
Select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn
from (select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn,
ROW_NUMBER() over (partition by item_code of updt_dt desc order) rn
from (select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn
of case_31
where refers_to is not null
Union of all the
Select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn
of case_32
where refers_to is not null
Union of all the
Select item_code, bat_no, txn_code, doc_no, updt_dt, batch_yn
of case_33
where refers_to is not null
)
)
where rn = 1
ITEM_CODE | BAT_NO | TXN_CODE | DOC_NO | BOE_DT | BATCH_YN |
---|---|---|---|---|---|
I1 | B1 | T1 | 1234 | JANUARY 3, 2015 | THERE |
I1 | B30 | T30 | 7890 | FEBRUARY 5, 2015 | N |
I2 | B60 | T60 | 1234 | JANUARY 3, 2015 | N |
I3 | B70 | T70 | 1234 | FEBRUARY 1, 2015 | THERE |
I4 | - | T90 | 1234 | JANUARY 5, 2015 | N |
I6 | - | T40 | 1234 | AUGUST 5, 2015 | N |
Concerning
Etbin
Maybe you are looking for
-
Firefox does not start except in Mode safe
My in-laws use Firefox on their pc windows 7, but a few days ago it stopped working. I tried all the methods that I can find - disable hardware acceleration (it has no extensions enabled), reinstalled problems firefix, firefox reset - but the only th
-
Firefox adds the extension jpeg for jpg images
Whenever I have save an image through Firefox for Android, it adds an extension of JPEG, resulting in the FILENAME argument. JPG. JPEG. Since most Android applications don't recognize JPEG, I have to go into a file manager and rename the JPEG in JPG,
-
"you have been disconnected" disconnection problem
today I tried to connect my Skype account, but I always get disconnected without reason, most of the time he's just after login, a few seconds later, I get disconnected. Sometimes it take a long time before being disconnected. Skype has problems righ
-
ePrint / DJ1510: correct UBS cord?
I just bought my first printer to conntect my Pavilion. It is not wireless. I need the UBS correct cord. I noticed 2-way type on the right rear of the printer. One for the power supply cable and the other is a square shaped port narrowing at the top,
-
I am running Vista Home Premium 32 bit on Acer 5920. My built-in mic. has constantly and I cannot find how to change it. I only use the microphone. for Skype. To try to resolve the problem, I lost the icon for it and cannot see a plug icon in the mic