Insert a blank line in the result set
Hi friends,SELECT * FROM EMPLOYEES ORDER BY DEPARTMENT_ID;
As a result of the foregoing, I need to INSERT a blank line in the result for each department_id. for example, the result should resemble the following:
EMP_ID - NAME - SALARY - DEPARTMENT_ID
101 - Albert - 10 000 - 10
102 - Benjamin - 8 000 - 10
103 - Chitra - 10 500 - 20
104 - David - 4 500-20
105 - Elango - 6 000 - 20
106 - faye - 6 000 - 30
107 - Ganga - 9 000 - 30
etc.
I don't want to insert into the table. I need a blank line just on the screen.
Thanks in advance.
Published by: James on March 8, 2010 11:37
Something like this->
satyaki>
satyaki>select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
Elapsed: 00:00:00.00
satyaki>
satyaki>
satyaki>select m.empno,
2 m.ename,
3 m.sal,
4 case
5 when sal is null
6 and empno is null
7 and ename is null then
8 null
9 else
10 m.deptno
11 end deptno
12 from (
13 select k.empno,
14 k.ename,
15 k.sal,
16 k.deptno
17 from (
18 select empno,
19 ename,
20 sal,
21 deptno
22 from emp
23 ) k
24 union all
25 select t.*
26 from (
27 select distinct null empno, null ename, null sal, deptno
28 from emp
29 ) t
30 order by 4
31 ) m;
EMPNO ENAME SAL DEPTNO
---------- ---------- ---------- ----------
7782 CLARK 2450 10
7839 KING 5000 10
7934 MILLER 1300 10
7566 JONES 2975 20
7369 SMITH 800 20
7902 FORD 3000 20
7876 ADAMS 1100 20
7788 SCOTT 3000 20
EMPNO ENAME SAL DEPTNO
---------- ---------- ---------- ----------
7900 JAMES 950 30
7499 ALLEN 1600 30
7844 TURNER 1500 30
7654 MARTIN 1250 30
7521 WARD 1250 30
7698 BLAKE 2850 30
17 rows selected.
Elapsed: 00:00:00.03
satyaki>
satyaki>
Kind regards.
LOULOU.
Tags: Database
Similar Questions
-
Word RTF Tem [plate - insert a blank line in the loop
I'm entering my template like this XML data (this is just an example of dumbed down):
<? XML version = "1.0"? >
< LABEL_TEST >
< LIST_G_TEST >
< G_LABEL_HEADER >
< NAME > Parent 1 < / NAME >
< / G_LABEL_HEADER >
< G_LABEL_HEADER >
< NAME > Kid 1 < / NAME >
< / G_LABEL_HEADER >
< G_LABEL_HEADER >
< NAME > Parent 2 < / NAME >
< / G_LABEL_HEADER >
< G_LABEL_HEADER >
< NAME > Parent 3 < / NAME >
< / G_LABEL_HEADER >
< G_LABEL_HEADER >
< NAME > 4 Parent < / NAME >
< / G_LABEL_HEADER >
< G_LABEL_HEADER >
< NAME > Kid 4 < / NAME >
< / G_LABEL_HEADER >
< / LIST_G_TEST >
< / LABEL_TEST >
In summary, I have a list of Parents, and if they have a child, the name of their children is below. Not all parents have children.
If the data is a bit like this:
Name of the parent
Name of the child
Name of the parent
Name of the parent
Name of the parent
Name of the child
When I loop data in my RTF model, I want to be able to insert a blank line before all of the lines 'Parent '. A bit like this:
Name of the parent
Name of the child
Name of the parent
Name of the parent
Name of the parent
Name of the child
I tried to do this by adding an empty xml tag in the list, like this:
<? XML version = "1.0"? >
< LABEL_TEST >
< LIST_G_TEST >
< G_LABEL_HEADER >
< NAME > Parent 1 < / NAME >
< / G_LABEL_HEADER >
< G_LABEL_HEADER >
< NAME > Kid 1 < / NAME >
< / G_LABEL_HEADER >
< G_LABEL_HEADER >
< NAME > < / NAME >
< / G_LABEL_HEADER >
< G_LABEL_HEADER >
< NAME > Parent 2 < / NAME >
< / G_LABEL_HEADER >
< G_LABEL_HEADER >
< NAME > < / NAME >
< / G_LABEL_HEADER >
< G_LABEL_HEADER >
< NAME > Parent 3 < / NAME >
< / G_LABEL_HEADER >
< G_LABEL_HEADER >
< NAME > < / NAME >
< / G_LABEL_HEADER >
< G_LABEL_HEADER >
< NAME > 4 Parent < / NAME >
< / G_LABEL_HEADER >
< G_LABEL_HEADER >
< NAME > Kid 4 < / NAME >
< / G_LABEL_HEADER >
< / LIST_G_TEST >
< / LABEL_TEST >
But that doesn't seem to work.
Manny
I found a solution that works very well.
I added a new XML field to my data called
. In my model, this field is inserted in the line, but in a location where there is no data being printed. And it is formatted as white text, so that it basically just does not appear. So essentially, it's what I have now:
Parent 1 . Child 1 . . Parent 2 . . Parent 3 . . Mother 4 . Child 4 . If the data is a bit like this:
The name of the parent.
The name of the child.
.
The name of the parent.
.
The name of the parent.
.
The name of the parent.
The name of the child.
When I loop data in my RTF model, the '. ' is a white text, then I get this:
Name of the parent
Name of the child
Name of the parent
Name of the parent
Name of the parent
Name of the child
-
Insert a blank line in the query output
Is it possible to insert a blank line between two rows of the query output?
In the EMP table, the column LINES is as follows:
LINES
1
2
3
4
1
2
3
1
2
3
4
5
I want to insert a blank line after every 1
Please suggest.
SanjayI'm quite puzzled why you need rows in the dataset returned by a select statement that is empty.
If you are using Oracle reports to the release date, you define the presentation of the report to have spaces between the rows returned by the select and have do not need to have the select statement returns a blank line after each line of data. If the output should be obtained by using another client, I think that the customer will have facilities for output formatting.Admit that you really need "blank lines" between data lines, I see only one way: use a temporary table and do an insert into select temporary_table (...) ... from... where... Then, in this temporary table, you can insert 'empty rows', which is actually not really empty, because they must have some fields that give the order of the rows. And then select in temporary_table, you place your order by the columns that are used to give the order for the release.
Thusinsert into temporary_table ( .... ) select ... from ... where ... ; for r in ( select col1, col2, col3 -- columns used for order by from temporary_table order by col1, col2, col3 ) loop insert into temporary_table (col1, col2,col3, col4) values (r.col1,r.col2,r.col3, null); end loop; -- this way, a select * from temporary_tabel order by col1, col2, col3, col4 will return a blank row after each data row
-
How to add an imaginary line in the result of the value of a SELECT statement.
Hello all-
I have requirment to add an imaginary line in the result set of a SELECT statement.
For example lets say it is a pay table having the following columns:
Number of Payment_id
status varchar2 (10)
number amount
date of payment_date
so here's the data: -.
Payment_id status amount payment_date
applied 1 100 12/07/2008
2 Reversed 200 01 / 06/2009
Applied 3 300 01 / 07/2009
Here is my SQL
Select * form payment where payment_date > = 01/01/2009
The output will be
2 Reversed 200 01 / 06/2009
Applied 3 300 01 / 07/2009
My desired output is less than
2 Reversed 200 01 / 06/2009
Applied 3 300 01 / 07/2009
reversed-200 2, 01 / 06/2009-(Dummy Row)
Third line here is the imaginary line that I add when the status is "reversed".
I would be very grateful for any help on this...
Thank you
GerardCartesion join against a shadow table is a useful method to create a fictitious line:
with my_tab as (select 1 cust_id, 1 Payment_id, 'Applied' Status, 100 Amount, to_date('12/07/2008', 'mm/dd/yyyy') payment_date from dual union all select 1 cust_id, 2 Payment_id, 'Reversed' Status, 200 Amount, to_date('01/06/2009', 'mm/dd/yyyy') payment_date from dual union all select 1 cust_id, 3 Payment_id, 'Applied' Status, 300 Amount, to_date('01/06/2009', 'mm/dd/yyyy') payment_date from dual union all select 2 cust_id, 1 Payment_id, 'Applied' Status, 100 Amount, to_date('12/07/2008', 'mm/dd/yyyy') payment_date from dual union all select 2 cust_id, 2 Payment_id, 'Reversed' Status, 200 Amount, to_date('01/05/2009', 'mm/dd/yyyy') payment_date from dual union all select 2 cust_id, 3 Payment_id, 'Applied' Status, 300 Amount, to_date('01/06/2009', 'mm/dd/yyyy') payment_date from dual union all select 2 cust_id, 4 Payment_id, 'Reversed' Status, -400 Amount, to_date('01/06/2009', 'mm/dd/yyyy') payment_date from dual union all select 2 cust_id, 5 Payment_id, 'Applied' Status, 500 Amount, to_date('01/07/2009', 'mm/dd/yyyy') payment_date from dual), --- end of mimicking your table dummy as (select 'Reversed' col1, 1 rn from dual union all select 'Reversed' col1, 2 rn from dual) select mt.cust_id, mt.payment_id, mt.status, decode(dummy.rn, 2, -1*mt.amount, mt.amount) amount, mt.payment_date from my_tab mt, dummy where mt.status = dummy.col1 (+) order by mt.cust_id, mt.payment_id, dummy.rn nulls first; CUST_ID PAYMENT_ID STATUS AMOUNT PAYMENT_DATE 1 1 Applied 100 07/12/2008 1 2 Reversed 200 06/01/2009 1 2 Reversed -200 06/01/2009 1 3 Applied 300 06/01/2009 2 1 Applied 100 07/12/2008 2 2 Reversed 200 05/01/2009 2 2 Reversed -200 05/01/2009 2 3 Applied 300 06/01/2009 2 4 Reversed -400 06/01/2009 2 4 Reversed 400 06/01/2009 2 5 Applied 500 07/01/2009
Published by: Boneist on January 7, 2009 23:10
NB. You may need to mess around with the order if that is not in the order you want. You did not mention what the rules were for all orders expected, so I composed my own * {;-)Also, I added a (cust_id) identifier to differentiate different types of payments, as is usually the case. Remove unless it is not applicable to your case.
-
Insert a blank line after each line grouped
Oracle 11.2.0.1
Windows XP
I need to create a table (who have more to exported to the Excel SQL Developer) something like this:
The user Scott Table Emp
create the table temptbl as
SELECT
-case when lead (deptno) OVER (ORDER BY deptno) = deptno then empno otherwise null end AS empno.
-case when lead (deptno) OVER (ORDER BY deptno) = deptno then ename otherwise null end AS ename.
-case when lead (deptno) OVER (ORDER BY deptno) = deptno then job otherwise null end AS work,
-case when lead (deptno) OVER (ORDER BY deptno) = deptno then null deptno otherwise end up LIKE deptno
WCP
Table created.
SQL > select * from temptbl;
EMPNO, ENAME, DEPTNO JOB
---------- ---------- --------- ----------
7782 CLARK MANAGER 10
PRESIDENT OF 7839 10 KING
7566 JONES MANAGER 20
FORD ANALYST 20 7902
7876 ADAMS CLERK 20
SMITH CLERK 20 7369
7521 WARD SALESMAN 30
7844 TURNER SELLER 30
7499 ALLEN SALESMAN 30
EMPNO, ENAME, DEPTNO JOB
---------- ---------- --------- ----------
7900 JAMES CLERK 30
MANAGER OF 7698 30 BLAKE
14 selected lines.
SQL >
But it is not giving me the last row of deptno. If I have to display the data on sqlplus then I can use break on jump 1, but since I create my correct query table (around 10 K lines), I just want to insert a blank line after each data grouped.
Thank you.
Select empno, ename, job, decode (empno, null, null, deptno) deptno emp
Group by grouping sets ((empno, ename, job, deptno), deptno)
/
EMPNO, ENAME, DEPTNO JOB
----- ---------- --------- ----------
7782 CLARK MANAGER 10
PRESIDENT OF 7839 10 KING
7934 MILLER COMMITTED 10SMITH CLERK 20 7369
7566 JONES MANAGER 20
7782 CLARK MANAGER 20
SCOTT ANALYST 20 7788
7876 ADAMS CLERK 20
FORD ANALYST 20 79027900 JAMES CLERK 30
7499 ALLEN SALESMAN 30
7521 WARD SALESMAN 30
7654 MARTIN SALESMAN 30
SALESMAN 7698 BLAKE 30
7782 CLARK MANAGER 30
7844 TURNER SELLER 30 -
Question: insertion of several lines in the MS Sql Server table using the DB adapter
Hi all
I managed to insert a single row in a table of MS SQL Server via the adapter DB to my process BPEL, but when I tried to insert in mutiple lines in the same table of MS SQL server, I encounter the error below.
I use a DB SQL XA connection to connect to the server.
Kindly help me to solve the problem. Thanks in advance.
Error:
" < bpelFault > < faultType > 0 < / faultType > < remoteFault xmlns =" http://schemas.Oracle.com/BPEL/extension "> < a name ="summary"part > < summary > exemption is is produced when the binding was used." Exception occurred during invocation of the JCA binding: "JCA binding run 'merge' reference operations have to: DBWriteInteractionSpec Execute Failed Exception." the merger failed. The descriptor name: [LoadCmpAggSpendStage.SapTable]. Caused by com.microsoft.sqlserver.jdbc.SQLServerException: incorrect syntax near ')'... Check the logs for the record output full DBAdapter before this exception. This exception is considered as reproducible, probably due to a communication failure. To be classified as not reproducible rather add property nonRetriableErrorCodes with the '102' value in the deployment descriptor (i.e. weblogic - RA.Xml). Auto retry a reproducible fault set composite.xml for this invoke these properties: jca.retry.interval, jca.retry.count and jca.retry.backoff. All properties are integers. ". The called JCA adapter threw an exception of resource. Please examine the error message above carefully to determine a resolution. < /Summary. (> < / piece > < part name = "detail" > < detail syntax > incorrect near ')'. < / details > < / piece > < part name = "code" > < code > 102 < / code > < / piece > < / remoteFault > < / bpelFault >
Kind regards
Balaji Rahmani
It seems that in this case is called merge operation. If existing records (check primary key) are not there then it will be inserted on the other update. Check the syntax of the query that is created. It looks like she may have a supplement "). If you want to only insert then call insert operation and not merge.
-
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
-
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); }
-
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 ;
-
Hi, we are currently running Windows XP SP3. My daughter tries to download a song from Windows Media Player, she needs for her class dance. It just download the song bad by accident without problem. Now she's trying to download the song using the same CD (CD - R80) and it gives sound this error: «Please insert a blank disc in the CD drive (E :).» Once Windows Media Player detects a new disc, it will start automatically burning." Someone please help. She needs this to practice his senior dance solo.
As I understand it, the CD was already burned once, and now she's trying to burn on the same CD again? This is not possible, as the CD - Rs can only be burned once. She will need a new blank CD - R, like the error message.
-
We can insert a new line at the end of af: table declaratively?
Mr President.
We can insert a new line at the end of af: table declaratively?
Concerning
In the t impl class substitution as below, after that, you should be able to insert at the end of the table.
@Override
{} public void insertRow (rank)
Line lastRow = this.last ();
If (lastRow! = null) {}
int j = this.getRangeIndexOf (lastRow) + 1;
this.insertRowAtRangeIndex (j, line);
this.setCurrentRow (row);
} else {}
super.insertRow (row);
}
}
-
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.
-
Avoid blank lines at the top of the column
So I create posts of all the two weeks and I had a question that would make my job easer.
I've been messing around with the widow and orphans, but I have a slightly different problem.
We use returns between paragraphs (a blank line between paragraphs), and I was wondering if there was a way to use GREP or showing something to automatically prevent blank lines at the top of a column.
Right now, I have remove and re-add returns throughout the editing process, which as you can guess, can become messy and easy to miss.
I wish I had where I don't have to do it all on my own, so the empty lines would be 'hide' automatically if at the top of a column, but would return if things get moved around.
Thoughts?
Thanks for the help.
kwilly_1572 wrote:
We use returns between paragraphs.
.. can get messy and easy to miss.
It's a reason that should not do this way. Correctly using the space before and/or after the space solves your problem.
-
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.
Maybe you are looking for
-
The drop down menus work intermittently; all add-ons are disabled.
When I run the cursor over a menu item; File, Edit, history, etc., the drop down menu does not decrease. If I click on the menus, drop down menus will appear and then disappear. If I continue to do this for several seconds, the menu will be displayed
-
Photos does not recognize one of my devices, please help.
None of my cameras, my iPhone, iPad and even an SD card into the slot are recognized as devices by Photos, iPhotos or Image Capture. Have you tried different USB ports, different cables, all software, firmware, etc. is up to date. Image capture also
-
My iPhone 6 is leaking. What could be?
I noticed that my volume button was so I removed my case and saw that my iPhone was a leak this weird liquid. I bought about 5 months ago, so I was shocked to see this. I go to the apple store tomorrow as well.
-
How do I actually find duplicate files and eliminate them?
-
How many clients vpn 1811 can support
Hello I would like that for the number of clients vpn may 1811 router can support.