Run multiple chooses due to several input values (need help in SQL)
HelloI would need to run multiple SQL select statements I get input of several results of the subquery. In my test case, I get three 3 results of the subquery
Select ALL_TABLES where LAST_ANALYZED is not null AND OWNER of TABLE_NAME = "IHS" AND TABLE_NAME LIKE '_TBL_PROCESS %' AND (SYSDATE-LAST_ANALYZED) < 1 order by (SYSDATE-LAST_ANALYZED
The complete query is:
SELECT SDE_ID, SERVER_ID, REGISTRATION_ID, TABLE_NAME, CONNECTOR, START_TIME, NODENAME OF THE
* (select ALL_TABLES where LAST_ANALYZED is not null AND OWNER of TABLE_NAME = 'IHS' AND TABLE_NAME LIKE '_TBL_PROCESS %' AND (SYSDATE-LAST_ANALYZED) < 1 order by (SYSDATE-LAST_ANALYZED)) *.
Can someone help me to get the appropriate SQL code?
Thank you
Dejan
Right. I should have put a comment explaining that. I used the name A_TBL_PROCESS because the WHERE clause has
'AND table_name like '% _TBL_PROCESS' ' then yes that should be a table name that will be selected.
Tags: Database
Similar Questions
-
Change column Chooser great pain... Need help.
Hi all
I hope that everyone knows edition a column selector, the sequencing is such a pain...
Hey now we have a control column with multiple columns in it... a column inside is renowned... I want the name reflected in the column picker...
See the numerous reports indicate have this same sequence... and the report it has under is too complicated... big n... so the same Assembly by editing the XML code is confusing a lot... and there are many reports of this type have similar these CS
Can someone please suggest a simpler method...
Any help please you... to make your life easier...
Thank you
devI immediately recognize that I'm not sure that understand your situation. So I'll say what I guess: you have a column selector (actually several) where in the selector to one of the columns which was renamed, there are several other choices for this column. You want to rename the modified all column keeping the column in the order without having to erase the selector and re - add all the columns in the desired order (i.e., the "chronology" you mentioned?)
Well, you can do it. According to your results, select the column that has been renamed. Once selected, go to the criteria tab. This column will now be in your criteria. Click on the button fx of this column, delete it and in the 'list' on the left side, select the column that has been renamed. It appears in the window.
Now go back to your display of results and reselect the column of 'default' for this selector. Register your request.
That should do it.
-
Change input onClick, need help...
Heya,
How to change the color of the text in a box onClick?Found an online tutorial:
{entry
Initial values...
}
input: focus {}
Values when selected...
} -
Construction of several slides/images - need help!
Hello, I have only recently started to learn AS3 and have been unable to accomplish what I consider one of the most simplest tasks, create multiple images/slides. In fact, I was unable to conclude to the existence of what I consider to be a core function.
I want to set up multiple pages, with a 'go to the next page button. For example:
Executives Dias/1 Go to the next slide button Now, when the user clicks the next button slide reach I would like the following to appear...
Slide/Frame2 Go to the previous slide, the button Noting that I don't want the scripts of the first frame/slide or objects are present or active on the second picture/slide.
Thanks for the help.
on your first image place a next button and previous button (for example, next_btn and prev_btn). expand the layer that contains both on the scenario you want to act as a slide show.
Create a new layer actions and add the following script:
Stop();
next_btn.addEventListener (MouseEvent.Click, nextF);
prev_btn.addEventListener (MouseEvent.Click, prevF);
buttonVisF();
function nextF(e:MouseEvent):void {}
nextFrame();
}
function prevF(e:MouseEvent):void {}
prevFrame();
}
function buttonVisF (): void {}
next_btn.visible = prev_btn. Visible = false;
{if(this.currentFrame>1)}
prev_btn. Visible = true;
}
If (this.currentFrame<>
next_btn. Visible = true;
}
}
-
Several questions I need help solve
The version I use:
OracleBI Discoverer 10g (10.1.2.3)
Oracle Business Intelligence Discoverer Plus 10g (10.1.2.55.26)
1st edition:*.
I have several records of performance of the year for each employee - how to show only the record of the last year? If I have accounts from 2000 to 2009, I want to show the record for 2009.
, 2nd edition:*.
In another report, I need to display the data on a column online.
Example:
Table 1
Used a PK id
Name of the employee has
First name of the employee
etc.
Table 2
FK employee ID
Directorate-General of the
City
State
Table 2, data can be:
100001, 1, San Francisco, CA
100001, 2, los Angeles, CA
I need to show the report in this format:
Employee A last_name. Employee A name | Branch | City | State
Any ideas?Hello
>
Question No. 1: *.
I have several records of performance of the year for each employee - how to show only the record of the last year? If I have accounts from 2000 to 2009, I want to show the record for 2009.You can create a new planning method will return for each employee the year max (e.g. call it mx_yr_per_emp):
Max (Year) over (partition by employee)
You can then create a condition:
year = mx_yr_per_emp>
Question 2: *.
In another report, I need to display the data on a column online.Not understand your problem.
-
How to accept multiple input values using plsql
I am in a process of design of a small tool. The tool must accept several input values. I know that this can be done using sql.
But nothing, I can enter multiple values using the loop in the loop would be carried out according to the number of times a user wants to enter the values.
It is also very good, if I can accept all the values at once and some how to analyze!SQL> set serverout on SQL> accept strings prompt 'input strings (comma separated):' input strings (comma separated):abcd,xyz,massimo,this,is,a,string SQL> declare 2 s varchar2(32000):='&strings'; 3 begin 4 for r in (select regexp_substr(s,'[^,]+',1,level) str 5 from dual 6 connect by level <= length(s)-length(replace(s,',',''))+1) loop 7 dbms_output.put_line(r.str); 8 end loop; 9 end; 10 / old 2: s varchar2(32000):='&strings'; new 2: s varchar2(32000):='abcd,xyz,massimo,this,is,a,string'; abcd xyz massimo this is a string PL/SQL procedure successfully completed.
Max
http://oracleitalia.WordPress.com -
Please don't laugh, but I'm running three quite separate mail programs Eudora on a PC; each one with a different email address. I have three icons, and emails are completely separate. I'm just trying to determine if I can do the same with Thunderbird. I know that you can configure multiple messages in a single installation, and then switch back within this facility. But I'm trying to see if I can keep doing what I'm doing now. I know that I have to open a new Eudora program for each email address, but I'm OK with that. Any thoughts?
Eudora becomes old and unstable, so I would go if I can.
Thank you very much.
Although I don't really no why you must run multiple instances of tuberculosis, especially since the TB program folder and the profiles folder are separated, to do so are described here:
http://KB.mozillazine.org/Run_multiple_copies_of_Thunderbird_at_the_same_time
-
AJAX get several tabular values I
Hello
All those put in place the great example of damien Kubicek - ApEx
-Section III - Ajax solutions get several tabular values I have? Within the
my test apex.oracle.com workspace for that I've set up this example
My tabular presentation. I created the table my_book_store and I also exported
the site and imported data in the my_book_store table in
Apex. Oracle.com test site. My table and data are the same as an example but
I get this error
Here's the code I added within the application. If someone seesfailed to parse SQL query: ORA-01403: no data found
everything that is not correct please point my error or errors please.
Create the Table Script
Header HTMLCREATE TABLE "MY_BOOK_STORE" ( "BOOK_ID" NUMBER, "BLOB_CONTENT" BLOB, "MIME_TYPE" VARCHAR2(4000), "SUBJECT" VARCHAR2(4000), "PRICE" NUMBER, "AUTHOR" VARCHAR2(100), "TOPIC" NUMBER ) / CREATE UNIQUE INDEX "SYS_IL0003125020C00002$$" ON "MY_BOOK_STORE" ( /
<script language="JavaScript" type="text/javascript"> function f_set_multi_items_tabular(pValue, pRow){ var get = new htmldb_Get(null,html_GetElement('pFlowId').value, 'APPLICATION_PROCESS=Set_Multi_Items_Tabular',0); if(pValue){ get.add('TEMPORARY_APPLICATION_ITEM',pValue) get.add('T_ROWNUM',pRow) }else{ get.add('TEMPORARY_APPLICATION_ITEM','null') } gReturn = get.get('XML'); if(gReturn){ var l_Count = gReturn.getElementsByTagName("item").length; for(var i = 0;i<l_Count;i++){ var l_Opt_Xml = gReturn.getElementsByTagName("item");
var l_ID = l_Opt_Xml.getAttribute('id');
var l_El = html_GetElement(l_ID);
if(l_Opt_Xml.firstChild){
var l_Value = l_Opt_Xml.firstChild.nodeValue;
}else{
var l_Value = '';
}
if(l_El){
if(l_El.tagName == 'INPUT'){
l_El.value = l_Value;
}else if(l_El.tagName == 'SPAN' && l_El.className == 'grabber'){
l_El.parentNode.innerHTML = l_Value;
l_El.parentNode.id = l_ID;
}else{
l_El.innerHTML = l_Value;
}
}
}
}
get = null;
}
</script>
Tabular Form - Region Source
Application process - Set_Multi_Items_TabularSELECT apex_item.select_list_from_query (31, NULL, 'SELECT subject d, ' || 'book_id r FROM my_book_store', 'style="width:250px" ' || 'onchange="f_set_multi_items_tabular(this.value,''#ROWNUM#''' || ')"', 'YES', '0', '- Select Book -', 'f31_' || '#ROWNUM#', NULL, 'NO' ) book, apex_item.text (32, NULL, 80, 100, 'style="width:190px" ', 'f32_' || '#ROWNUM#' ) subject, apex_item.text (33, NULL, 80, 100, 'style="width:50px;text-align:right" ', 'f33_' || '#ROWNUM#' ) price, apex_item.text (34, NULL, 80, 100, 'style="width:130px" ', 'f34_' || '#ROWNUM#' ) author, apex_item.text (35, NULL, 80, 100, 'style="width:20px;text-align:right" ', 'f35_' || '#ROWNUM#' ) qty FROM my_book_store
I have two elements of the ApplicationDECLARE v_subject my_book_store.subject%TYPE; v_price my_book_store.price%TYPE; v_author my_book_store.author%TYPE; v_qty NUMBER; CURSOR cur_c IS SELECT subject, price, author, 1 qty FROM my_book_store WHERE book_id = :temporary_application_item; BEGIN FOR c IN cur_c LOOP v_subject := c.subject; v_price := c.price; v_author := c.author; v_qty := c.qty; END LOOP; OWA_UTIL.mime_header ('text/xml', FALSE); HTP.p ('Cache-Control: no-cache'); HTP.p ('Pragma: no-cache'); OWA_UTIL.http_header_close; HTP.prn ('<body>'); HTP.prn ('<desc>this xml genericly sets multiple items</desc>'); HTP.prn ('<item id="f32_' || :t_rownum || '">' || v_subject || '</item>'); HTP.prn ('<item id="f33_' || :t_rownum || '">' || v_price || '</item>'); HTP.prn ('<item id="f34_' || :t_rownum || '">' || v_author || '</item>'); HTP.prn ('<item id="f35_' || :t_rownum || '">' || v_qty || '</item>'); HTP.prn ('</body>'); END;
TEMPORARY_APPLICATION_ITEM and T_ROWNUMHi Charles,
Basically, there are few questions here
First of all I don't know what causes the Oracle error
failed to parse SQL query: ORA-01403: no data found
I just rename the columns and back return that fixed the issue. I guess that the metadata of the apex was damaged for some reason any.
There is no problem with your javascript or the application process.
The issue has been with your application to the element Protection of Session State has been Restricted - can not be set browser and you try to set their via JavaScript which will fail, I changed it to unlimited use.
-
Cannot run multiple firefox version 4 windows
The problem after the upgrade to FF4 began to occur. In ver 3 I used the Profile Manager and was able to run 2 windows firefox at the same time without any problems on Windows 7.
Now when I try to do this with version 4, a firefox window-error "firefox no longer works."
I thought that this was due to an incompatibility add on or something, so I made a withdrawal of the full program, rebooted, cleaned the registry and deleted all the files that firefox on my system. The problem persists.
You can run multiple version at the same time if the next version is started with the - no-remote switch added to the command line in the shortcut to the desktop.
'C:\Program Files\Mozilla Firefox XX\firefox.exe' - no-remote Pei
-
Structure of the event run only on first change of the value
Hi all
I would like to a structure of the event to run only on the first change of value. I currently put to run on the change in the value of a Boolean value. I'm only interested in what happens the first time that the Boolean value changes; However, he changes several times during a single run of my vi. Is it possible to limit the structure of the event so that it runs only on the first change of value? I have attached the relevant part of my VI. Thank you in advance for any help, you will be able to provide.
Thank you
yp21
-
Update loop under Vi of hand / run multiple Instances
Hey everybody,
If I want to keep my code as modular as possible so that I can see any sub or VI.
One of the SUB vi is permanently offices incase another output is detected. I don't want to make this mark on the main level because I don't want a huge loop in my main.vi and you won't worry about sending shift register valuse to my Subvi for him to function.
Essentially, I have designed this subroutine Vi and am now trying to constantly be driven from a main.vi
This hand is simply.
Cluster of entry--> Sub VI
Void VI retains a loop waiting for a change request action. Unfortuantely when I change the vale in main.vi the avlues in Subvi don't update. I guess that makes sense, in C, for example when you call Returns you need to wait until the end of the function call to update. Yet, as Labview is so strongly focused on taking SUB vi to do almost everything for you, I can't imagine labview is not able to update these values. I looked around and the answer seems to be global variables. I really don't want to use the because my application will become very big, but I'll use them if I need to.
Unforunately, when I tried to use my global variable thing, it didn't work.
1. global Var = Cluster
2. it's in the Subvi both the main VI.
3. when I run my code the global variable is not up-to-date on both front sides when I change one of them. I'm doing something wrong?
A few comments.
- You have not included the global variable
- If you want to run multiple instances of the Subvi in parallel, it must be reentrant.
- As the Subvi is interactive, it must be configured to display the front panel when it is called, otherwise there is no way to stop it ever.
- All your time loops needed little expects. They have no need to turn as fast as the CPU allows, all other processes of hunger.
- "Go to under control" is extremely complex and crawling with weird stuff like an ant farm.
- The shift register must be initialized to avoid surprises (but you probably don't have it all)
- Your loop runs one time too many.
- Avoid the stress points, such as the structure of the case.
- You can replace this whole thing with for example a table of threshold, no need to loop. (see image below).
Good luck!
-
cRIO run multiple Applications?
Is it possible to run multiple applications on a target cRIO? Would they all need to be part of the same project in LabVIEW? Can I set more than one as a starting VI or need to create a VI that would start up individule applications? They are the basics of Ethernet and not to use or share any what I/O. I looked around, but didn't see much information on this subject. Thank you!
Good afternoon Matt,.
It is possible to run several applications on a target of cRIO as long as they are in the same project and do not exceed the capacity of the target memory. You can only mark a VI the sixth start-up, but, as you said, you have this VI call your other applications. You can find useful the following documentation:
Programmatically launch an executable file or VI on a real-time controller
http://digital.NI.com/public.nsf/allkb/A7DBA869C000B5AE862570B2007C4170
Using VI server to run LabVIEW VI real time stored on a hard drive of the RT series
http://zone.NI.com/DevZone/CDA/EPD/p/ID/4364
Getting started with the Module time real LabVIEW
http://digital.NI.com/manuals.nsf/WebSearch/12F0FF18FB1BB533862575AD00696100
I hope this helps!
-Ryan S.
-
copy the input values in the text the text of input 2 input 1 using the value change listener
Hello
I have two text entry:
input 1 & 2 text text entry.
I need to copy in the text of entry 1 input values to enter text 2.
How to apply this using value change listener?
I did the following steps:
(1) I chose 1 text entry and chose listener Value Change-> edit.
Type a new name for bean & class.
Should what the name of the method I add?
Any help please?
Hello
Just follow the steps below.
1 create a jspx page and drag drop two intput text on the page.
2 linking these two text of entry to bean managed on the basis and the scope of bean on bean with property name inputVal1, inputVal2 and backing
3. Select the input text 1, go to valueChangeListener property and use the existing bean and give some name of method and the copy of the code in the method below
inputVal2.setValue (inputVal1.getValue () m:System.NET.SocketAddress.ToString ());
4. set the autoSubmit = true for the 1st input text. Set partialTrigger = it1 (it1 is id of the 1st input text).
Now run the page
Thank you
Nitesh
-
AJAX get several tabular values II
Hello
Example "Multiple Get Ajax in the tabular values II" Denes Kubicek
does not include the buttons cancel, delete, send and add a line. But when the tabular form is created by APEX form has these buttons. The example is not intended for insert and update the data for this example. But I need to extend this powerful example to insert rows by clicking Add a line Update lines when you click Submit. Before I even try to implement a process to update I need to inform me if possible values (null) displays when you click on add a line in my example apex.oracle.com and Insert. Ajax get several II tabular values from the example has no data just static buttons, but within my application, I created standard buttons. Can someone help me remove these values (null) is displayed in the select and having also the standard text boxes appear when you click on the button Add a line?http://apex.oracle.com/pls/otn/f?p=31517:241:5798812617243::NO
My test on apex.oracle.com application has buttons that display (null) for each apex_item.text, when you click Add a line. Any information on this matter is greatly appreciated. In addition, data is stored in the my_book_store table, but it does not display as a table, is there a way to display data in a table based on the select statement? I think that's the reason for which the data is displayed only when selected.SELECT '<img src="#IMAGE_PREFIX#list_gray.gif" ' || 'onclick="popUp2(''f?p=&APP_ID.:3:&SESSION.::::' || 'P3_ROWNUM:' || '#ROWNUM#' || ''', 700, 700);" ' || 'style="cursor:pointer;">' book, apex_item.text (32, NULL, 80, 100, 'style="width:290px" ', 'f32_' || '#ROWNUM#' ) subjects, apex_item.text (33, NULL, 80, 100, 'style="width:50px;text-align:right" ', 'f33_' || '#ROWNUM#' ) prices, apex_item.text (34, NULL, 80, 100, 'style="width:130px" ', 'f34_' || '#ROWNUM#' ) authors, apex_item.text (35, NULL, 80, 100, 'style="width:20px;text-align:right" ', 'f35_' || '#ROWNUM#' ) qtys FROM my_book_store
Published by: Charles on November 26, 2012 09:10woopsies! Normally, I add a block above html of the page of connection with them, but who has forgotten. It is apex_demo/demo
-
How to run multiple sql statements
Hi all
I wonder if I can run multiple sql statements in one shot with > >, immediate run
for example:
I set the variable as X: = sql statement
Y: = sql statement
z: = sql statement
can I execute immediate (X, Y, Z);
If yes how? and if not what other possible
Thank youBeginning with the codes of Ganesh
DECLARE l_statement VARCHAR2 (2000); v_passwd VARCHAR2 (200); v_username VARCHAR2 (200) := 'test'; v_pwd_key VARCHAR2 (200) := 'lwty23'; v_dblink_name VARCHAR2 (2000); v_dblink_drop VARCHAR2 (2000); v_dblink_create VARCHAR2 (2000); v_dblink_check_connection VARCHAR2 (2000); l_number NUMBER; BEGIN --<
> FOR c_instance IN (SELECT * FROM v_oracle_instances WHERE environment = 'Developement') LOOP SELECT encpwd_owner.display_db_encpwd (v_username, c_instance.host_name, c_instance.instance_name, v_pwd_key) INTO v_passwd FROM DUAL; v_dblink_name := c_instance.host_name || '_' || c_instance.instance_name; v_dblink_create := ' CREATE DATABASE LINK ' || v_dblink_name || ' CONNECT TO ' || v_username || ' ' || 'IDENTIFIED BY ' || v_passwd || ' USING' || ' ''(DESCRIPTION= (ADDRESS=(PROTOCOL=TCP)(HOST= ' || c_instance.host_name || ')(PORT=' || c_instance.LISTENER_PORT || '))(CONNECT_DATA=(SID=' || c_instance.instance_name || ')))'''; v_dblink_check_connection := 'select 1 from global_name@' || v_dblink_name || '.QCM'; --- Notice this change. I am simply selecting 1. That should be enough to test the database link. v_dblink_drop := 'drop database link ' || v_dblink_name || '.QCMTLAF'; -- l_statement := 'BEGIN ' || v_dblink_create ';' || v_dblink_check_connection ';' || v_dblink_drop '; END ;' BEGIN EXECUTE IMMEDIATE (v_dblink_create); DBMS_OUTPUT.PUT_LINE ('DB Link ' || v_dblink_name || ' Created'); EXCEPTION WHEN others THEN dbms_output.put_line( 'Failed to create the database link ' || v_dblink_name ); dbms_output.put_line( dbms_utility.format_error_backtrace() ); INSERT INTO error_table( column_list ) VALUES( < - > );
END;
EXECUTE IMMEDIATE (v_dblink_check_connection) INTO l_number; --- Notice this.
DBMS_OUTPUT.PUT_LINE ('DB Link ' || v_dblink_name || ' Tested');
BEGIN
EXECUTE IMMEDIATE (v_dblink_drop);
DBMS_OUTPUT.PUT_LINE ('DB Link ' || v_dblink_name || ' Dropped');
EXCEPTION
WHEN others THEN
dbms_output.put_line( 'Failed to drop the database link ' || v_dblink_name );
dbms_output.put_line( dbms_utility.format_error_backtrace() );
INSERT INTO error_table( column_list )
VALUES( <
- > );
END;
END LOOP;
END;
But I agree with the comment that others have grown up is not really wise to create and drop a database like that link.
Justin
Maybe you are looking for
-
My Apple ID hacked after 12 hours
2 days ago, I bought iPhone5. Last night I did nine iCloud email (account) and off course all find my iPhone on YOU. Everything worked very well, but this morning I tried to connect to Game Center and password was rejected. Then I went to the Apple s
-
code is 80072EFE, please tell me what I need to do
-
WRT110, Vista, wired desktop cannot access utility based on the router's web
Computer Vista hard wired to the WRT110 cannot access the router. But it CAN get to internet and CAN ping router without losses. The XP machine is wireless, can get internet and CAN ping router without losses, but also can NOT access the router page.
-
Good question - Cup out of its persistent
Hi, can someone help me? I have an Asus laptop with Windows 7 and for the last two weeks the sound has been regularly cut. Every 10 seconds or so, for example when I Watch youtube or playing a CD the sound 'clicks' for a second playback. I checked th
-
How to enable ipv6 in spa112 to accept the definition of fx line with ipv6 and asterisk 1.8?