Short discovery is a grouping my values? [HELP]
Hello everyone,
I started working with short a few weeks ago and I have a question that is bothering me and I wish it had an error in my chart.
So I created a simple graph where I get all the records in a view and place in a bulk add/replace Records and the graph says it introduced more than 8.5 M lines but when I go to the discovery, the dataset is properly loaded, and he says that the dataset has lines (aprox.) 1.8 M...
I noticed the view definition is a collection of my primary key, but I find that odd. Is this a normal behavior? I lost a lot of lines and I only did a simple graph.
I noticed that other graphics (with other tables) where I make some changes and some joints, I get the expected result and the number of records in the dataset is equal to what is given in the chart output (lines 3,4 M aprox.).
What can I do to prevent this? Is this a mistake on my chart?
Best regards and thank you everyone!
Hi Frederico,
The attribute that you designate as your Spec (sometimes called a Spec record) attribute must be unique. It is essentially the 'primary key' inside short. So you get fewer records because the first record is written to the index and then is crushed by the registration according to that share the same value for the Spec attribute.
Looks like you just need to generate another attribute in your data that is really unique (perhaps the current plus a number?) to make sure that you do not lose data.
Hope that helps,
Patrick Rafferty
Tags: Business Intelligence
Similar Questions
-
How to group these values by month?
Hello
I have a nice SQL statement that returns from day to day, the values of a device.
Sample values:WITH S1 AS (SELECT DATE1, ROUND(AVG(VALEUR),2) Debit FROM EVV_E032 WHERE DATE1 BETWEEN TO_DATE('01012006000000', 'DDMMYYYYHH24MISS') AND TO_DATE('31122006235959', 'DDMMYYYYHH24MISS') AND CLEF_VAR = (SELECT CLEF_VAR FROM SITE_DEBIT_RIVIERE WHERE SITE = 'E032' ) GROUP BY date1 ) SELECT NULL LINK , TO_CHAR(n, 'DD.MM'), NVL(ROUND(AVG(Debit),2), 0) "Débit" FROM (SELECT TRUNC(TRUNC(to_date(2006,'YYYY'),'year'), 'DD')-1 + level n, rownum jours FROM dual CONNECT BY level<=366 ) days LEFT JOIN s1 ON days.n = TRUNC(date1,'DD') GROUP BY n ORDER BY n
The output are grouped values from day to day. I would like to tehse group monthly values, but couldn't figure out how to do. Even if I'm not a newbie to newbie on SQL, copy the following code will much too much for me. I know that some of you guys can handle that. I tried but not sew succeed. Could you help me?Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('10/02/2006 09:49:59','DD/MM/YYYY HH24:MI:SS') 1,63); Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('21/02/2006 10:35:12','DD/MM/YYYY HH24:MI:SS') 1,68); Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('21/02/2006 11:30:30','DD/MM/YYYY HH24:MI:SS') 0); Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('23/02/2006 14:02:02','DD/MM/YYYY HH24:MI:SS') 0); Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('23/02/2006 16:22:34','DD/MM/YYYY HH24:MI:SS') 0); Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('30/04/2006 18:09:08','DD/MM/YYYY HH24:MI:SS') 1,72); Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('20/05/2006 11:57:02','DD/MM/YYYY HH24:MI:SS') 1,72); Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('07/06/2006 15:11:58','DD/MM/YYYY HH24:MI:SS') 1,79); Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('08/06/2006 20:00:26','DD/MM/YYYY HH24:MI:SS') 1,82); Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('19/06/2006 09:42:32','DD/MM/YYYY HH24:MI:SS') 1,72); Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('20/06/2006 04:30:00','DD/MM/YYYY HH24:MI:SS') 1,82); Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('20/06/2006 10:39:01','DD/MM/YYYY HH24:MI:SS') 1,72); Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('24/06/2006 19:34:50','DD/MM/YYYY HH24:MI:SS') 1,82); Insert into "EVV_E032" (DATE1,DEBIT) values (to_date('26/06/2006 14:37:26','DD/MM/YYYY HH24:MI:SS') 1,88);
Best regards, Christian.select add_months(to_date('01/01/2006', 'dd/mm/yyyy'), level - 1) n, rownum from dual connect by level <= 12; N ROWNUM --------- ---------- 01-JAN-06 1 01-FEB-06 2 01-MAR-06 3 01-APR-06 4 01-MAY-06 5 01-JUN-06 6 01-JUL-06 7 01-AUG-06 8 01-SEP-06 9 01-OCT-06 10 01-NOV-06 11 01-DEC-06 12
-
What does it mean when your registry cleaner said "we cannot find this file" delete registry value-HELP
Hi, first i want to thank everyone for responding. I did realize that and agree that registry cleaners cause more harm. I use anti-virus software and it works well.
I was able to get in touch with computer technology and I had a lot of windows errors and fixed them. I decided that less is more, but thank you for responding so quickly. Nina -
How to group the values according to the weeks of the year?
Hello
I have a table with dates and values (I'm simplifying the need for this question)
I want to group the values (and adding the) according to the 52 weeks of the year. I mean week of consolidation for the week.
Here the date of each weeks generated during a year, it gives every Monday of each week of the year:
Select trunc (trunc (sysdate, 'year'), 'iw') +(rownum*7)-7 n of object where rownum < = 53
What I want to do is to summarize the values in my table and group together them in every week, in that respect. The date of these weeks are generated by the above query.
For example all values fall into the 1st week of the year will be grouped into this date, all values fall in the 2nd wek will be grouped in this date and so on. If no value is found for a week, then a value of 0 is generated in iorder have a 52 weeks-lines. It's basically a kind of select with "date between... and...". "and group values and that affect the number of the wee, they are relevant.
Examples of Monday, June 30, 2008, 07/07/2008, 07/14/2008
Example of values and dates in my table:
Date value
30/06/08 9
07/01/08 9
07/02/08 9
07/03/08 9
07/03/08 9
07/04/08 6
07/04/08 6
07/04/08 9
07/07/08 9
07/08/08 9
29/07/08 9
29/07/08 6
30/07/08 9
07/31/08 9
07/31/08 9
07/31/08 9
08/01/08 9
08/04/08 5.5
08/04/08 9
08/07/08 9
08/07/08 9
08/08/08 9
14/08/08 9
14/08/08 9
18/08/08 9
22/08/08 9
22/08/08 9
25/08/08 9
25/08/08 9
26/08/08 9
29/08/08 9
29/08/08 9
09/01/08 9
09/01/08 9
09/04/08 9
09/04/08 9
09/05/08 9
09/05/08 9
09/05/08 9
09/05/08 9
17/09/08 9
Result should be something like this:
Number of the week Date value
47/1 12/31/2008
94/2 07/12/2008
2008-01-14 3, 23
and so on...
.....
73/52 12/22/2008
60/53 29/12/2008
I hope I am clear. Thank you for your kind replies.Something like that, maybe:
select trunc(trunc(sysdate,'year'),'iw') +((level-1)*7) n from dual connect by level<=53
(I changed it to sysdate so that the next years will take care of them!)
-
ROW_NUMBER group repeated values
I think that there should be a way to solve the following problem with the analytical functions, but I do not see the solution right now :-(
Maybe someone can help me. I have a table like this
and I want to get the row_number within a group of letters equal in the t column, column n-controlled, which means that counting should begin with 1 once again, when 'A' appears once more after where the other letters between.create table demo (n number, t varchar2(1)); insert into demo values (1,'A'); insert into demo values (2,'A'); insert into demo values (3,'B'); insert into demo values (4,'C'); insert into demo values (5,'C'); insert into demo values (6,'C'); insert into demo values (7,'A'); insert into demo values (8,'A'); insert into demo values (9,'B'); insert into demo values (10,'C');
When to use something like row_number() on (partition of tri n t) count continued with 3, where it should begin by 1 again and so on
select n, t, row_number() over (partition by t order by n) v from demo order by n; N T V Should be -- - - --------- 1 A 1 1 2 A 2 2 3 B 1 1 4 C 1 1 5 C 2 2 6 C 3 3 7 A 3 1 8 A 4 2 9 B 2 1 10 C 4 1
Hello
Here's one way:
WITH got_grp_num AS ( SELECT n, t , ROW_NUMBER () OVER ( ORDER BY n) - ROW_NUMBER () OVER ( PARTITION BY t ORDER BY N ) AS grp_num FROM demo -- WHERE ... -- If you need any filtering, put it here ) SELECT n, t , ROW_NUMBER () OVER ( PARTITION BY t , grp_num ORDER BY n ) AS v FROM got_grp_num ORDER BY n ;
Output:
` N T V ---------- - ---------- 1 A 1 2 A 2 3 B 1 4 C 1 5 C 2 6 C 3 7 A 1 8 A 2 9 B 1 10 C 1
Etbin had the right approach; you need PARTITION BY something more beautiful than t; It must be a subdivision of t, where all consecutive lines with the same t are in the same group. You could get this group using LAG or LEAD many, like Etbin tried, but this usually takes 2 subqueries.
-
Decode the values without ETL (Group Dimension values)
Hello guys, I have a question that is partly triggered by me not wanting to change the default ETLs.
I have values in a dimension to come as table:
Area A
Region B
Region C
Region D
Region E
However, I'm hoping to re - org the hierarchy as below:
A new region
D new region
Essentially, there is a new org structure where we Group (consolidation) old parts in new and rename values.
I know it can be done in ETL but y at - it everywhere else where this is possible? Perhaps in the business layer? Is there a place in the business layer where we can decode the values and combine them?
Regards and thanks in advance for your help,.Hello
You can do to the RPD layer with an instruction box on a column of logic. However I really wouldn't say that because it means that if the group never changes you need to release a new RPD to get change.
Why not build a task custom ETL that you can set to run after the vanilla who takes just these values, consolidates necessary (perhaps using a lookup table to find the old-> new maps) and then load it the new value in a column of extension on the dimension or the extension of related dimension, i.e. W_ORG_DX. Then, you can simply display this column in the presentation layer for users. Unless the table in question has millions of people off the coast of columns, just let him do this mapping for each row in the table for each ETL.
I think it would be a very simple task and would mean that you can change the mappings easily through the table if necessary. This also means that you don't need to touch the vanilla ETL mappings and are not changing the values in the columns of vanilla, as you mentioned that you didn't want to do.
Kind regards
Matt
-
Need to get the latest news for a group-max (value) of the non-null values
Hello
Here is my table and data
SQL > desc method
NUMBER OF SEQ_ID
EMP_ID NUMBER
ISSUE GUID
FIRST NAME VARCHAR2 (30)
LAST_NAME VARCHAR2 (30)
E-MAIL VARCHAR2 (45)
PHONENO VARCHAR2 (30)
SQL > Select * method;
SEQ_ID EMP_ID GUID FIRST_NAME LAST_NAME EMAIL PHONENO
------ - ----- ---- --------- --------------------------------------------------- ----------------------------------------- ------------------------------
1 100 20 RAJA HHH 686678
2 100 20 [email protected]
3 100 20 RAJA 134555
4 100 20 HAPPY [email protected]
5 200 20 RAM
6 200 20 JJJ 2345667
7 200 20 RM GGG [email protected] 1234557
8 200 20 [email protected] RRR
8 selected lines
I want the latest news on the employee, the group id comibnation for the rest of the columns.
So I want to get the following result.
100 20 RAVI HHH [email protected] 134555
200 20 RRR GGG [email protected] 1234557
If you note here for the family name, we take the previous value non-zero value Eg HHH column and is the same for all columns.
It's the value of line max (seqid) for empid, combination of guid and if the column values are null, we must get the previous maximum value non-zero.
The seqid is also there that the sequence.
Please help me to get the result set.
Thanks in advance.
mjhraja.SQL> select emp_id, guid, max(first_name) first_name, max(last_name) last_name 2 , max(email) email, max(phoneno) phoneno 3 from ( 4 select emp_id, guid 5 , first_value (first_name ignore nulls) 6 over (partition by emp_id, guid order by seq_id desc) first_name 7 , first_value (last_name ignore nulls) 8 over (partition by emp_id, guid order by seq_id desc) last_name 9 , first_value (email ignore nulls) 10 over (partition by emp_id, guid order by seq_id desc) email 11 , first_value (phoneno ignore nulls) 12 over (partition by emp_id, guid order by seq_id desc) phoneno 13 from emp_info 14 ) 15 group by emp_id, guid 16 / EMP_ID GUID FIRST_NAME LAST_NAME EMAIL PHONENO ---------- ---- ---------- ---------- -------------------- ---------- 100 20 RAVI HHH [email protected] 134555 200 20 RRR GGG [email protected] 1234557 SQL>
-
drive hard short DST has failed-need new computer help
HP Pavilion m6
64-bit Windows
Failure, ID-mOKS6f 667 - 65 L-XD7X1G-60V603
Drive hard short DST failed when I did the start of F1 tests...
This computer less then 3 weeks... need to get this working again... that are the options I have?
Brand new out of the box, bought from Best Buy - end of June.
No changes have been made, was online: attempt to use Google Voice, could not scream... everything froze, did a re-startup-no hard other choice-error on the screen came after I did the test...
Intend to do more tests to see what else is bad. The HD has really missed on a new computer - it's horrible if true. Need another one as soon a possible.
Hello
I try to contact HP in the United States and see if they can help.
Kind regards
DP - K
-
APEX 4.2 Radio Group NULL value behaves differently than on APEX 4.1.1
DB version: 11.2.0.3 Linux
APEX: 4.2
APEX listener 1.1.4 on tomcat6
Firefox 16.0.2
Values NULL Radio Group behave differently than on APEX 4.1.1.
4.2 creating radio group and selecting:
Display Null value = Yes
NULL, Display value = no value (or any string)
NULL Return Value = (leave blank, for the NULL value returned)
When the user selects that option 'No value', then APEX point value is set on "on", but on APEX 4.1, the element has the value NULL as expected.
When you look at the Web page source code, the reason seems to be that APEX does not generate an attribute value for the NULL value (if the browser returns the default "on"):<input type="radio" id="P1_X_0" name="p_t01" ><label for="P1_X_0">No value</label>
Hi Ilmar,
same thing here. The best solution I could come up with is to create a process to request again (before the calculation / validation)
BEGIN FOR x IN ( SELECT * FROM ( SELECT item_name FROM apex_application_page_items aapi WHERE aapi.application_id = :app_id AND aapi.page_id = :app_page_id AND LOWER (aapi.lov_display_null) = 'yes' AND aapi.display_as_code='NATIVE_RADIOGROUP' AND aapi.lov_definition IS NOT NULL AND aapi.lov_null_value IS NULL AND ROWNUM > 0 ) x WHERE LOWER (v (x.item_name)) = 'on' ) LOOP apex_util.set_session_state (x.item_name, NULL); END LOOP; END;
Jens
-
request with the date of the Group's values
Hi all
I have an adate of table with 13 columns with a column named trandate
with the value as "2008-11-07 18:00:19.
Now I want to retrieve the values from the table as
SELECT count (*) from trandate which where ttype = '081' and T_FILE like 'mountain % ';
I want to count the records for all the months as
Jan-2009 - 120 (120 is the number of records satifying the above condition and belong to the period January 2009 (derived from trandate column)
Feb-2009 - 150 (150 is the number of records satifying the above condition and belong to the period February 2009 (derived from trandate column)
How can I rewrite the query
Thank you
Kai
Published by: KaiS on February 1st, 2011 04:23select to_char(trandate,'mmm - yyyy') trandate, count(1) from trandate where where ttype = '081' and T_FILE like 'monT%' group by to_char(trandate,'mmm - yyyy');
-
Question about improving in an unusual way to group the values in line
Hello and Hello,
The purpose of the code below is to go to this
for thisDEPTNO ENAME ------ ---------- 10 CLARK 10 KING 10 MILLER 20 SMITH 20 ADAMS 20 FORD 20 SCOTT 20 JONES 30 ALLEN 30 BLAKE 30 MARTIN 30 JAMES 30 TURNER 30 WARD
the code that performs acrobatics isDEPTNO EMPS ------- ------------------------------------ 10 CLARK,KING,MILLER 20 SMITH,JONES,SCOTT,ADAMS,FORD 30 ALLEN,WARD,MARTIN,BLAKE,TURNER,JAMES
I think it's quite ingenious (credit to Anthony Molinaro). However, I am not happy with the 'high' part, specifically:select deptno, rtrim ( max(case when pos = 1 then emps else '' end) || max(case when pos = 2 then emps else '' end) || max(case when pos = 3 then emps else '' end) || max(case when pos = 4 then emps else '' end) || max(case when pos = 5 then emps else '' end) || max(case when pos = 6 then emps else '' end), ',') as emps from ( select a.deptno, a.ename || ',' as emps, d.cnt, (select count(*) from emp b where b.deptno = a.deptno and b.empno <= a.empno) as pos from emp a, (select deptno, count(ename) as cnt from emp group by deptno) d where d.deptno = a.deptno ) x group by deptno order by deptno;
The reason is, this code depends on no Department with more than 6 employees. As soon as a Department has a greater number, the code breaks and extra hard-coding is required to make it work, until it breaks again.rtrim ( max(case when pos = 1 then emps else '' end) || max(case when pos = 2 then emps else '' end) || max(case when pos = 3 then emps else '' end) || max(case when pos = 4 then emps else '' end) || max(case when pos = 5 then emps else '' end) || max(case when pos = 6 then emps else '' end), ',') as emps
My question is, is there a way to get rid of the case hard coded, without disturbing the rest of the code?
Anthony also offers a specific solution for Oracle using sys_connect_by_path, partition of... and connect by before, I think is elegant, but I really want to know if the more generic solution could be enhanced to remove the stain to hardcode.
Thank you for your help,
John.If you're still on 11 GR 2, you can use LISTAGG:
http://download.Oracle.com/docs/CD/E11882_01/server.112/e10592/functions087.htm#SQLRF30030
-
AJAX - multiple values - help with code
Hi all
My code is probably wrong, however, I don't know where is the problem. I'm not good with programming and copied the example of oracle.com and changed... I hope you guys can help me. Here's what I have:
A selection list: P4_DOBJ1_NR (the user selects something in the DataObject table DOBJ_NR)
A screen as text element: P4_NAMSP1
Another exhibit as part of text: P4_DOBJ_NAME1
Here is my code:
Header HTML for my select list attribute setting:
OnChange = "JavaScript:getDOBJ1Info (this); »
The header of my page HTML:
< script type = "text/javascript" >
function getDOBJ1Info (filter)
{
var xml = null;
get var = new htmldb_Get (null, $v ('pFlowId'), 'APPLICATION_PROCESS is GETDOBJ1Info', 0);
Get.Add ('GOBJ1NO', filter.value);
RET = get.get ('XML');
If (ret)
{
var oneItems = ret.getElementsByTagName ("NAMSP");
If (oneItems)
{
var onedisplay = document.getElementById ("P4_NAMSP1");
onedisplay.innerHTML = oneItems [0] .getAttribute ("VALUE");
}
var twoItems = ret.getElementsByTagName ("DOBJ_NAME");
If (twoItems)
{
var twodisplay = document.getElementById ("P4_DOBJ_NAME1");
twodisplay.innerHTML = twoItems [0] .getAttribute ("VALUE");
}
}
get = null;
}
< /script >
An application object, called: GOBJ1NO
And the application process:
DECLARE
Emmanuel VARCHAR2 (100);
vTWO VARCHAR2 (100);
BEGIN
owa_util.mime_header ("text/xml", FALSE ");
HTP.p ('Cache-Control: non-cache');
HTP.p ('Pragma: non-cache');
owa_util.http_header_close;
HTP. PRN ("< DATA > '");
SELECT NAMSP, DOBJ_NAME IN Emmanuel, vTWO OF DATAOBJECT WHERE DOBJ_NR =: GOBJ1NO;
HTP. PRN ("< a VALUE ="' |) Emmanuel | ("" > < / ONE > ');
HTP. PRN ("< TWO VALUE ="' | vTWO |) ("" > < / TWO > ');
HTP. PRN ("< / DATA > '");
EXCEPTION WHEN OTHERS THEN
HTP. PRN ("< a VALUE =" error"> < / ONE > ');
HTP. PRN ("< TWO VALUE =" error"> < / TWO > ');
END;Your process returns an XML document with the structure
value one value two but you try to retrieve the item named "NAMSP".
so try to chang to:
var oneItems = ret.getElementsByTagName("ONE");
You will find fantastic examples on the web site of Denes Kubicek:
Try this url:
http://Apex.Oracle.com/pls/OTN/f?p=31517:106:1074750275898234:noHTH
Thomas -
validation of entry but clear button requires that allow you "" value - help
Hello
I have a form with a script validation below that is a required field for a while. Valid regex tips and moments of 0100 at 01:00 formats etc. I want it so that before the user can submit the form, it must have a valid duration in this area.
The form also has a "reset" button or clear - to allow button to validate the script of the time field function to return event.rc = true for a value ' "- but then it defeats the purpose to force a user to have a value in this field before sending the form?
How to do this?
See you soon
-Al
event.rc = true; var ltimeRegExp = /^((?:[0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9])$/; var stimeRegExp = /^((?:[0-9]|0[0-9]|1[0-9]|2[0-3]):?[0-5][0-9])$/; var strTime = String(event.value); if (ltimeRegExp.test(strTime) != true && strtimeRegExp.test(strTIme) !=true { app.alert("Does not appear to be a valid time format"); event.rc = false } else if (ltimeRegExp.test(strTime) == true) { // no need to do anything as time is valid event.rc = true } else if (strTime.length == 3) { newstrTime = "0" + strTime.slice(0,1) + ":" +strTime.slice(1,3); event.value = newstrTime; event.rc = true; } else if (strTIme.length == 4) { newstrTime = strTime.slice(0,2) + ":" +strTime.slice(2,4); event.value = newstrTime; event.rc = true; } else if (strTime == "") { event.rc = true; } else { app.alert("no subroutine entered"); }
There are a few errors in this code preventing it from work, so I guess they are just typos.
If you check the field as required, it will not be allowed to submit (by email or on a web server) except if the field contains a non-empty value, and your validation script guarantees a valid entry when it exists, therefore, should not be a problem. If you do not want to mark where it is necessary to you can use a script to activate the checkbox and not allow to submit to take place, if it is not empty.
-
Display radio group-Format values
Hi all
I use the Application Express 4.2.3.
I have a group of buttons with the LOV query as follows:
SELECT option1 | » '|| details as display, option1 AS return FROM my_table
'details' are a hardcoded text in the table "my_table" enriched in the entry screen and stored as html text field
When viewing in the radio group, details field appears in the html code.
for example:
Apple < p > < em > < strong > red in color. < facilities > < you /i > < / p >
But I need the information should appear in the text formatted only.
Any suggestions?
Thanks in advance!
Kind regards
Archana
For this radio group set "Escape special characters" no in the Security section of the element definition.
-
Hi all
WITH t AS
(
SELECT 1st January 2014 ' COL1, COL2 'B',.001 COL3, COL4.0006 FROM DUAL UNION ALL
SELECT January 2, 2014 ' COL1, COL2 'B',.002 COL3, COL4.0007 FROM DUAL UNION ALL
SELECT 3 January 2014 ' COL1, COL2 'B', COL3, COL4.0008 FROM DUAL UNION ALL disponibles.003
SELECT 3 January 2014 ' COL1, COL2 'C',.004 COL3, COL4 FROM DUAL UNION ALL null
SELECT January 4, 2014 ' COL1, COL2 'B',.005 COL3, COL4.0009 DUAL FROM
)
SELECT
*
Of
t;
and the result of the above query is
January 1, 2014 B 0.001 0.0006 January 2, 2014 B 0.002 0.0007 January 3, 2014 B 0.003 0.0008 January 3, 2014 C 0.004 January 4, 2014 B 0.005 0.0009 My requirement is
If we have the same dates with different values of COL2, multiply the value of COL3 COL4 from B C.
January 1, 2014 B 0.001 0.0006 January 2, 2014 B 0.002 0.0007 January 3, 2014 B 0.003 0.0000032 January 3, 2014 C 0.004 January 4, 2014 B 0.005 0.0009 Thanks in advance!
with t as)
SELECT 1st January 2014 ' COL1, COL2 'B',.001 COL3, COL4.0006 FROM DUAL UNION ALL
SELECT January 2, 2014 ' COL1, COL2 'B',.002 COL3, COL4.0007 FROM DUAL UNION ALL
SELECT 3 January 2014 ' COL1, COL2 'B', COL3, COL4.0008 FROM DUAL UNION ALL disponibles.003
SELECT 3 January 2014 ' COL1, COL2 'B',.002 COL3, COL4.0009 FROM DUAL UNION ALL
SELECT 3 January 2014 ' COL1, COL2 'C',.004 COL3, COL4 FROM DUAL UNION ALL null
SELECT January 4, 2014 ' COL1, COL2 'C',.005 COL3, COL4.0009 FROM DUAL UNION ALL
SELECT 4 January 2014 ' COL1, COL2 'C',.005 COL3, COL4 FROM DUAL null)
SELECT COL1,
COL2,
COL3,
BOX WHEN (COUNT (*) ON (COL1 PARTITION)! = COUNT (*) (PARTITION OF COL1, COL2)) THEN
COL4 * LAST_VALUE (COL3) OVER (ORDER BY COL1 COL1 PARTITION)
WHEN (COUNT (*) ON (COL1 PARTITION) = COUNT (*) (PARTITION OF COL1, COL2) AND COUNT (*) ON (COL1 PARTITION) > 1) THEN
COL4 * LEAD (COL3, 1, 1) OVER (ORDER BY COL1 COL1 PARTITION)
OF OTHER END AS COL4 COL4
T
ORDER BY COL1, COL2, COL4;
OUTPUT:
January 1, 2014 B 0.001 0.0006 January 2, 2014 B 0.002 0.0007 January 3, 2014 B 0.003 0.0000032 January 3, 2014 B 0.002 0.0000036 January 3, 2014 C 0.004 January 4, 2014 C 0.005 0.0009 January 4, 2014 C 0.005
Maybe you are looking for
-
Hi, can export you emails from the other Thunderbird e-mail client?
Hello I am currently using incredimail but unhappy with it. Can I import all my emails from it for Thunderbird? I use the desktop with windows 7.Thank you.
-
Microsoft ISATAP #4 map does not
Map Microsoft ISATAP #4 does not. This device does not work properly because Windows cannot load the drivers required for this device. (Code 31)
-
new hard drive installed on the laptop and you want to reinstall Vista.
Having a drive only comes with computer laptop (Dell Inspiron 1545) labeled "(Drivers and Utilities déjà installés sur votre PC)." I think that it can contain windows reinstall the files but am not sure. When I insert the disk and PC startup, without
-
Error during the update of the software
Hello He said: ' year error occurred while searching for new updates on your computer. Error code: 80073712 I searched for this code and did not find any resolution. Any help will be appreciated.
-
Wired Xbox Controller freezes mouse
Hi I'm trying to play a game on my PC with a controller of xbox and downloaded the necessary software, but when I plug my xbox controller my mouse freezes and stays frozen, even if I take the controller regularize. The controller cannot be recognized