How to test a procedure returns the result set
HelloI have a following code:
{color: #0000ff} create or replace the TYPES of PACKAGING
AS
type cursorType is ref cursor;
end;
create or replace PROCEDURE GetAllCategories (p_cursor in the Types.cursorType)
AS
Start
Open p_cursor for SELECT * CATEGORY;
end; {color}
I would like to test the procedure of * {color: #000000} visualization output resultset {color} *. How can I do with SQL Developer?
In fact, when select RUN in SQL Developer, I got the following code:
DECLARE
P_CURSOR types.cursorType;
BEGIN
GetAllCategories (P_CURSOR = & gt; P_CURSOR);
END;
When I run it, it is successful but there is no result set displayed. However if I execute SELECT * FROM category only in the SQL Editor, I see the result set in the grid. Then where the result set did when he went through the procedure?
Thanks in advance for any help.
Published by: CarbonFiber Sep 22, 2008 20:52
Is a simple way with sqlplus
SQL> create or replace package types
2 as
3 type cursortype is ref cursor;
4 end;
5 /
Package created.
SQL> create or replace procedure getallemp(p_cursor in out types.cursortype )
2 as
3 begin
4 open p_cursor for select * from emp;
5 end;
6 /
Procedure created.
SQL> var lcursor refcursor
SQL>
SQL> exec getallemp(:lcursor)
PL/SQL procedure successfully completed.
SQL> print lcursor
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO DIV
---------- ---------- --------- ---------- --------- ---------- ---------- ---------- ----------
7369 SMITH CLERK 7902 17-DEC-80 800 20 10
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30 10
7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30 10
7566 JONES MANAGER 7839 02-APR-81 2975 20 10
7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30 10
7698 BLAKE MANAGER 7839 01-MAY-81 2850 30 10
7782 CLARK MANAGER 7839 09-JUN-81 2450 10 10
7788 SCOTT ANALYST 7566 19-APR-87 3000 20 10
7839 KING PRESIDENT 17-NOV-81 5000 10 10
7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30 10
7876 ADAMS CLERK 7788 23-MAY-87 1100 20 10
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO DIV
---------- ---------- --------- ---------- --------- ---------- ---------- ---------- ----------
7900 JAMES CLERK 7698 03-DEC-81 950 30 10
7902 FORD ANALYST 7566 03-DEC-81 3000 20 10
7934 MILLER CLERK 7782 23-JAN-82 1300 10 10
14 rows selected.
Thank you
Knani.
Tags: Database
Similar Questions
-
How to add additional data in the result set of cfquerry?
Hi all
I'm new to cold fusion it please help me
I'm using the tag cfquery for running a select query and get the name of the system and the system is the...
But I want an id system and additional system name to add to the result of this query with to change the database ...
Please anyone suggest me... IT is URGENT
Thanks in advance
SainabaUH... - What is a line or two columns?
Whatever it is, there are functions to achieve is: queryAddRow() or queryAddColumn(). Take a look @ query functions:
http://livedocs.Adobe.com/ColdFusion/8/htmldocs/functions-pt0_16.html#1099653
--
Adam
-
Procedure to take income data set and return the result set
Hi all
I have a situation where there will be a 'standard' set of data (source_data below), and I need to get information on outcomes for certain groups of customers (client_data for example). As SQL right it would be very easy (see below) - real world problem is a bit more complicated. However, what I would do is set up a procedure so that I can pass on my data of client variables and it will spit back on a set of data that is identical to the output of the given SQL.
A pointer in the right direction would be appreciated. If I could 'pass customer data' as a string that contains an SQL query, which would be even better, for example
GetResults ("select client_id, min (whatever_date) from some_client_data which...", MyOutputRefCursor?)
Thank youcreate table source_data (client_id integer, tdate date, amount number(6,2)); create table client_data (client_id integer, critical_date date); insert into source_data values(1,to_date('20090104','yyyymmdd'),1000); insert into source_data values(1,to_date('20100104','yyyymmdd'),2000); insert into source_data values(1,to_date('20110104','yyyymmdd'),3000); insert into source_data values(1,to_date('20120104','yyyymmdd'),4000); insert into source_data values(2,to_date('20090104','yyyymmdd'),5000); insert into source_data values(2,to_date('20090604','yyyymmdd'),1000); insert into source_data values(2,to_date('20100104','yyyymmdd'),2000); insert into source_data values(3,to_date('20091004','yyyymmdd'),3000); insert into source_data values(3,to_date('20091104','yyyymmdd'),4000); insert into source_data values(4,to_date('20090104','yyyymmdd'),5000); insert into source_data values(4,to_date('20090604','yyyymmdd'),2000); insert into client_data values(1,to_date('20110104','yyyymmdd')); insert into client_data values(2,to_date('20090604','yyyymmdd')); select c.client_id, sum(CASE WHEN tdate < critical_date then amount else null end) used_before, sum(CASE WHEN tdate >= critical_date then amount else null end) used_after from source_data s inner join client_data c on s.client_id = c.client_id GROUP BY c.client_id;
JonHello
You can do this with a view. Make settings of the view a global temporary table:
create GLOBAL TEMPORARY table client_data ( client_id integer , critical_date date ) ON COMMIT PRESERVE ROWS ;
Then, you can create a view based on your real of the table and the parameter array:
CREATE OR REPLACE VIEW special_clients AS select c.client_id, sum(CASE WHEN tdate < critical_date then amount else null end) used_before, sum(CASE WHEN tdate >= critical_date then amount else null end) used_after from source_data s inner join client_data c on s.client_id = c.client_id GROUP BY c.client_id;
Because the table of parameters is a global temporary table, each session will have its own private copy of the table of parameters and therefore his own private version of the view.
-
PLSQL function to return the result of the query
Dear all,
Oracle Database SE1 11.2.0.1
I need to create a plsql function which should accept SQL as a parameter, execute it and return the result set.
Is this possible?
Madhu.149 wrote:
I need to create a plsql function which should accept SQL as a parameter, execute it and return the result set.
Be careful - results games indicate a set of data stored in memory. This is not what are sliders. This isn't how Oracle should be used.
Imagine that you implement such a result set function - which, on average, requires 1 MB of memory (private server) to store the results of the SQL query. A 100 users mean a 100 MB of memory required server. This is not suitable. Not at all. Never.
The correct back 'thing' is a handle to SQL cursor (called a ref cursor in this case). A SQL cursor is a "program" - that the appellant runs via the fetch command and generates one or more lines accordingly. Appellant repeatedly runs this slider through calls to fetch until this slider found and returns all rows affected (using consistent readings).
If you want an abstraction interface that the client can call via PL/SQL code in the database, so this crafting optimal SQL interface, creates the SQL cursor and returns the handle of the cursor (via the ref cursor data type) to the client.
-
I need to return the result of a query on a stored procedure
I need to return the result of a query to a stored procedure, I mean when I run a stored procedure it returns a result set in a select statement.
Best regards...Hello.
Do you really want a stored procedure for this?
Why not just a script that contains the query?Assuming that you don't really want a stored procedure, you'll have to decide what to do with the results.
An option is a slider.For example, you can write a procedure of this type to hold the query:
CREATE OR REPLACE PROCEDURE USP_TEST ( out_cursor OUT SYS_REFCURSOR ) IS BEGIN OPEN out_cursor FOR SELECT * FROM scott.emp; END USP_TEST; / SHOW ERRORS
You can move the cursor to another procedure for handling.
You could test this in SQL * more by creating a variable blond:
VARIABLE usp_test_cursor REFCURSOR; EXEC usp_test (:usp_test_cursor); PRINT :usp_test_cursor
-
How to exclude the each row of the result set XML declaration?
Hello
I have a table with an XMLTYPE column and would like to SELECT a set of rows. How can I exclude the each row of the result set XML declaration? My query currently looks like this, I am running through Spring JDBC:
SELECT XMLSerialize FROM t1 WHERE XMLEXISTS('$e/Event' PASSING XMLTEXT AS "e") ORDER BY t1.time DESC myschema.event (HAPPY t1.xmltext)
After selecting, in my application I convert each line in a string and concatenate all the rows in a large chain to analyze in a DOM model. I get a parser exception (org.xml.sax.SAXParseException: the target of the processing instruction corresponding to "[xX] [mM] [he's]" is not allowed) because there are several XML statements in my large chain. Of course, I could manually check the string on each line if it starts with the XML declaration, but it would be nicer if I could load the DB does not add it in the first place. Is there a way?
Thank you!
-DanielaHello
Some options that I can think of:
SELECT XMLSerialize(CONTENT XMLtransform(t1.xmltext, xmltype('
or quite simply,.
SELECT XMLSerialize(CONTENT extract(t1.xmltext,'/') ) FROM myschema.event t1 WHERE XMLEXISTS('$e/Event' PASSING XMLTEXT AS "e") ORDER BY t1.time DESC ;
-
OUTER JOIN query returns the results of JOIN IN-HOUSE 11.2.0.1.0
I'm data transfer in 11.2.01.0 (Windows XP 32-bit) and I wanted to compare the sizes of table with the same Table name in two different patterns, ML and SILENT, with a FULL OUTER JOIN (to account for all the tables and NULL values in a diagram).
The scheme of ML has 176 tables: schema TUT a 133 tables. The use of a standard INNER JOIN gives 131 paintings.
I get precisely the results with a FULL OUTER JOIN I get with an INTERNAL JOIN (not the same NULL values so I know they exist).
This happens in SQL-Plus, SQL_Developer and using Oracle Wire pilot of Data_Direct.
Here is the code:
Login: SYS as SYSDBA or SYSTEM (same results for either)
SELECT M.TABLE_NAME, M.NUM_ROWS, T.TABLE_NAME, T.NUM_ROWS
OF SYS. ALL_TABLES M FULL OUTER JOIN SYS. ALL_TABLES T ON M.TABLE_NAME = T.TABLE_NAME
WHERE
M.OWNER = 'ML' AND
T.OWNER = 'TUT';
Produce the same results with LEFT OUTER joins and RIGHT OUTER joins in ASI and Oracle (+) syntax.
Any thoughts?Hello
If you read what I posted, forget it. MScallion (below) gave the correct answerr.
If conditions such as
owner = 'ML'
in the WHERE clause, and then they will reject the rows of the result set formed by the join condition.
The inner join returns only 131 lines where the two 'paintings' have the same table_names.
The outer joins return multiple lines (133, 176 or 178) before the place WHERE the provision is applied , but the WHERE clause eliminates all lines except the 131 found by the inner join.Published by: Frank Kulash, July 10, 2010 14:23
-
Reading number of XML nodes in a document &; amp; return the result in the text member
Hi all
I wonder if you can help me with the following:
I want to read the number of nodes in an XML document and return the result in a text cast member. That's what I do so far, but he refuses to work
Yes, my mistake. That should have been:
--
tList =
nNodes = count(tList[1])
sText = «»
Repeat with i = 2 to nNodes
tText = tList [1] .getPropAt (i)
sText = sText & tText & RETURN
end repeat
-Remove rear BACK tank
remove the last tank of sText
-Place ALL the text in a text member
Member ("test1"). Text = sText
-- ... -
the coil does not return the result of the query
Hi people, I just my adventure begins with oracle sql basics course and I encountered the first problem.
as I wrote in the topic, after you run the statement I get only query itself in the output file with no query results.
exsample:
coil C:\Users\Tomasz\Desktop\cw1.txt
SELECT STARTDATE AS hire_date, employe_id, last_name, job_id
Employees;
spool off;
all advice?
Thanks in advance,
Tomasz.
Hi people, I just my adventure begins with oracle sql basics course and I encountered the first problem.
as I wrote in the topic, after you run the statement I get only query itself in the output file with no query results.
exsample:
coil C:\Users\Tomasz\Desktop\cw1.txt
SELECT STARTDATE AS hire_date, employe_id, last_name, job_id
Employees;
spool off;
You said "after the execution of the statement.
What you posted is NOT a statement; It is a script.
I select Run Script (F5) and the file contains the query and the result set.
If you use "Run the statement", you will get a file.
-
I use JDev 11.1.1.6 and when I type in a value in an af:inputListOfValues element and press enter or the tab key, it will replace the value I entered with the first element in the set of results LOV. If enter a value, simply click on the component af:inputListOfValues it works correctly. If I use the popup and find a value it works properly as well. I have a programmatic view object that contains a single transitional attribute (this is the view object that is used to create the list of the components of the value of) and then I have another object from view based on entities which defines one of its attributes in a list of the attribute value. I tried to use a base object view of entity to create the LOV to and everything works as expected, so I don't know if this is a bug when using programmatic view objects or if I need more code in the VOImpl. In addition, it seems after that first of the value being replaced by the first value in the result set that it will work correctly as well. Here are some excerpts of important code.
Also, it seems that this does not work only if the text entered in the component af:inputListOfValues would have only a single game, returned in the result set. For example, given the result defined in code: Brad, Adam, Aaron, Fred, Charles, Charlie, Jimmy
If we get into Cha, the component works as expected
If we register A, the component works as expected
If we get Jimmy, the component does not work as expected, and returns the first value of results IE. Brad
If we get Fred, the component does not work as expected, and returns the first value of results IE. Brad
I also checked that I get the same behavior in JDev 11.1.1.7
UsersVOImpl (programmatic view with 1 transitional attribute object)
import java.sql.ResultSet; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import oracle.adf.share.logging.ADFLogger; import oracle.jbo.JboException; import oracle.jbo.server.ViewObjectImpl; import oracle.jbo.server.ViewRowImpl; import oracle.jbo.server.ViewRowSetImpl; // --------------------------------------------------------------------- // --- File generated by Oracle ADF Business Components Design Time. // --- Wed Sep 18 15:59:44 CDT 2013 // --- Custom code may be added to this class. // --- Warning: Do not modify method signatures of generated methods. // --------------------------------------------------------------------- public class UsersVOImpl extends ViewObjectImpl { private static ADFLogger LOGGER = ADFLogger.createADFLogger(UsersVOImpl.class); private long hitCount = 0; /** * This is the default constructor (do not remove). */ public UsersVOImpl () { } /** * executeQueryForCollection - overridden for custom java data source support. */ protected void executeQueryForCollection (Object qc, Object[] params, int noUserParams) { List<String> usersList = new ArrayList<String>(); usersList.add("Brad"); usersList.add("Adam"); usersList.add("Aaron"); usersList.add("Fred"); usersList.add("Charles"); usersList.add("Charlie"); usersList.add("Jimmy"); Iterator usersIterator = usersList.iterator(); setUserDataForCollection(qc, usersIterator); hitCount = usersList.size(); super.executeQueryForCollection(qc, params, noUserParams); } // end executeQueryForCollection /** * hasNextForCollection - overridden for custom java data source support. */ protected boolean hasNextForCollection (Object qc) { Iterator usersListIterator = (Iterator)getUserDataForCollection(qc); if (usersListIterator.hasNext()) { return true; } else { setFetchCompleteForCollection(qc, true); return false; } // end if } // end hasNextForCollection /** * createRowFromResultSet - overridden for custom java data source support. */ protected ViewRowImpl createRowFromResultSet (Object qc, ResultSet resultSet) { Iterator usersListIterator = (Iterator)getUserDataForCollection(qc); String user = (String)usersListIterator.next(); ViewRowImpl viewRowImpl = createNewRowForCollection(qc); try { populateAttributeForRow(viewRowImpl, 0, user.toString()); } catch (Exception e) { LOGGER.severe("Error Initializing Data", e); throw new JboException(e); } // end try/catch return viewRowImpl; } // end createRowFromResultSet /** * getQueryHitCount - overridden for custom java data source support. */ public long getQueryHitCount (ViewRowSetImpl viewRowSet) { return hitCount; } // end getQueryHitCount @Override protected void create () { getViewDef().setQuery(null); getViewDef().setSelectClause(null); setQuery(null); } // end create @Override protected void releaseUserDataForCollection (Object qc, Object rs) { Iterator usersListIterator = (Iterator)getUserDataForCollection(qc); usersListIterator = null; super.releaseUserDataForCollection(qc, rs); } // end releaseUserDataForCollection } // end class
<af:inputListOfValues id="userName" popupTitle="Search and Select: #{bindings.UserName.hints.label}" value="#{bindings.UserName.inputValue}" label="#{bindings.UserName.hints.label}" model="#{bindings.UserName.listOfValuesModel}" required="#{bindings.UserName.hints.mandatory}" columns="#{bindings.UserName.hints.displayWidth}" shortDesc="#{bindings.UserName.hints.tooltip}" autoSubmit="true" searchDesc="#{bindings.UserName.hints.tooltip}" simple="true"> <f:validator binding="#{bindings.UserName.validator}"/> </af:inputListOfValues>
I found a solution to this problem. It seems that, when using a view object programmatic that has a transient as its primary key attribute, you need to override the methods in the ViewObjectImpl so that he knows how to locate the line related to the primary key when the view object records are not in the cache. That's why it would work properly sometimes, but not always. Here are the additional methods that you must override. The logic you use in the retrieveByKey would be on a view view object database object and would be different if you had a primary key consisting of multiple attributes.
@Override protected Row[] retrieveByKey (ViewRowSetImpl viewRowSetImpl, Key key, int i) { return retrieveByKey(viewRowSetImpl, null, key, i, false); } @Override protected Row[] retrieveByKey (ViewRowSetImpl viewRowSetImpl, String string, Key key, int i, boolean b) { RowSetIterator usersRowSetIterator = this.createRowSet(null); Row[] userRows = usersRowSetIterator.getFilteredRows("UserId", key.getAttribute(this.getAttributeIndexOf("UserId"))); usersRowSetIterator.closeRowSetIterator(); return userRows; } @Override protected Row[] retrieveByKey (ViewRowSetImpl viewRowSetImpl, Key key, int i, boolean b) { return retrieveByKey(viewRowSetImpl, null, key, i, b); }
-
Help with the query to select only one record from the result set in double
Hello
Please help with the query. Version of Oracle database we use is 10g R2.
I have a vision that is duplicated IDS, but they are used across the different functions. See below examples of data. Please help me with a query to select only one record (based on ID regardless of the area) from the bottom of the result set of duplicate records. For what is the point of view is there unique records, given the combination of the fields ID, Org, DF, dry, Sub-Sec
ID Org DF Sec Sub-Sec (163) CQ CPDM CPDM HD (163) PC ENG ENG ENG (163) CQ ASIC ASIC IS 8888 TS TAC TAC TAC (163) TS HE HE SW 6789 CQ INFO INFO FOS 6789 PC SECSYS SECSYS INFO1 6789 TS SECSYS SECSYS INFO2 9009 PC BMS BMS BMS1 My result set must eliminate the duplicate identifiers regardless of whoever we choose of the result set. (I mean without distinction Org, DF, s, Sub-s). My expected result set should be.
ID DSB DF SEC Sub-Sec (163) CQ CPDM CPDM HD 8888 TS TAC TAC TAC 6789 CQ INFO INFO FOS 9009 PC BMS BMS BMS1 Thank you
Orton
Hello
This sounds like a job for ROW_NUMBER:
WITH got_r_num AS
(
SELECT id, DSB, df, s, sub_sec org
ROW_NUMBER () OVER (PARTITION BY ID.
ORDER BY org
) AS r_num
OF view_x
)
SELECT id, DSB, df, sub_sec s,
OF got_r_num
WHERE r_num = 1
;
He is a Top - N query example, where you choose the elements of N (N = 1 in this case) from the top of an ordered list.
I hope that answers your question.
If not, post a small example of data (CREATE TABLE and INSERT, only relevant columns instructions) to your sample data and the results desired from these data. (I know that you said that you were a view selection. Just for this thread, pretending it is a picture and post simple CREATE TABLE and INSERT statements to simulate your point of view).
Point where the above query is to produce erroneous results, and explain, using specific examples, how you get the right results from data provided in these places. (I didn't quite understand the explanation above. I don't know why you want toID ORG DF DRY SUB_SEC
-- --- -- --- -------
1234 CQ DPRK DPRK HD
and is not
1234 IS CQ ASIC, ASIC
or
TS 1234 IT IT SW
or
1234 CQ ASIC ASIC HD
)
If you change the query at all, post your modified version.
Always say what version of Oracle you are using (for example, 11.2.0.2.0).See the FAQ forum: https://forums.oracle.com/message/9362002
-
Combine queries to get the result set with max Y
Hello
I use forms 6i and db 10.2.0.1.0
With the query below
the result set isSelect ufam_usrgrp,ufam_filegrp,ufam_read,ufam_write,ufam_overwrite,ufam_delete from usr_file_access_master Where ufam_ecode = '0004108';
Another queryUFAM_USRGRP UFAM_FILEGRP UFA UFA UFA UFA --------------- --------------- --- --- --- --- MGMNT CV Y Y Y Y EMPLOYEE GENERAL Y N N N EMPLOYEE PERSONAL Y N N N
gives the resultSelect uul_usrgrp, ufl_file_grp,ufl_read,ufl_write,ufl_overwrite,ufl_delete from usr_usrgrp_lnk,USRGRP_FILEGRP_LINK Where usr_usrgrp_lnk.uul_usrgrp = USRGRP_FILEGRP_LINK.UFL_USR_GRP and usr_usrgrp_lnk.uul_ecode = '0004108'
I need to combine these two queries to get a separate result set with maximum YUUL_USRGRP UFL_FILE_GRP UFL UFL UFL UFL --------------- --------------- --- --- --- --- MGMNT GENERAL Y Y Y Y EMPLOYEE GENERAL Y Y N N MGMNT CV Y N N N
Like here "MGMNT CV" is repeated in both the result set, but the first has more, then it should come from the combined result set. reverse-case also the same (such as "EMPLOYEE GENERAL")
So I want to combine the queries so that I get the result as set below
Please help me to combine these queriesUserGroup FileGroup Rd Wrt Owrt Del --------------- --------------- --- --- --- --- MGMNT GENERAL Y Y Y Y EMPLOYEE GENERAL Y Y N N MGMNT CV Y Y Y Y EMPLOYEE PERSONAL Y N N N
Published by: Divya on August 14, 2011 21:24
Changed the result set and the last exitNOT TESTED!
select y.uul_usrgrp, y.ufl_file_grp, greatest(ufl_read,nvl(ufam_read,' ')) ufl_read, greatest(ufl_write,nvl(ufam_write,' ')) ufl_write, greatest(ufl_overwrite,nvl(ufam_overwrite,' ')) ufl_overwrite, greatest(ufl_delete,nvl(ufam_delete,' ')) ufl_delete from (select ufam_usrgrp,ufam_filegrp,ufam_read,ufam_write,ufam_overwrite,ufam_delete from usr_file_access_master Where ufam_ecode = '0004108' ) x, (select uul_usrgrp, ufl_file_grp,ufl_read,ufl_write,ufl_overwrite,ufl_delete from usr_usrgrp_lnk,USRGRP_FILEGRP_LINK Where usr_usrgrp_lnk.uul_usrgrp = USRGRP_FILEGRP_LINK.UFL_USR_GRP and usr_usrgrp_lnk.uul_ecode = '0004108' ) y where y.uul_usrgrp = x.ufam_usrgrp(+) and y.ufl_file_grp = x.ufam_filegrp(+)
Concerning
Etbin
Edited by: Etbin on 14.8.2011 13:08
deleted by group -
Get spaces empy in the result set
Hello
We are migration CF 5 to 9. App works great in CF5. but when we run the same code in CF9, for all sets of results, we get the empty sapce for each field.
Ex:
CF5: field1: order_id, value = "OL123456".
CF9: field1: order_id, value = "OL123456".
We get the empty sapce for each field in the result sets. I know that we can use the topping, but we have so many pages in the application and we cannot do that. can someone help how to solve this problem. I am using the database Ingres and connection with another datasource in CF Admin.
Srinivas
I used the query of queries and the problem is solved.
-
Remove duplicates from the result set
Here's a challenge question that I was playing with a my free time during the work.
I assume you have the basic HR example somewhere around (I hope is not in production).
Let's say you want to get employees from the employees table whose name is similar to another employee last name.
The easiest way is to join the two tables with a join condition that checks for the name and employee id. Here's what I came with.
*************
Select e1.last_name, e1.first_name b, e2.last_name c, e2.first_name d
employees employees join e1 e2
on (e1.last_name = e2.employee_id <>e2.last_name and e1.employee_id)
order by one;
************
The above query returns 10 rows. The first and the second are essentially the same. It is similarly, 3 & 4, 5 & 6, 7 and 8 and 9 and 10. The question is: is there a way that allows me to get rid of using only sql duplicate rows from the result set of this query. I sat on it for 15 minutes and I couldn't know. I'll try to watch my completed work once again.Example:
SQL> column a format a10 SQL> column b format a10 SQL> column c format a10 SQL> column d format a10 SQL> SQL> SQL> select e1.last_name a , e1.first_name b, e2.last_name c, e2.first_name d 2 from employees e1 join employees e2 3 on ( e1.last_name = e2.last_name and e1.employee_id != e2.employee_id) 4 where e1.employee_id < e2.employee_id 5 order by a; A B C D ---------- ---------- ---------- ---------- Cambrault Gerald Cambrault Nanette Grant Kimberely Grant Douglas King Steven King Janette Smith Lindsey Smith William Taylor Jonathon Taylor Winston SQL>
-
Hotkey of the worksheet area of writing in the result set
Y at - it a keyboard shortcut to switch between writing in the SQL worksheet and navigate (or copy,...) in the result set of a query run?
That would make my job easier everyday!
@Chris
ALT + PagegDown in version 4.0
No no not a nav of Ko to this v3.2 and earlier versions, has been saved as a bug.
Maybe you are looking for
-
Satellite A300 - driver VGA not run is not enough smooth
HelloRecently, I installed XP on my A300, but she seems not to run pretty smooth. The part where VGA takes place when viewing a website is really irritating, for example http://forums.pcbsd.org/
-
iPod touch does not work.
I have an iPod touch that I got from a friend X years. So I don't know who it is. From last night, it will not work in my car. I can't turn it on, and my Mac isn't even recognize it either.My most recent iPod touch does not right in my car. So I gave
-
Black screen with blinking cursor on HELP!
Today, I tried turing on my laptop its a G56. and the hp logo came after that I got a black screen with a white cursor blinking. now I tried the hard reset which did not work, there is no blinking lights. I also tested the hard drive and memory and e
-
Specifications of the system 'not available '.
Randomly, I decided today to go look at my laptop specs, I compared the configuration required for the games, and when I went to my computer system properties section, I met a problem: the categories of installed memory (RAM) and processor were not t
-
BlackBerry smartphones no Internet on Bold 9700
I just got advice on how to sort my stray icons which was very successful, now I suddenly have a problem with the internet. I read all the previous posts and solutions, but none seems to work for me. The status of the Service said: BB Internet Connec