How to display year values in a wise query
Hi allMy requirement is that I have 3 years of data. I need to display these year-wise data in different tables at the same time of for example, suppose if I have data 2010,2011,2012 then I need to view 2010 data in a table, 2011 data in the following table and 2012 in a different table in the same request. At one point, I should get every three years of data, but in different tables.
Here the sense-data table should be separated year_wise.
How can I achieve this?
Thanks in advance,
Kind regards
Sindhu
Hello
Create the query 'Pivot Table View' and add the year column in the view and then drag this year column in the tab 'Section' in pivot view tab. So it's going to separate the data resulted in the three section per year wise in a single query saved.
I hope that helps!
Tags: Business Intelligence
Similar Questions
-
How to display a value of transitional attribute to column db entity column?
Mr President
Help me at the time 12.2.1 jdev.
How to display a value of transitional attribute to column db entity column?
I have the requirement to indicate a value of transitional attribute column in the column db entity for some reason any.
Any body can help as my show in the picture below
The StAmt is a transitional column and a column db of the entity.
Any body can help please. !
Concerning
This means that the amount to be the attribute will always has the same value of the transient attribute? If so, why do you want the amount attribute the transient attribute is sufficient?
Anyway, if you want to get attribute data in attribute transitional amounts you can open class ViewRowImpl and appearing in the getter or amount, you can get the value in the transitional as attribute:
public Number getAmount() { return getTransientAttribute(); //return (Number) getAttributeInternal(AMOUNT); }
in this case, the quantity data store database will not appear on the table it will still get the transitional attribute data and it's meaningless.
-
How to display the value of the variable for bottom of pl/sql
How to display the value of the variable for bottom of pl/sql
declare
V_1 number: = 10;
V_2 number: = 20;
V_3 number: = 30;
v_4 number: = 40;
v_5 number: = 50;
test varchar2 (100);
Start
I'm in 1.5
loop
test: = "v_" | I have;
dbms_output.put_line(i||) e > ' | test);
end loop;
end;
/
How to get below output:
1 > v_1
2 > v_2
3 > v_3
4 > v_4
5 > v_5
But I want to output of
1 > 10
2 > 20
3 > 30
4 > 40
5 > 50
Hello
You cannot reference variables as you did and get the value of the variable. Use pretty collection.
set serveroutput on size 2000 declare type number_table is table of number; numbers number_table := number_table(10, 20, 30, 40, 50); begin for i in numbers.first .. numbers.last loop dbms_output.put_line(i || '->' || numbers(i)); end loop; end; / anonymous block completed 1->10 2->20 3->30 4->40 5->50
See the Collections of PL/SQL and Records http://docs.oracle.com/cd/E11882_01/appdev.112/e25519/composites.htm#LNPLS005
-
How to display Quick values in the story
With the help of 11.1.1.6.2
In a dashboard page, I have a table with a hierarchy of dimension for the organization. If you click on a division he runs a link action to call a script in the browser (javascript in a text on the dashboard section) from the division. If you expand the section, and then click on a market, it calls the function javascript even.
Then, the Javascript function uses path go to update an analysis in an iFrame on the dashboard page and passes the value of the Division or the market value.
The analysis of the target has two filters: Division is invited and the market is invited.
So, after all, my question is how could display two values from the call of the road go into a narrative on the analysis of the target? Or I guess the other question is how to view the filter on the narrative values.
Sorry for the long explanation, but I hope it makes sense.
Thanks for any help or suggestion.
BradTry something using the Div tag
for ex:
< div id = filterValues > @{WeekBetween} {Default Value} < / div >
< script >
var i = document.getElementById('filterValues').innerHTML;
document.getElementById('filterValues').innerHTML = aParams ["varDivision"];
< /script >If brand pls help
-
How to display the columns in the wise line in pl sql
I have to display some values of constant wise online using the select statement. For example, after query both display constant columnwise...
Select 83: 42 double;
83 42
I want to display the rowwise... IE
Constant
83
42
I can create temporary table and add them then ask, but there should be a way I can use double to show the values line wise. something like
Select a double where an in (83, 42)
Appreciate your help.Hello
Here's one way:
SELECT column_value AS cnstnt FROM TABLE (sys.odcinumberlist (83, 42)) ;
CONSTANT is a keyword from Oracle is not a very good name for your own column.
-
Hi all
If I run this query using a tool like developer PL/SQL (SQL window), the values are displayed as a Collection. Just click and see the results of the al.
Select
dbms_resconfig.getRepositoryResConfigPaths)
Of
Double;
I want to know how to display these values using any tool of sqlplus (with dbms_output or something like that).
How can I do? With the help of the table? Create a type?
TKSuser12083350 wrote:
I want to know how to display these values using any tool of sqlplus (with dbms_output or something like that).
SQL> select * from table(dbms_resconfig.getRepositoryResConfigPaths()) 2 / COLUMN_VALUE -------------------------------------------------------------------------------- /sys/xs/userrc.xml /sys/xs/rolesetrc.xml /sys/xs/drolerc.xml /sys/xs/rolerc.xml /sys/xs/frolerc.xml /sys/xs/xdserc.xml /sys/xs/scrc.xml 7 rows selected. SQL>
And in PL/SQL:
SQL> declare 2 v_list xdb$string_list_t := dbms_resconfig.getRepositoryResConfigPaths(); 3 begin 4 for i in 1..v_list.count loop 5 dbms_output.put_line(v_list(i)); 6 end loop; 7 end; 8 / /sys/xs/userrc.xml /sys/xs/rolesetrc.xml /sys/xs/drolerc.xml /sys/xs/rolerc.xml /sys/xs/frolerc.xml /sys/xs/xdserc.xml /sys/xs/scrc.xml PL/SQL procedure successfully completed. SQL>
SY.
Published by: Solomon Yakobson, April 24, 2010 15:04
-
How to display the value of the column
Oracle 10g on Linux
I want to display the value of the id column in the table of www if count (distinct id) is 1. The following query is fine except that it does not display the value of the column ID help, please.
SELECT count(distinct id) FROM www c WHERE C.x_code IN (SELECT D.x_code FROM www_app d WHERE d.y_code = '1151299386') having count(distinct id) = 1
I think you can use MAX in this case
SELECT max(id) FROM www c WHERE C.x_code IN (SELECT D.x_code FROM www_app d WHERE d.y_code = '1151299386') having count(distinct id) = 1
-
How to display the values of the Parent form in the form of child
Hello
I have the order Page and Page element
In the order Page If I select any item and click submit, it should open the article Page and results should display in advance table region. In my article page I have region of header (default double) with 3 fields (dummy) as
Agenda
Description
org
Now my question is, I need to display the value of the item in the item Page header area in the column of the item that I was selecting in the order Page.
I have a prescription 100 point A, B, C, I select B and click on submit it should open on the Articles page and article Page, I have a column called Item and value B sholud be fulfilled.
Thank you
MaheshOAMessageTextInputBean oa = (OAMessageTextInputBean) webBean.findChildRecursive ("ItemNo");
oa.setAttributeValue (SItemNo);There is no such method as setAttributeValue for UI beans, this method is for VO, that is to say if you take a VO and VO a method object to set its attribute.
Bean of the user interface, you will need to use method below,
OAMessageTextInputBean oa = (OAMessageTextInputBean)webBean.findChildRecursive("ItemNo"); oa.setValue(pageContext,SItemNo);
Thank you
AJ -
How to display NULL value first in a result
Hi all
I have this simple query:
All I want to do is display the value NULL value before everything else. I tried to do the sorting and all I could think about, but it did not work. Any ideas?SELECT NULL as pay_period FROM DUAL UNION SELECT DISTINCT pay_period FROM period_table
Expected results:
{null}
1
2
3
4
5
etc...SQL> select null from dual 2 union 3 select deptno from dept 4 order by 1 nulls first 5 / NULL -------------------------------------- 10 20 30 40 5 rijen zijn geselecteerd.
Kind regards
Rob. -
How to display the results of a MySql query in multiple columns?
Hi, I know how to display PHP/MySq
l of the results in a single column, but I'm really stuck to show
Ying the results of several columns in DW CS4.
Can someone help me with a code example? I'm new to php/mysql. Thank you
Are you asking how to rotate the query results? Do a search for a horizontal loop. If this isn't what you're asking, please provide more details.
-
How to display the value of a column as the title of a report?
I have a table with two columns: a column has a date, another b column is varchar. Two columns values like this:
A AND B
12/03/2012 test1
22/04/2010 test2
09/08/2011 test3
29/07/2011 test1
01/12/2010 test3
28/10/2010 test2
I need to generate a report for A year and count b like this:
CalendarYear test1 test2 test3 total
2010-2011 count (test1) count (test2) count (test3) count (test1) + count (test2) + count (test3)
2011-2012-count (test1) count (test2) count (test3)
How to get there?
Thank you.
Jen
Published by: Jen Hu on November 1, 2012 11:31SQL > select trunc (i, 'year'), count (*), sum (decode(j,'test1',1,0)) test1cnt, sum (decode(j,'test2',1,0)) test2cnt, sum (decode(j,'test3',1,0)) test3cnt
2 of demo2
3 Group of trunc (i, 'year');TRUNC (I,'Y COUNT (*) TEST1CNT TEST2CNT TEST3CNT)
---------- ---------- ---------- ---------- ----------
01/01/2012 1 1 0 0
01/01/2010 2 0 1 1
2011-01-01 2 0 0 1 -
How to display the values of the component of the shuttle by defaul in shuttle from left
Hi, I have created part of shuttle through JDeveloper
and I put all the properties
It displays on the page
There are two boxes or shuttle displayed
one is for the other for selected values containing all of the values
but in my case bydefault all values are displayed to the right of the box
I mean, by default all values are selected
How can I solve thisHA,
First remove the entire list of choices associated with definitions of the bean of the shuttle. The same check if it always throws an error.
View me lookup definition, attribute, definition drop-down list Attriubute view drop-down list.
Kind regards
GYAN -
How to display the value of the parameter in the xmlp layout
Hi all
1.) my rdf report that generates an xml (I m using to create the model of presentation xmlp) file takes some parameters.
(2) rdf even generates also a PDF file that i'm using a pattern pre-determined XMLP design layout, this PDF shows also the values of the given parameters.
3.) so that these settings are not available as a block of data or in the XML output.
My question is how can I display the same settings in my layout xmlp or how can I get the element name for the parameter that are given when running simultaneous program values.
Thank you
PratapAt the beginning of the report, simply add these
where p_PARAMETER1, p_start_date, and p_end_date are names of param simultaneous pgm
and refer to them as$p_PARAMETER1?> $p_END_DATE?> $p_START_DATE?>
-
How to display a value constant and variable
Hello
I'm trying to display a variable in sql the line of command and oracle xe object browser. Here is a small code to assign a value to a variable of an existing column name id that has value 4567 plane of the table. I'm a newbie, so forgive my ignorance:
Report the number of new_num;
Start
Select code in new_num of aircraft where id = 4567;
end;
/
Issues related to the:
1. something wrong with the code?
2. How can I he discovers via sql more command line?
3. can I see it in Oracle XE gui object browser?
Kind regards
ValerieDbms_output.put_line ();
declare new_num number; begin select id into new_num from airplane where id=4567; dbms_output.put_line('new_num:'||new_num); end; /
-
How to display the values of sno using the query?
Hi all
I use oracle 10g. Could u pls help for sno or count as follows.below is the set of sample data,
I need the o/p should be displayed with the County as follows.100 JOE 1-JAN-2012 1000 100 JOE 15-FEB-2012 3000 200 MAX 1-MAR-2012 5000 200 MAX 1-APR-2012 5000 200 MAX 1-MAY-2012 4000 .... ..... ............... ......
How to reach this sno 1,2,3 for each record? is it possible?. can u suggest me the solution?sno eno name hdate amt 1 100 JOE 1-JAN-2012 1000 2 100 JOE 15-FEB-2012 3000 1 200 MAX 1-MAR-2012 5000 2 200 MAX 1-APR-2012 5000 3 200 MAX 1-MAY-2012 4000 .. .... ..... ............... ......
Thank you
Concerning
VidsHi vidusnat,
SQL> with t as ( 2 select 100 eno, 'JOE' name, to_date('1-JAN-2012', 'DD-MON-YYYY') hdate, 1000 amt from dual 3 union all 4 select 100 eno, 'JOE' name, to_date('15-FEB-2012', 'DD-MON-YYYY') hdate, 3000 amt from dual 5 union all 6 select 200 eno, 'MAX' name, to_date('1-MAR-2012', 'DD-MON-YYYY') hdate, 5000 amt from dual 7 union all 8 select 200 eno, 'MAX' name, to_date('15-APR-2012', 'DD-MON-YYYY') hdate, 5000 amt from dual 9 union all 10 select 200 eno, 'MAX' name, to_date('15-MAY-2012', 'DD-MON-YYYY') hdate, 4000 amt from dual 11 ) 12 select row_number() over (partition by t.eno order by t.hdate),t.* from t 13 ; SQL> / ROW_NUMBER()OVER(PARTITIONBYT.ENOORDERBYT.HDATE) ENO NAM HDATE AMT ------------------------------------------------ ---------- --- --------- ---------- 1 100 JOE 01-JAN-12 1000 2 100 JOE 15-FEB-12 3000 1 200 MAX 01-MAR-12 5000 2 200 MAX 15-APR-12 5000 3 200 MAX 15-MAY-12 4000 SQL>
Kind regards
Gennady
Maybe you are looking for
-
I can no more pages of a pdf to another document. How can I do?
I want the pages of a pdf document in another pdf document. How can I do?
-
Satellite A300 - overheating graphics card
Hello. My Satellite A300 got recently repaired from the Toshiba official represent in my hometown of Portugal. The problem was overheating, as usual. They understood the problem, it was dust and the radiator was malfuncion. They have changed the radi
-
Get rid of the column «iCloud download»
Whenever iTunes (12.3.2.35) is started, the 'iCloud download' column is back. I do not use iCloud for songs, so I won't and I don't like Apple interfere with my way of organizing in iTunes. Is there a way to get rid of this column? (I'm on OSX 10.11.
-
Horizontal lines after turning on my Satellite
Sometimes when I turn on the laptop, it happens with a lot of horizontal lines and worsens. If I press the specific keys on the left side of the keyboard, the lines disappear and may disappear completely and no return, but most of the time they come
-
Satellite L40 - 18Y: corrupt system files - how to use the recovery partition
Greetings, One of my friends bought the Bulgarian electronic Toshiba Satellite L40 - 18Y (PSL48E) from a major retailer and insists on the fact that it came without any CD, but the first time he installed Vista. After that some of his other friends h