Transpose the row of columns inside a FOR LOOP
Hi allI'm on 11g R1 and I have 2 tables
select * from table1;
PRODUCTNO PRODUCT_NAME STATUS
-------------- -------------------- --------
1 TV 5
2 CAR 5
3 COMPUTER 5
4 Accessories 5
select * from table2;
PRODUCTNONO PART_NAME
--------------------- --------------------
1 ANTENNA
1 CABLE
2 BRAKES
2 TYRES
2 SPARK PLUGS
3 MONITOR
4 PRINTER
4 KEYBOARD
5 MOUSE
In a PL/SQL block, I have the cursor
cursor cur_1 (P_name varchar2) is
select a.productno,a.product_name,a.status, b.part_name
From table1 a, table2 b
Where a.productno = b.productno
and b.part_name = P_name;
a l_col collection that stores the values of part_name little, something likeANTENNA
CABLE,
BRAKES,
TIRES,
SPARK PLUGS,
MONITOR
I now have in the pl/sql block
for j in 1 .. l_col.count loop
For L_Carq In cur_1 (L_col(j).part_name)
Loop
Dbms_Output.Put_Line(L_carq.productno || ' | ' ||
L_carq.product_name || ' | ' ||
L_carq.part_name || ' | ' ||
L_carq.status);
Dbms_Output.Put_Line('-----------------------------------------------------------------------------------------------------------------------------------');
--/*
Update table1
set status = 0
Where productno = (l_carq.productno );
Commit;
--*/
End Loop;
and the dbms_output is
PRODUCTNO PRODUCT_NAME PART_NAME STATUS
------------------ ---------------- ----------------- ------------
1 TV ANTENNA 5
1 TV CABLE 5
2 CAR BRAKES 5
2 CAR TYRES 5
2 CAR SPARK PLUGS 5
3 COMPUTER MONITOR 5
You have an idea how I can get the dbms_output as
PRODUCTNO PRODUCT_NAME PART_NAME STATUS
------------------ ----------------------- ------------------- ----------
1 TV ANTENNA,CABLE 5
2 CAR BRAKES,TYRES,SPARK PLUGS 5
3 COMPUTER MONITOR 5
On SQL, I could format the output very easy, but unfortunately I'm forced to use the loop for.Any help is appreciated.
Thank you
Dani
The collection must be extended "manually":
-- initializing with the default constructor (you can do it in the declaration section) :
l_col := sys.odcivarchar2list();
For K In D Loop
l_col.extend;
l_col(l_col.last) := k.part_name;
End Loop;
I can't specify each part_name in where clause
Where do you source?
If there is another table, you can use BULK COLLECT, but maybe I don't see the whole picture here?
Published by: odie_63 on August 2, 2010 16:45
Tags: Database
Similar Questions
-
Restarting a task for the acquisition of data inside a For loop
Hello
I need iterate through my acquisition of data. Currently, I'm doing this through the creation, implementation and tasks for the acquisition of data inside a loop For which is iterated according to the needs of compensation. Unfortunately, the creation of these DAQ tasks slow down my code.
I would like to be able to create the tasks outside the loop, pass them in and revive the tasks at the beginning of each iteration. Is there an easy way to do this?
Otherwise, is there a way to make the standard DAQmx digital startup trigger trigger several times (so that it starts each pulse data acquisition in a long pulse rather than just the first pulse train)?
Thank you!
-Evan
I whent before and created this example for you (and many others.)
-
How to change the rows and columns of newtabs?
I can't change the rows and columns to mozilla version 33
From topic: config browser.newtabpage.columns shows 5 by default, but these 5 columns appear not only 3 as before. Don't know why, but I use generally not even the default new tab page in my profile daily.
Still works this - https://addons.mozilla.org/en-US/firefox/addon/new-tab-tools/ - extension to change the page of newTab via a user accessible interface name in the Addons, rather than routing autour Manager inside Firefox. I use this add-on in a second profile that I use for my favorite sites
-
How to create the table with the rows and columns using the layout?
One of my friends advised me to put my site on the mode of provision as it is better than the standard as he said
but I couldnot make an ordinary table with the rows and columns in mode available th
y at - there someone who can tell me how to?
Thank you very muchWednesday, April 18, 2007 21:01:38 + 0000 (UTC), "Mr.Ghost".
wrote: > A friend of mine advised me to put my whole site on the mode of disposal as its
> better than standard, as he saysYour friend won't. Don't listen to him any more. Mode of disposal creates
very fragile and rigid code pauses at the first opportunity.Gary
-
How to join two tables if you transpose the rows, columns and rows in one of the table
Hi guys,.
can someone help me please in the write request
I have two tables
Agents and Agent phones but in the agent phones table for the id of an agent it displays 4 rows because one of the column there types of different phones (office, mobile, home, fax)
So instead of display 4 rows, I used max(case...) to convert rows to columns
now how to reach it with another table
Requirement:
Database: 11.2.0.2.0
create the table AGENT_PHONE
(
agent_id NUMBER (20) not null,
agent_type_code VARCHAR2 (10) not null,
agent_type_prefix VARCHAR2 (10) not null,
Phone_Number VARCHAR2 (16) not null,
phone_type_code VARCHAR2 (10) not null
)
CREATE TABLEAGENTS
(
agent_id NUMBER (20) not null,
agent_type_code VARCHAR2 (10) not null,
agent_type_prefix VARCHAR2 (10) not null,
NAME VARCHAR2 (40) NOT NULL
)
INSERT INTO AGENT_PHONE(AGENT_ID,AGENT_TYPE_CODE,AGENT_TYPE_PREFIX,PHONE_NUMBER,PHONE_TYPE_CODE)
VALUES (29709, ARE ', 'OFFICE', '4805551436', 'CELL');
INSERT INTO AGENT_PHONE(AGENT_ID,AGENT_TYPE_CODE,AGENT_TYPE_PREFIX,PHONE_NUMBER,PHONE_TYPE_CODE)
VALUES (29709, ARE ', 'OFFICE', '1111111111', 'PHONE');
INSERT INTO AGENT_PHONE(AGENT_ID,AGENT_TYPE_CODE,AGENT_TYPE_PREFIX,PHONE_NUMBER,PHONE_TYPE_CODE)
VALUES (29709, ARE ', 'OFFICE', '2223334444',' OFF');
INSERT INTO AGENT_PHONE(AGENT_ID,AGENT_TYPE_CODE,AGENT_TYPE_PREFIX,PHONE_NUMBER,PHONE_TYPE_CODE)
VALUES (29709, ARE ', 'OFFICE', '5556667788', 'FAX');
INSERT INTO VALUES AGENTS
(29709, ARE ', 'OFFICE', 'FLY');
INSERT INTO VALUES AGENTS
(1234, ARE ', 'OFFICE', 'MIKE');
SELECT * FROM AGENT_PHONES
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX PHONE_NUMBER PHONE_TYPE_CODE ---------------------------------------------------------------------------------------------
29709 RE OFFICE 4805551436 CELL 29709 RE OFFICE 1111111111 PHONE 29709 RE OFFICE 2223334444 OFF 29709 RE OFFICE 5556667788 FAX
SELECT * AGENTS
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX NAME
29709 RE OFFICE ROB 1234 RE OFFICE MIKE
This is so the data we have in both table
Now, I transposed rows to columns in the table of agent phones so I used the following query
SELECT AP. AGENT_ID,. AGENT_TYPE_CODE,. AGENT_TYPE_PREFIX.
MAX (CASE WHEN AP. PHONE_TYPE_CODE = 'CELL' THEN AP. PHONE_NUMBER END) AS CELL.
MAX (CASE WHEN AP. PHONE_TYPE_CODE = 'OFF' THEN AP PHONE_NUMBER END) AS TURNED OFF.
MAX (CASE WHEN AP. PHONE_TYPE_CODE = 'FAX' THEN AP. PHONE_NUMBER END) LIKE FAX,.
MAX (CASE WHEN PHONE_TYPE_CODE = 'PHONE'. THEN AP PHONE_NUMBER END) AS PHONE
AGENT_PHONE AP
WHERE AP. AGENT_ID = 29709
GROUP OF AP. AGENT_ID, AP. AGENT_TYPE_CODE, AP. AGENT_TYPE_PREFIX.
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX CELL OFF FAX PHONE 1 29709 RE OFFICE 4805551436 2223334444 5556667788 1111111111 My question is how this to join the agents table so that my output should be like this...
I want to display all the results in the table of the Agent, even if they are not in the table of agent phones. As you can see there are other agent id 1234 is also populated
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX NAME AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX CELL PHONE OFF FAX --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
29709 RE OFFICE ROB 29709 RE OFFICE 4805551436 1111111111 2223334444 5556667788 1234 RE OFFICE MIKE Currently, I run this query and I get the output as below
SELECT *.
AGENTS HAS
LEFT OUTER JOIN AGENT_PHONE AP
ON A.AGENT_ID = AP. AGENT_ID
AND A.AGENT_TYPE_CODE = AGENT_TYPE_CODE.
AND A.AGENT_TYPE_PREFIX = AGENT_TYPE_PREFIX.
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX NAME AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX PHONE_NUMBER PHONE_TYPE_CODE 1 29709 RE OFFICE ROB 29709 RE OFFICE 4805551436 CELL 2 29709 RE OFFICE ROB 29709 RE OFFICE 1111111111 PHONE 3 29709 RE OFFICE ROB 29709 RE OFFICE 2223334444 OFF 4 29709 RE OFFICE ROB 29709 RE OFFICE 5556667788 FAX 5 1234 RE OFFICE MIKE I want id 29709 agent in a line with 1234 agent also id to display
You can rotate your phone number of agent in columns
Select *.
of AGENT_PHONE
pivot)
min (PHONE_NUMBER)
for PHONE_TYPE_CODE in ('CELL' as a 'CELL', 'PHONE' like 'PHONE', 'OFF' in the 'OFF', 'FAX' as 'FAX')
)
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX CELL PHONE OFF FAX 29709 RE OFFICE 4805551436 1111111111 2223334444 5556667788 Then you can join to view inline or CTE
with AGENT_PHONE_PIVOT like)
Select *.
of AGENT_PHONE
pivot)
min (PHONE_NUMBER)
for PHONE_TYPE_CODE in ('CELL' as a 'CELL', 'PHONE' like 'PHONE', 'OFF' in the 'OFF', 'FAX' as 'FAX')
)
)
SELECT *.
AGENTS HAS
LEFT OUTER JOIN AGENT_PHONE_PIVOT AP
ON A.AGENT_ID = AP. AGENT_ID
AND A.AGENT_TYPE_CODE = AGENT_TYPE_CODE.
AND A.AGENT_TYPE_PREFIX = AGENT_TYPE_PREFIX.
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX NAME AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX CELL PHONE OFF FAX 29709 RE OFFICE ROB 29709 RE OFFICE 4805551436 1111111111 2223334444 5556667788 1234 RE OFFICE MIKE - - - - - - - Is that what you're looking for?
-
Insert only one cell in a table (not an extra set of the row or column)?
I have problems by performing an easy Assembly. I need to insert a a 'CELL', but I am only considered the possibility to insert a set 'ROW' or 'COLUMN '. I would just insert a cell and the rest of the content below it moves accordingly. Help, please!
There is no way to put it while you just insert a cell and everything moves along after that cell?
Simple answer is 'no '. I'm sorry.
InDesign tables are not good for juggling data. If you have a project that requires single-cell-integration on a regular basis, I suggest to make your table outside InDesign in an application with tools more easy table-cell-juggling (Excel comes to mind here) and then perfecting you use table and cell styles make it easy to update. Of course, it will always be a concern, but the hassle can be minimized.
-
Expand the table, the rows and columns
I can make my table grow in rows or in columns, but not both, when I add a line, it will not add the column that I just added and the colum will not include the line that I just added.
We know what script I need for the addInstance know whan I added a new row or column.
Thank you.
I had a look, and here's what I came with. Whenever you add a row or column, you are chnaging the expression of som that allows to add the next row or column. I added a loop around each call to add the columns/rows as needed.
Is that what you're looking for? See the attached file
Paul
-
Aliases for columns in explicit for LOOP sliders
Hi friends
In the below block (forloop) I don't get countsal values, but when I run the query, it gives the County. By this (COUNTSAL) the below if condition fails .i don't know why it is failing.
But when I use it with a simple loop gives a correct result.
FOR LOOP:
SCR CL;
SET SERVEROUTPUT ON;
DECLARE
CURSOR C1 IS EMPNO, ENAME, COUNT (SAL) SELECT COUNTSAL OF THE GROUP EMP BY EMPNO, ENAME;
SHEIKYERBOUTI C1% ROWTYPE;
BEGIN
TO IND IN C1
WHEN the OUTPUT C1% NOTFOUND;
DBMS_OUTPUT. PUT_LINE (IND. EMPNO);
DBMS_OUTPUT. PUT_LINE('SALCOUNT:'||) SHEIKYERBOUTI. COUNTSAL);
IF SHEIKYERBOUTI. COUNTSAL > 0 THEN
DBMS_OUTPUT. PUT_LINE ('NAME' |) SHEIKYERBOUTI. ENAME);
END IF;
END LOOP;
END;
simple loop; (get a correct output)
SCR CL;
SET SERVEROUTPUT ON;
DECLARE
CURSOR C1
IS
SELECT EMPNO, ENAME, COUNT (SAL) COUNTSAL OF THE GROUP EMP BY EMPNO, ENAME;
SHEIKYERBOUTI C1% ROWTYPE;
BEGIN
OPEN C1;
LOOP
FETCH C1 INTO SHEIKYERBOUTI.
WHEN EXIT C1% NOTFOUND;
IF SHEIKYERBOUTI. COUNTSAL > 0 THEN
DBMS_OUTPUT. PUT_LINE('NAMES:'||) SHEIKYERBOUTI. ENAME);
END IF;
END LOOP;
END;
Please suggest me.
Your code is the missilg LOOP keyword. Also, loop for CURSOR automatically closes after extraction of all lines - no OUTPUT WHEN you have to. But the key is to loop to extract CURSOR loop lines said variable registration - a following KEYWORD, IND in your case:
DECLARE
CURSOR C1 IS EMPNO, ENAME, COUNT (SAL) SELECT COUNTSAL OF THE GROUP EMP BY EMPNO, ENAME;
BEGIN
TO IND IN C1 LOOP
DBMS_OUTPUT. PUT_LINE (IND. EMPNO);
DBMS_OUTPUT. PUT_LINE('SALCOUNT:'||) UNRELIABLE COUNTSAL);
IF COUNTSAL > 0 THEN.
DBMS_OUTPUT. PUT_LINE ('NAME' |) UNRELIABLE ENAME);
END IF;
END LOOP;
END;
/
7521
SALCOUNT: 1
NAMESWARD
7566
SALCOUNT: 1
NAMESJONES
7844
SALCOUNT: 1
NAMESTURNER
7876
SALCOUNT: 1
NAMESADAMS
7499
SALCOUNT: 1
NAMESALLEN
7369
SALCOUNT: 1
NAMESSMITH
7782
SALCOUNT: 1
NAMESCLARK
7839
SALCOUNT: 1
NAMESKING
7698
SALCOUNT: 1
NAMESBLAKE
7900
SALCOUNT: 1
NAMESJAMES
7902
SALCOUNT: 1
NAMESFORD
7788
SALCOUNT: 1
NAMESSCOTT
7654
SALCOUNT: 1
NAMESMARTIN
7934
SALCOUNT: 1
NAMESMILLERPL/SQL procedure successfully completed.
SQL >
SY.
-
Create a directory tree: how to call a global function from inside a for loop
Hello
I am trying to create a workflow that will create a directory tree in vCenter.
Concept:
Basically, I am trying to execute nested for loops for each level of the tree to the caller a global tree.
Problem:
The 1st loop for works and creates the file 'Dev '. The second loop for does not work with error message:
[19:16:16.219 2013-06-27] [I] building Dev folder
[19:16:16.474 2013-06-27] [I] directory Built: Dev
[19:16:16.476 2013-06-27] [I] the records building servers
[19:16:16.480 2013-06-27] [I] TypeError: cannot find the createFolder function in dev object. (Workflow: TEST_TNG_New_Site_Folder_Structure / Scriptable task (item2) #36)I think it has to do with JavaScript not being not able to call a global function in a nested object (I'm not a programmer and don't know JavaScript, so don't shoot me on that :)
Code: (will clean this up once I do work)
var folderBase is ['Dev', 'DMZ', 'Prod', 'UAT'];.
var folderT1 = ["servers", "Jobs"];
var folderT2 = ['Window', 'Linux'];
var folderT3 is ["Repo2', 'Repo3', 'Repo1', 'Repo4'];.
var folderT4 is ["T1", "T2", "T3"];.
Create the files folderBase level
for (var i = 0, l = folderBase.length; i < l; i ++) {}
var rootFolder = parentFolder;
buildFolderTree (folderBase [i]);
Create the files folderT1 level
for (var j = 0, l = folderT1.length; j < l; j ++) {}
var rootFolder = folderBase [i];
buildFolderTree (folderT1 [j]);
Create the files folderT2 level
for (var k = 0, l = folderT2.length; k < l; k ++) {}
var rootFolder = folderT1 [j];
buildFolderTree (folderT2 [k]);
Create the files folderT3 level
for (var x = 0, l = folderT3.length; x < l; x ++) {}
var rootFolder = folderT2 [k];
buildFolderTree (folderT3 [x]);
Create the files folderT4 level
for (var y = 0, l = folderT4.length; y < l; y ++) {}
var rootFolder = folderT3 [x];
buildFolderTree(folderT4[y]);
}
}
}
}
}
function buildFolderTree (folderName) {}
System.log ("Building folder" + folderName);
rootFolder.createFolder (folderName);
System.log ("directory of frame:" + folderName);
}
Any help will be appreciated.
Thank you
B
Hello
The createFolder() method returns the object VcFolder to the folder just created, for the new file to be used immediately. Here is how I modified the code:
Create the files folderBase level
for (var i = 0; i)
var newBaseFolder = buildFolderTree (parentFolder, folderBase [i]);
Create the files folderT1 level
for (var j = 0; j)
var newT1Folder = buildFolderTree (newBaseFolder, folderT1 [j]);
Create the files folderT2 level
for (var k = 0; k)
var newT2Folder = buildFolderTree (newT1Folder, folderT2 [k]);
Create the files folderT3 level
for (var x = 0; x)
var newT3Folder = buildFolderTree (newT2Folder, folderT3 [x]);
Create the files folderT4 level
for (var y = 0; y)
var newT4Folder = buildFolderTree (newT3Folder, folderT4 [y]);
}
}
}
}
}function buildFolderTree (parentFolderObj, folder_name) {}
System.log ("Building folder" + folderName);
var newFolder = parentFolderObj.createFolder (folderName);
System.log ("directory of frame:" + folderName);
return NewFolder;
} -
How to transpose the rows in multiple columns by using PivotTable
I have 1 line containing 12 columns with the value "JAN", "FEB", "MAR", "J-1","F-1","M-1","J-2","F-2","M-2","J-3","F-3","M-3"
I want to display like
JAN J - 1 F - 1 M - 1
FEB J - 2 F - 2 M - 2
MAR F - 3 J - 3 M - 3
How to achieve the foregoing?Today, you have only 3 months JAN, Feb, Mar. Is it always the same number of columns. What happens if several months ago we added this line?
Your data is really coming from relational source or some sort of text file?
There is a better way to do this in narrative using HTML mode, if your condition is just to show them in several lines and do some math.
Go to Narrative display;
In the prefix, use
In the text box 'Story' add something like that
@1 @4 @7
@2 @5 @8
@3 @6 @9 As a suffix, use
You can also add simple calculations like sum etc at the bottom of these lines as the overall totals.
Kris
-
How to get the total of column in javascript for an inputText.
Hi Experts,
Jdev 12.1.3.0
How can I make a total of a column in javascript. Scope is backingbeanscope.
column contains inputText and column footer is an outputText.
Thank you
Roy
Hi Roy, you have inputText, average, you add the line, then you want to calculate the total? If that's true, then you should try the JS code below
function doSum (evt) {var inputTxt = evt.getSource ();} var num = 0; var colId = inputTxt.getProperty ("colId"); outId var = inputTxt.getProperty ('outId'); var table = inputTxt.findComponent('::t1'); var nbRows = parseInt (table.getRows ()); var tableAbsLocator = table.getAbsoluteLocator (); While (nbRows)-{var rowCol = AdfPage.PAGE.findComponentByAbsoluteLocator (tableAbsLocator + "[" + nbRows + "]:" + colId);} NUM = num + rowCol.getValue (); } var outputText = inputTxt.findComponent (outId); outputText.setValue (num); } For more information, see this https://community.oracle.com/thread/3512479
: Nitesh
-
convert the data in the rows into columns
Hello
my table structure in this
The same employee might have to take two loans.i different need to display every ready as a separate... column detail likeEmp_id loancode interest principal 1 003 12 1000 1 004 12 2000 2 007 16 2500
I need to break all the different emp_id and soc_code (from another table)Empi_id soc_code loancode003 interestforloancode003 principal_for_loancode003 loancode004 i int_004 principal_for_loancode004
pls help
Kind regardsThe WITH clause is called subquery factoring (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_10002.htm#i2077142)
It is used to create tables of nickname, roughly the same as using inline views in the query.
for example, it's the same thing...
SQL> ed Wrote file afiedt.buf 1 select decode(tp,1,'Op/Bal','Cl/Bal') as type 2 ,max(case when period = 'JAN' and rn=1 then decode(tp,1,opn_bal,clo_bal) end) as Jan1 3 ,max(case when period = 'JAN' and rn=2 then decode(tp,1,opn_bal,clo_bal) end) as Jan2 4 ,max(case when period = 'JAN' and rn=3 then decode(tp,1,opn_bal,clo_bal) end) as Jan3 5 ,max(case when period = 'FEB' and rn=1 then decode(tp,1,opn_bal,clo_bal) end) as Feb1 6 ,max(case when period = 'FEB' and rn=2 then decode(tp,1,opn_bal,clo_bal) end) as Feb2 7 ,max(case when period = 'FEB' and rn=3 then decode(tp,1,opn_bal,clo_bal) end) as Feb3 8 from (select period, opn_bal, clo_bal, row_number() over (partition by period order by opn_bal) rn from dta), 9 (select rownum as tp from dual connect by rownum <= 2) 10* group by tp SQL> / TYPE JAN1 JAN2 JAN3 FEB1 FEB2 FEB3 ------ ---------- ---------- ---------- ---------- ---------- ---------- Op/Bal 2000 2200 2300 5000 Cl/Bal 3000 3300 3400 4500 SQL>
Simply, it makes it more tidy code and allows the same sets of data to be referenced multiple times in a query without duplicating the request online.
It is also useful to create sets of dummy test data to use (you will see people on the forum to use for that) so that we don't have to create tables in our database just to test with.
-
To display all the rows and columns in proper alignment
My Question is when I want to display several lines recoreds must divides several times and display recoreds are combersome to understand, so please give me the solution to this problem.
When this query is executed, a row is available in several lines after this issue under some poster line lines are displayed.
Thank you!
SELECT
E.Empno EmpNo,
E.Ename EmpName,
E.Job EmpJob,
E.HireDate EmpHireDate,
E.Deptno Empdeptno,
NVL ((TO_CHAR (E.Comm)), "Not like") EmpComm,.
E.Sal EmpSal,
E.Sal + NVL(E.Comm,0) EmpTotalSal,
(TO_CHAR(SYSDATE,'YYYY')-TO_CHAR(E.HireDate,'YYYY')) EmpExpInYear,
E.DEPTNO EmpDeptno,
ED. DNAME EmpDname,
ED. Loc EmpDeptLoc,
. Grade EmpSalGrade,
NVL ((to_char (M.empno)), 'supereme') Mgrno,.
NVL ((to_char (M.ename)), the auth ') MgrName,.
NVL ((to_char (M.HireDate)), "Not assigned") MgrHireDate,.
NVL ((to_char (M.SAL)), "Not assigned") MgrSal,.
NVL ((to_char (M.comm)), 'not applicable') MgrComm,.
NVL ((to_char (M.SAL + NVL(M.comm,0))), "Not assigned") MgrTotalSal,.
NVL ((TO_CHAR (E.HireDate - M.HireDate)), 'Bishop no assign') Seniorindays,.
NVL ((to_char ((to_char(SYSDate,'YYYY')-to_char(M.HireDate,'YYYY'))-(TO_CHAR(SYSDATE,'YYYY')-TO_CHAR(E.HireDate,'YYYY'))), "No Assign mgr") MgrSeniority,
NVL ((to_char (to_char(sysdate,'YYYY')-to_char(M.HireDate,'YYYY'))), "No available Mgr") MgrExpInYear,.
NVL ((to_char (E.SAL - M. SAL)), "Not assigned") EmpAndMgrSalDiff,.
NVL ((to_char (M.DEPTNO)), "not assigned") Mgrdeptno,.
NVL ((TO_CHAR (MD. DNAME)), "sup has no Bishop") MgrDeptName,.
NVL ((TO_CHAR (MD. (Loc)), "Sup has no Bishop") MgrDeptLoc,.
NVL ((TO_CHAR (MS. Grade)), 'Sup has no Bishop') MgrSalGrade
Of
EMP, Emp, Dept ED Dept MD, MS SalGrade M, SalGrade'RE
WHERE M.Empno (+) = E.Mgr AND E.Deptno = ED. DEPTNO (+) AND
M.Deptno = MD. DEPTNO (+) AND
M.Sal MS. it (+) AND SM. HiSal (+) AND
E.Sal BETWEEN YOU. It (+) ARE. HiSal (+)
/
EMPNO EMPNAME EMPJOB EMPHIREDA EMPDEPTNO EMPCOMM EMPSAL EMPTOTALSAL EMPEXPINYEAR EMPDEPTNO EMPDNAME EMPDEPTLOC EMPSALGRADE
---------- ---------- --------- --------- ---------- ---------------------------------------- ---------- ----------- ------------ ---------- -------------- ------------- -----------
MGRNO MGRNAME MGRHIREDAT MGRSAL MGRCOMM MGRTOTALSAL
---------------------------------------- ---------- ---------- ---------------------------------------- ---------------------------------------- ----------------------------------------
MGRSENIORITY MGREXPINYEAR EMPANDMGRSALDIFF MGRDEPTNO MGRDEPTNAME
---------------------------------------- ---------------------------------------- ---------------------------------------- ---------------------------------------- ---------------------
MGRDEPTLOC MGRSALGRADE
--------------------- ----------------------------------------
7839 not KING PRESIDENT November 17, 81 10 no Comm 5000 5000 28 10 ACCOUNTING NEW YORK 5
s supereme auth not give not give not there don't give
No mgr assign No. available Bishop not to dispose of not assigning overtime is not mgr
SUP is not Bishop Sup is not mgr
EMPNO EMPNAME EMPJOB EMPHIREDA EMPDEPTNO EMPCOMM EMPSAL EMPTOTALSAL EMPEXPINYEAR EMPDEPTNO EMPDNAME EMPDEPTLOC EMPSALGRADE
---------- ---------- --------- --------- ---------- ---------------------------------------- ---------- ----------- ------------ ---------- -------------- ------------- -----------
MGRNO MGRNAME MGRHIREDAT MGRSAL MGRCOMM MGRTOTALSAL
---------------------------------------- ---------- ---------- ---------------------------------------- ---------------------------------------- ----------------------------------------
MGRSENIORITY MGREXPINYEAR EMPANDMGRSALDIFF MGRDEPTNO MGRDEPTNAME
---------------------------------------- ---------------------------------------- ---------------------------------------- ---------------------------------------- ---------------------
MGRDEPTLOC MGRSALGRADE
--------------------- ----------------------------------------
7788 ANALYST SCOTT April 19, 87 20 No. Comm 3000 3000 22 20 RESEARCH DALLAS 4
7566 JONES 2 April 81 2975 Not applicable 2975
6 28 25 20 RESEARCH
DALLAS 4
Published by: user12252618 on December 9, 2009 11:07all pages
fixed lines
Set trimoutIf it's in a file then
all pages
SETL lines
Set trimspoolor to start...
http://www.orafaq.com/wiki/SQL * Plus_FAQ #How_does_one_disable_SQL.2APlus_formatting.3F
-
dispplaying data on the graph of waveform inside/outside while loop
I create a vi using the random number generator, entering the number in the function(express>>arithmateic>>maths>>trig>>sine) fishing and connect the output of the function sine waveforms. Table of waveform show no problem. If I replace the with graphic waveform table, I get an error that the source type is differenct type of sink. I then put waveform chart outside loop everything hoping that tunnel would act as a table, but still I get the same error. I then put build table palette between all border and loop waveform graph which is placed outside the while loop. I get no error, but no data is displayed on the graph of a waveform. Theoretically, if I press stop I would see a distorted sine wave on the waveform graph, but this doesn't seem to be the case. I am wondering how to view data on the graph of a waveform in such cases!
Thank you in advance for reading and help!
See you soon
First of all, you can take a part of the basis of LabVIEW tutorials.
Since you need to work with a chart and it is the preferred method to display data point by point, I don't know why you try to use a chart. In any case, you cannot use all simply a table of generation because that would be just the result of the last iteration and your graph indicates it is a single point. If you activate autoindexing, then you get all the values, but not before the end of the loop. If you were to use a shift register and the build dashboard, you might place the graphic inside the loop, but then you would face performance issues that the table would grow uncontrollably.
-
addEventListener inside a for loop
Seal of the code that I need to create a number of text box controls and text is based on an input variable that will emulate columns. Each loop sets the TextArea (col) and the text (pCol) control properties and methods based on the iteration (i). When I run problems, that's when I add an event listener for the TextArea component.
Rather than create a listener different for each iteration (col1, col2, col3, etc.), the listener is redefined. The result is that the last text built control reflects any changes made to the final textarea built; However, no other text controls are updated on the evolution of the corresponding text box.
I don't know that I'm a little something missing here. Someone saw?
Thanks in advance!Otherwise if you use the id as 'col' + colNum and there will be less than 10 boxes, then you can use:
private void changeHandler(event:Event):void {}
var idx:int = int (event.currentTarget.id.slice(-1));
Text (placardHBox.getChildAt (idx - 1)) .text = event.currentTarget.text;
}Of course, if you do a basic designation zero, you don't have to deal with the stuff of subtraction.
TS
Maybe you are looking for
-
no boot device - insert the boot device and press a key
I am computer purchase hp laptop for 2 days. in my laptop suddenly occur in the virus so I am recovery os DVD in the driver cd and dvd are running then suddenly second writing system is interrupted and automatically power off. Why do I admin please
-
It is ridiculous to sort bookmarks in Firefox. It does not work correctly
How the hell sort bookmarks by any method. I want to sort them by name. The approach to do this is absurd.
-
I got a new HP laptop 2000-2202TU 5 days back. I did have the time to make a backup of the Win 8 operating system, where not partition space available yet. However, day 1, he's stuck every now and then, and also the performance is low, even if I'm on
-
Satellite A100 led only flashes of batery
Hello, I have laptop to-100. With the battery charger LED does not illuminate. If the laptop try power led just blinks the orange battery 10 - 11 times. It's as if you leave the laptop battery. They are two, charger and battery, try turning the power
-
I need to reformat the drive or remove an operating system
Although this issue will be interesting... I have two windows vista operating systems on my computer. I know that I don't have two disks. but on my c and d ' training is windows vista. I need to delete one or reformat my hard drive... but the probl