Getting quarters with two input date-parameters
I have to find a way to get all the quarters between a startdate and an enddate, like 01-04-2009 (startdate) and 31-11-2009 (enddate). An extra condition is to count an extra quarter above the enddate, so the last quarter is 2010-01 (first quarter of 2010).
The desired result will be:
2009-02
2009-03
2009-04
2010-01
The start- and enddate are inputparameters.
How do I get this result?
Hi,
You're getting a quarter for each 3 values of LEVEL.
To get one more quarter, add 3 to the limit on LEVEL:
select distinct
to_char(qdate,'YYYYQ') quarter
from ( select add_months ( to_date (:start_date, 'DD/MM/YYYY')
, m
) qdate
from ( select level m
from dual
connect by level < 3 + -- Added
ceil ( months_between ( to_date (:end_date, 'DD/MM/YYYY')
, to_date (:start_date,'DD/MM/YYYY')
order by quarter
;Edited by: Frank Kulash on Jan 22, 2010 9:09 AM
By the way, you don't need all those sub-queries.
SELECT TO_CHAR ( ADD_MONTHS ( TO_DATE (:start_date, :date_format)
, 3 * (LEVEL - 1)
, 'YYYYQ'
FROM dual
CONNECT BY LEVEL <= 1 + CEIL ( MONTHS_BETWEEN ( TO_DATE (:end_date, :date_format)
, TO_DATE (:start_date, :date_format)
/ 3
;
Similar Messages
-
How to get the fixed result in a DES/CBC mode with fixed input data and fix
How to get the fixed result in a DES/CBC mode with fixed input data and fixed key. Below is my program , I tried to get the checksum of the DESInputData with the DESKeyData, but each time the result is different.
below is my code:
byte[] DESKeyData = {(byte)0x01 ,(byte)0x01 ,(byte)0x01 ,(byte)0x01, (byte)0x01 ,(byte)0x01 ,(byte)0x01 ,(byte)0x01 };
byte[] DESInputData = {(byte)0x31 ,(byte)0x31 ,(byte)0x31 ,(byte)0x31,(byte)0x31 ,(byte)0x31 ,(byte)0x31 ,(byte)0x31 };
SecretKeySpec skey = new SecretKeySpec( DESKeyData, "DES" );
Cipher cipher = Cipher.getInstance("DES/CBC/NoPadding");
cipher.init( Cipher.ENCRYPT_MODE, skey );
byte[] result = cipher.doFinal( DESInputData );Use class javax.crypto.spec.IvParameterSpec to specify IV for CBC mode cipher:
// Create CBC-mode triple-DES cipher.
Cipher c = Cipher.getInstance("DESede/CBC/PKCS5Padding");
// Specify IV.
IvParameterSpec iv = new IvParameterSpec(new byte[] { (byte)0x01, (byte)0x23, (byte)0x45, (byte)0x67, (byte)0x89, (byte)0xAB, (byte)0xCD, (byte)0xEF });
// Initialize cipher with proper IV.
c.init(Cipher.ENCRYPT_MODE, yourKey, iv);
// Encrypt and decrypt should work ok now.
For more info about cryptography, search the Internet for IntroToCrypto.pdf from mr. Phil Zimmerman. This document is also part of PGP (http://www.pgp.com).
An excellent book is 'Applied Cryptography' from Bruce Schneier (http://www.counterpane.com/applied.html).
Regards,
Ronald Maas -
How can i control graph with two inputs?
Hi,
i would like to ask you about the graph with two inputs
Normally, if i just give one input, they generate the graph with this input(y) vs time(x).
But now i would like to get the graph with my two inputs in x axis and y axis .
i want to control both of two axis. How could i do for it ?
i attached the file that i try to use "Build XY graph" to control both x and y axis with random number .
It can run but i don't know how come the graph show nothing. .
Actually , it have to show something like wavefrom continuously. am i right?
Could you tell me a way to solve it ?
>>>
what i want to get is ..
in Graph,
for x axis , ditance (always increases)
for y axis , vibration (vary)
>>>
Thank you so much for your time . I am looking forward your kindly reply.
With Respect,
Su
Attachments:
using Build XY graph.vi 59 KBHi NI9233,
Mind me to interrupt, I am just helping Mike to explain what he meant to you, refer to the graph:
Picture 1:
Double click on Build XY Graph, uncheck the clear data on each call
Picture 2 and 3:
Change your formula node into +1 Basic Function in Functions Pallette.
Hope that helps!
PS: I am sorry for the size of the image, seems I made a mistakes when I saved the picture.
Sincerely,
Krisna Wisnu
Message Edited by Krisna Wisnu on 11-19-2008 08:19 PM
Sincerely,
Krisna Wisnu
Attachments:
Clear Graph on Each Call.PNG 46 KB
+1.PNG 30 KB
+1_2.PNG 21 KB -
Problem validating an two Input Date components !...
Hi to all the users !. I would like to tell my problem... I have two input dates ("from" and "to") and I would like that the value from the "from" component isn't higher than the value from the "to" component... For that, I have use a validateDateTimeRange validator and set the "Maximum" value... My problem is that I don't get validated my inputdates components and additionally, when I select a date it appears with a strange format... Although I set the pattern to "dd/mm/yyyy" !... Let say... If I choose the 23th of July of 2012, the input date show "23/58/2012"... What would be the problem ?... Thankx !...
Navaneetha: Thankx for your help !; I will check it right now... I didn't answer as I was having lunch ! :D Thankx again
Suresh: A friend from another group told me that and the problem was solved !; anyway... Thankx for your time ! :d -
How to process reports with two different date fields
Morning all,
This question is somewhat similar to what I asked few days back. I created two different reports for two different departments (Credit Control and Free of Charge Control).
These two reports pull data from two different date fields and has different status check ups.
Few days back my director requested me if he can have both reports in one report. That is when I asked question from all of you regarding two reports.
Anyhow, that was created by implementing two sub reports however, the director asked me to combine the two different reports into one in such a way that the output records should be added up with each other hence one single report with all combined data of Credit Control and Free of Charges (not two sub reports in one report).
The problem here which I am getting is that, both reports uses two different date fields. I can live with two different statuses as that can be easily done within formula/RT however how to create a report with Report Selection Formula condition which looks in both date fields and produces results accordingly?
I have tried this by not putting any condition in report selection formula and ran the report, it produced total results from past 6 years.
Any ideas how to produce combined report which has two different date fields?
Many thanks in advance
Regards
Jehanzeb
What ICharliy,
No the both dates are from two different databases, tables and fields. The Credit date field is from KLAB database under max table where as the FOC date field is from SAE database under maxmast table. Klab date is under credit2 table where as foc date is under order header table.
So its more like this:
Klab->Max-Credit2--->Credit_date
Sae->Maxmast->Order_header---Date entered.
two dates totally different tables, dbs
however, I will try your idea too and see if that works.
Regards
Jehanzeb -
Hello All!
I'm using a form to add and remove parameters for a service definition.
<form action="serviceinput.jsp" method="post">
<table>
<tr>
<td><b>Level</b></td>
<td><b>Fieldname</b></td>
<td><b>Stucturename</b></td>
<td><b>Type</b></td>
<td><b>Format</b></td>
<td><b>Optional</b></td>
<td><b>Semantics</b></td>
</tr>
<%
for (Iterator iterParameters = parameters.iterator(); iterParameters.hasNext();)
Parameter parameter = (Parameter) iterParameters.next();
%>
<tr>
<td><%= parameter.getLevel() %></td>
<td><%= parameter.getFieldname() %></td>
<td><%= parameter.getStructurename() %></td>
<td><%= parameter.getType() %></td>
<td><%= parameter.getFormat() %></td>
<td><%= parameter.getOptional() %></td>
<td><%= parameter.getSemantics() %></td>
</tr>
<%
%>
</table>
<input type="submit" name="<%= parameters.addParameter() %>" value="add"/>
<input type="submit" name="<%= parameters.removeParameter() %>" value="remove"/>
</form>
The special thing about is, that I'm using two <input type="submit"...> buttons.
The idea is, that I'd like to add one more row with attributes by clicking the "add" button and removing one row by clicking the "remove" button.
If I use just one of them, it works fine. If I use both of them, nothing happens at all.
Isn't it allowed to use two <input type="submit"...> fields?
Is there an alternative? How can I implement my form the correct way?
Thanks a lot in advance to all!
Regards,
TomiHi,
Hai Tomi ,
As swati already Explained U can try it with buttons,
But u have to make a Hidden field and set the value of the hidden field
with the Javascript code after pressing the button , Call a client side function which has an argument as given below
Validate the Flag field in the JSP file
<script language=javascript>
function Validate(s)
if(s==1)
document.forms['ServiceInput'].elements["flag"].value="add";
else
document.forms['ServiceInput'].elements["flag"].value="Remove";
document.forms['ServiceInput'].submit();
alert("hai");
</script>
<form name="ServiceInput" action="serviceinput.jsp" method="POst">
<table>
<tr>
<td><b>Level</b></td>
<td><b>Fieldname</b></td>
<td><b>Stucturename</b></td>
<td><b>Type</b></td>
<td><b>Format</b></td>
<td><b>Optional</b></td>
<td><b>Semantics</b></td>
</tr>
<%
for (Iterator iterParameters = parameters.iterator(); iterParameters.hasNext();)
Parameter parameter = (Parameter) iterParameters.next();
%>
<tr>
<td><%= parameter.getLevel() %></td>
<td><%= parameter.getFieldname() %></td>
<td><%= parameter.getStructurename() %></td>
<td><%= parameter.getType() %></td>
<td><%= parameter.getFormat() %></td>
<td><%= parameter.getOptional() %></td>
<td><%= parameter.getSemantics() %></td>
</tr>
<%
%>
</table>
<input type=hidden name=flag value="bb">
<input type="Button" name="b1" value="add" onclick= "Validate(1)">
<input type="Button" name="b2" value="remove" onclick= "Validate(2)">
</form> -
UDF to compare the dates with the input date
Hi,
Help me in writing an UDF to compare the input date with start date and end date.
I had written following UDF, but it is not working. we are on XI 3.0
try {
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
Date sd = df.parse(StartDate);
Date id = df.parse(InputDate);
Date ed = df.parse(EndDate);
if ((sd.before(id) || (sd.equals(id))) && (ed.after(id)) || (ed.equals(id))) {
return true;
else{
return false;
} catch (Exception e){
e.printStackTrace();
Thanks
SrinivasHello Srinivas,
did you import this two classes in your UDF ? java.text.* and java.util.*
In case you did but the program is still not working I just wrote a code without imports. See if this might help. I have tested this with all type of data please test again from your end. I have assumed that if three dates are equal the function return true. I am not sure whether you wanted to exclude the boundary dates. In case you want to exclude those dates just replace '<=' with '<' symbol. The code could have been smarter but in short time I thought this might help.
public class DateRange {
static boolean compareDate(String startDate,String inputDate,String endDate)
int j,k,l;
String s[],i[],e[];
s=startDate.split("-", 3);
i=inputDate.split("-", 3);
e=endDate.split("-", 3);
j=s[0].compareTo(i[0]);
k=i[0].compareTo(e[0]);
l=s[0].compareTo(e[0]);
if(l>0|| j>0 || k>0)
return false;
if(j<=0 && k<0)
return true;
j=s[1].compareTo(i[1]);
k=i[1].compareTo(e[1]);
l=s[1].compareTo(e[1]);
if(l>0|| j>0 || k>0)
return false;
if(j<=0 && k<0)
return true;
j=s[2].compareTo(i[2]);
k=i[2].compareTo(e[2]);
l=s[2].compareTo(e[2]);
if(l>0|| j>0 || k>0)
return false;
if(j<=0 && k<=0)
return true;
return false;
public static void main(String[] args) {
String startDate="1992-04-03";
String inputDate="1992-02-03";
String endDate="1992-02-03";
System.out.println(compareDate(startDate,inputDate,endDate));
Plese let me know if this works.
regards
Anupam -
Dear All,
I am working on a requirement where I am sendind a message
(underlying protocol used TCP/IP) using a program
developed using Java Sockets.
It sends the messgage on desired mechine and port but two dots(..)
gets appended with this message .
I am really not able to figure out from where these dots are coming ,
is it the network that appends these dots.
Any clue will be helpful.
An early response is highly appriciable.
Thanks and Regards
Dushyant BhardwajYou should use a BufferedWriter instead of a PrintWriter, since you're using a BufferedReader. these streams tend to work best in pairs. The readLine requires a newline, so
import java.io.*;
import java.net.*;
public class TestSW
public static void main(String[]args)
BufferedWriter output;
BufferedReader networkBin;
Socket socket=null;
try{
socket = new Socket("127.0.0.1",5050); // connect to echo server
output = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
networkBin = new BufferedReader(new InputStreamReader(socket.getInputStream()));
output.write("testing");
output.newLine();
output.flush();
System.out.println(networkBin.readLine());
}catch(IOException e){
e.printStackTrace();
}finally{
if(socket != null){
try{socket.close();}catch(IOException ce){}
} -
External Speakers with Two Input Wires?
My new HP Pavilion G7 has one external audio out connector but my speakers have two inputs, one for the bass woofer and another for the regular speakers. Both wires connect to the woofer and are then sent to the regular speakers. Is there any way I can use both these inputs for my system or am I stuck with just the regular speakers?
Hi,
Are you saying that your woofer and speaker work independently? We should be looking for main Audio In Cable if woofer and speakers are connected to each other. Please provide me the make and model of the speaker set so that we can look for more information on this.
I work for HP.
Click on the BLUE KUDOS button on the left to say "Thanks".
Mark answer with 'Accept as Solution', if it solves your problem. -
Error with bc4j input date tag running a Jsp file.
when im running the bc4j input date tag in a form, a jscript error comes up (object not found error)-> When i pick the date control. I have already checked the cabo directory and all files is there. The same enviroment in other developers PC�s works well.
Have you got that error?
how can i fix it?
The calendar never comes up.
Thank uThe none value is only shown when the field accepts null values.
-
Performance issue with SQL with different input data
Hi Experts,
I have an SQL query that uses three tables imtermination, imconnection, imconnectiondesign. Each of these tables have around 23Lakh, 11Lakh, 11Lakh rows respectively. There are appropriate indexes on these tables.
Now there is a query:
SELECT
/*+ NO_MERGE(a) ORDERED USE_NL(c) */ c.objectid,
c.typeid,
c.transactionstatus,
c.usersessionid,
cd.objectid designid,
c.reservationid,
c.networkid,
c.networktype,
cd.inprojectid,
cd.inprojecttype,
cd.outprojectid,
cd.outprojecttype,
cd.asiteid,
cd.asitetype,
cd.anetworkelementid,
cd.anetworkelementtype,
cd.aportid,
cd.aporttype,
cd.achannelpath,
c.asignaltype,
cd.zsiteid,
cd.zsitetype,
cd.znetworkelementid,
cd.znetworkelementtype,
cd.zportid,
cd.zporttype,
cd.zchannelpath,
c.zsignaltype,
c.signaltype,
c.visualkey,
c.resourcestate,
cd.assignmentstate,
c.effectivefrom,
cd.effectiveto,
c.channelized,
c.circuitusage,
c.hardwired,
c.consumedsignaltype,
c.flowqualitycode,
c.capacityused,
c.percentused,
c.maxcapacity,
c.warningthreshold,
c.typecode,
cd.lastupdateddate,
c.lastreconcileddate,
c.bandwidth,
c.unit
FROM
(SELECT terminatedid
FROM imtermination t1
WHERE t1.networkelementid = 9200150)
a,
imconnectiondesign cd,
imconnection c
WHERE cd.objectid = a.terminatedid
AND c.objectid = cd.connectionid
AND(SUBSTR('10000000000000000000011111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', c.consumedsignaltype + 1, 1) = '1' OR SUBSTR('10000000000000000000011111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', c.signaltype + 1, 1) = '1')
AND c.typeid = '$131'
AND cd.assignmentstate IN(2, 3)
The above query takes around 70 secs to execute when input t1.networkelementid = 9200150. Moreover i have observed in the enterprise manager that this has very high i/o wait time.
Now the same query takes around 5 secs to execute when the input t1.networkelementid = 42407448. Both these obejcts with id 9200150 and 42407448 have almost same number of rows and output and without any condition each have 6500 rows in all the three tables.
The execution plan for both these queries with t1.networkelementid = 9200150 and t1.networkelementid = 42407448 is also coming same.
The rows that are corresponding to t1.networkelementid = 9200150 in these three tables are the result of the data created through the application over a period of time. While in case of rows corresponding to t1.networkelementid = 42407448 i have created manually and are contiguous in the three tables.
Does the above behavior is because in case of t1.networkelementid = 42407448 the rows that corresponds to it are not contiguous as they are created over a period of time ?
Execution Statistics
Total Per Execution Per Row
Executions 1 1 0.02
CPU Time (sec) 0.91 0.91 0.02
Buffer Gets 11943 11943.00 238.86
Disk Reads 4804 4804.00 96.08
Direct Writes 0 0.00 0.00
Rows 50 50.00 1
Fetches 5 5.00 0.10
User I/O Waits(98.7%)
CPU(1.3%)
Enterprise manager shows high db file scattered read in case of t1.networkelementid = 9200150, the input for which it is taking 70 secs.
Request experts to provide some pointers to fix this issue as i am not an expert in db tuning.
Thanks in advance for your help.
RegardsHi David,
Please find below the output:
SQL> SELECT table_name, num_rows, last_analyzed
2 FROM all_tables
3 WHERE table_name IN ('IMTERMINATION', 'IMCONNECTIONDESIGN', 'IMCONNECTION')
4 /
TABLE_NAME NUM_ROWS LAST_ANAL
IMTERMINATION 2338746 19-SEP-11
IMCONNECTIONDESIGN 1129298 19-SEP-11
IMCONNECTION 1169373 19-SEP-11
IMTERMINATION 19852 13-SEP-11
IMCONNECTIONDESIGN 6820 13-SEP-11
IMCONNECTION 9926 13-SEP-11
6 rows selected.
SQL> SELECT table_name, index_name,num_rows, last_analyzed
2 FROM all_indexes
3 WHERE table_name IN ('IMTERMINATION', 'IMCONNECTIONDESIGN', 'IMCONNECTION')
4 order by table_name,index_name
5 /
TABLE_NAME INDEX_NAME NUM_ROWS LAST_ANAL
IMCONNECTION IMCONNECTION_A_NE 9925 13-SEP-11
IMCONNECTION IMCONNECTION_A_NE 1169154 19-SEP-11
IMCONNECTION IMCONNECTION_A_PORT 84743 19-SEP-11
IMCONNECTION IMCONNECTION_A_PORT 3371 13-SEP-11
IMCONNECTION IMCONNECTION_A_SITE 1169373 19-SEP-11
IMCONNECTION IMCONNECTION_A_SITE 9926 13-SEP-11
IMCONNECTION IMCONNECTION_NET 0 19-SEP-11
IMCONNECTION IMCONNECTION_NET 12 13-SEP-11
IMCONNECTION IMCONNECTION_PK 9926 13-SEP-11
IMCONNECTION IMCONNECTION_PK 1169373 19-SEP-11
IMCONNECTION IMCONNECTION_RES 0 13-SEP-11
IMCONNECTION IMCONNECTION_RES 0 19-SEP-11
IMCONNECTION IMCONNECTION_ST 2 13-SEP-11
IMCONNECTION IMCONNECTION_ST 60 19-SEP-11
IMCONNECTION IMCONNECTION_TYPEID 4 13-SEP-11
IMCONNECTION IMCONNECTION_TYPEID 64 19-SEP-11
IMCONNECTION IMCONNECTION_UR 26880 19-SEP-11
IMCONNECTION IMCONNECTION_UR 3 13-SEP-11
IMCONNECTION IMCONNECTION_VK 9810 13-SEP-11
IMCONNECTION IMCONNECTION_VK 1191866 19-SEP-11
IMCONNECTION IMCONNECTION_Z_NE 1169173 19-SEP-11
IMCONNECTION IMCONNECTION_Z_NE 9925 13-SEP-11
IMCONNECTION IMCONNECTION_Z_PORT 84092 19-SEP-11
IMCONNECTION IMCONNECTION_Z_PORT 3370 13-SEP-11
IMCONNECTION IMCONNECTION_Z_SITE 9926 13-SEP-11
IMCONNECTION IMCONNECTION_Z_SITE 1169373 19-SEP-11
IMCONNECTIONDESIGN IMCONNECTIONDESIGN_CON 1129298 19-SEP-11
IMCONNECTIONDESIGN IMCONNECTIONDESIGN_CON 6820 13-SEP-11
IMCONNECTIONDESIGN IMCONNECTIONDESIGN_PK 1129298 19-SEP-11
IMCONNECTIONDESIGN IMCONNECTIONDESIGN_PK 6820 13-SEP-11
IMCONNECTIONDESIGN IMCONNECTIONDESIGN_ST 6820 13-SEP-11
IMCONNECTIONDESIGN IMCONNECTIONDESIGN_ST 1129298 19-SEP-11
IMTERMINATION IMTERMINATION_ID 19852 13-SEP-11
IMTERMINATION IMTERMINATION_ID 2279477 19-SEP-11
IMTERMINATION IMTERMINATION_NE 19850 13-SEP-11
IMTERMINATION IMTERMINATION_NE 2327175 19-SEP-11
IMTERMINATION IMTERMINATION_PORT 168835 19-SEP-11
IMTERMINATION IMTERMINATION_PORT 6741 13-SEP-11
IMTERMINATION IMTERMINATION_SITE 19852 13-SEP-11
IMTERMINATION IMTERMINATION_SITE 2391415 19-SEP-11
40 rows selected.
SQL> select table_name,index_name,column_name,column_position
2 FROM all_ind_columns
3 WHERE table_name IN ('IMTERMINATION', 'IMCONNECTIONDESIGN', 'IMCONNECTION')
4 order by table_name,index_name, column_position
5 /
TABLE_NAME INDEX_NAME
COLUMN_NAME
COLUMN_POSITION
IMCONNECTION IMCONNECTION_A_NE
ANETWORKELEMENTID
1
IMCONNECTION IMCONNECTION_A_NE
ANETWORKELEMENTID
1
IMCONNECTION IMCONNECTION_A_PORT
APORTID
1
IMCONNECTION IMCONNECTION_A_PORT
APORTID
1
IMCONNECTION IMCONNECTION_A_SITE
ASITEID
1
IMCONNECTION IMCONNECTION_A_SITE
ASITEID
1
IMCONNECTION IMCONNECTION_NET
NETWORKID
1
IMCONNECTION IMCONNECTION_NET
NETWORKID
1
IMCONNECTION IMCONNECTION_PK
OBJECTID
1
IMCONNECTION IMCONNECTION_PK
OBJECTID
1
IMCONNECTION IMCONNECTION_RES
RESERVATIONID
1
IMCONNECTION IMCONNECTION_RES
RESERVATIONID
1
IMCONNECTION IMCONNECTION_ST
RESOURCESTATE
1
IMCONNECTION IMCONNECTION_ST
RESOURCESTATE
1
IMCONNECTION IMCONNECTION_TYPEID
TYPEID
1
IMCONNECTION IMCONNECTION_TYPEID
TYPEID
1
IMCONNECTION IMCONNECTION_UR
USERSESSIONID
1
IMCONNECTION IMCONNECTION_UR
USERSESSIONID
1
IMCONNECTION IMCONNECTION_VK
VISUALKEY
1
IMCONNECTION IMCONNECTION_VK
VISUALKEY
1
IMCONNECTION IMCONNECTION_Z_NE
ZNETWORKELEMENTID
1
IMCONNECTION IMCONNECTION_Z_NE
ZNETWORKELEMENTID
1
IMCONNECTION IMCONNECTION_Z_PORT
ZPORTID
1
IMCONNECTION IMCONNECTION_Z_PORT
ZPORTID
1
IMCONNECTION IMCONNECTION_Z_SITE
ZSITEID
1
IMCONNECTION IMCONNECTION_Z_SITE
ZSITEID
1
IMCONNECTIONDESIGN IMCONNECTIONDESIGN_CON
CONNECTIONID
1
IMCONNECTIONDESIGN IMCONNECTIONDESIGN_CON
CONNECTIONID
1
IMCONNECTIONDESIGN IMCONNECTIONDESIGN_PK
OBJECTID
1
IMCONNECTIONDESIGN IMCONNECTIONDESIGN_PK
OBJECTID
1
IMCONNECTIONDESIGN IMCONNECTIONDESIGN_ST
ASSIGNMENTSTATE
1
IMCONNECTIONDESIGN IMCONNECTIONDESIGN_ST
ASSIGNMENTSTATE
1
IMTERMINATION IMTERMINATION_ID
TERMINATEDID
1
IMTERMINATION IMTERMINATION_ID
TERMINATEDID
1
IMTERMINATION IMTERMINATION_NE
NETWORKELEMENTID
1
IMTERMINATION IMTERMINATION_NE
NETWORKELEMENTID
1
IMTERMINATION IMTERMINATION_PORT
PORTID
1
IMTERMINATION IMTERMINATION_PORT
PORTID
1
IMTERMINATION IMTERMINATION_SITE
SITEID
1
IMTERMINATION IMTERMINATION_SITE
SITEID
1
40 rows selected.
Plan without sql hints:
SQL> select * from table(dbms_xplan.display)
2 /
PLAN_TABLE_OUTPUT
Plan hash value: 2493901029
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 40 | 9960 | 6316 (1)| 00:01:16 |
| 1 | NESTED LOOPS | | 40 | 9960 | 6316 (1)| 00:01:16 |
| 2 | NESTED LOOPS | | 1359 | 160K| 3592 (1)| 00:00:44 |
| 3 | TABLE ACCESS BY INDEX ROWID| IMTERMINATION | 1359 | 16308 | 915 (1)| 00:00:11 |
|* 4 | INDEX RANGE SCAN | IMTERMINATION_NE | 1359 | | 6 (0)| 00:00:01 |
|* 5 | TABLE ACCESS BY INDEX ROWID| IMCONNECTIONDESIGN | 1 | 109 | 2 (0)| 00:00:01 |
|* 6 | INDEX UNIQUE SCAN | IMCONNECTIONDESIGN_PK | 1 | | 1 (0)| 00:00:01 |
|* 7 | TABLE ACCESS BY INDEX ROWID | IMCONNECTION | 1 | 128 | 2 (0)| 00:00:01 |
|* 8 | INDEX UNIQUE SCAN | IMCONNECTION_PK | 1 | | 1 (0)| 00:00:01 |
Predicate Information (identified by operation id):
4 - access("T1"."NETWORKELEMENTID"=9200150)
5 - filter("CD"."ASSIGNMENTSTATE"=2 OR "CD"."ASSIGNMENTSTATE"=3)
6 - access("CD"."OBJECTID"="TERMINATEDID")
7 - filter((("C"."CONSUMEDSIGNALTYPE"=21 OR "C"."CONSUMEDSIGNALTYPE"=22 OR
"C"."CONSUMEDSIGNALTYPE"=23 OR "C"."CONSUMEDSIGNALTYPE"=24 OR "C"."CONSUMEDSIGNALTYPE"=25 OR
"C"."CONSUMEDSIGNALTYPE"=26 OR "C"."CONSUMEDSIGNALTYPE"=27 OR "C"."CONSUMEDSIGNALTYPE"=28 OR
"C"."CONSUMEDSIGNALTYPE"=29 OR "C"."CONSUMEDSIGNALTYPE"=30 OR "C"."CONSUMEDSIGNALTYPE"=31 OR
"C"."CONSUMEDSIGNALTYPE"=32 OR "C"."CONSUMEDSIGNALTYPE"=33) OR ("C"."SIGNALTYPE"=21 OR
"C"."SIGNALTYPE"=22 OR "C"."SIGNALTYPE"=23 OR "C"."SIGNALTYPE"=24 OR "C"."SIGNALTYPE"=25 OR
"C"."SIGNALTYPE"=26 OR "C"."SIGNALTYPE"=27 OR "C"."SIGNALTYPE"=28 OR "C"."SIGNALTYPE"=29 OR
"C"."SIGNALTYPE"=30 OR "C"."SIGNALTYPE"=31 OR "C"."SIGNALTYPE"=32 OR "C"."SIGNALTYPE"=33)) AND
"C"."TYPEID"='$131')
8 - access("C"."OBJECTID"="CD"."CONNECTIONID")
32 rows selected. -
How to get value with two parameter fro sharepoint list in SSRS reporting
Hi
I am using Sharepoint list and fetching data in SSRS.
Using three parameter as Department,Section and subsection.
with filter everything working fine,but if i use category All and Sub category all for particular department,unable to get record.
please let me know how to implement.
Help will be appreciated.
Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Sharepoint and EPM Consultant,TCS
|
| TwitterHi Hasan,
Per my understanding you want to add mutilple value parameters to filter the data in the sharpoint list datasource report, right?
I have a test based on the step by step details information in below link and all works fine which will make the multiple value parameter works fine:
https://audministrator.wordpress.com/2014/02/17/sharepoint-list-add-distinct-parameter-value/
Add the custom code from above link
Parem1 is the parameter which get values from a query and with all the values(duplicate value),please setting as below:
Param2 is the parameter which will display in the report have done the deduplication, check the "Allow Multiple values" and then Specify the available value and default value using below expression:
=Split(Code.RemoveDups(JOIN(Parameters!Param1.Value, ",")), ",")
Add the filter and preview.
Similar thread below for your reference:
SSRS reporting with sharepoint list using Distinct and Multivalue
parameters
If i have some misunderstanding, please try yto provide more details information about your requirements.
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support -
Function Module to get days by putting input dates
Hi All,
could anybody tell me which Function Module can be used to get the number of days by giving two dates.
for ex: suppose if i will substract 04.01.2008 - 03.01.2008 = 1 day.
Please reply ASAP.
Thanks,
MadhuHello,
Check this sample:
DATA: G_F_DIFF TYPE I.
CLEAR G_F_DIFF.
CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'
EXPORTING
I_DATUM_BIS = ENDATE
I_DATUM_VON = STARTDATE
IMPORTING
E_TAGE = G_F_DIFF
EXCEPTIONS
DAYS_METHOD_NOT_DEFINED = 1
OTHERS = 2.
Cheers,
Vasanth
Edited by: Vasanth M on Jan 25, 2008 10:41 PM -
Paging WIth Two Disassociated Data Controls
Is it possible to have two completely disassociated (not parent-child) data controls on a page, each having their own paging buttons?
I have a requirement for a detail view of one data control with a read-only view of another data control underneath. I would like to have separate paging for both. I cant seem to find any examples of doing this. The standard paging seems to be bound to the first data control.
Thanks in advance.Hi,
if you are on the web, you build a navigable from based on the VO (in BC4J parlance). When you drop this to a page it becomes navigable. Do teh same for another, not dependent VO and the two operate independently.
Now lets talk about what I think you don't tell us: If you are building JClient applications, then you delete the default toolbar in the layout editor, select one VO after the other and create a new toolbar from the data control. This way the two are independent.
Frank -
Trouble with stored procedure date parameters in 10.2.0.2
Hello,
i have I couple of procedures which were running perfectly on 10.2.0.1.
After the upgrade to 10.2.0.2 i get the error: ORA-01843: not a valid month ORA-06512: at "MASTERDBI.CREATE_OR_UPDATE_VER_INFO", line 65 ORA-06512: at line 1
This error is fired up, on an simple insert-stmt within the procedure. That means, that the date-parameter itself ist ok.
If I set the nls_date_format w/ "alter session...", then the procedure is running like before and everthing is fine. But this causes a big change on other programs. So I tried to set the nls_date_format w/in an schema.logon-trigger. But w/out success. The only solution is to set the nls_date_format explicit like in this example:
begin
execute immediate 'alter session set nls_date_format = "dd.mm.yyyy"';
create_or_update_ver_info(
10552,
'VC BK Zuordnung',
'TEST',
sysdate,
1);
end;
It seems, that oracle converts the date-param into a string a back again into a date. But, the date format expected is the american date format. The date format delivered is the german format. And this causes the fault.
Any comments...
Kind regards
Harald Simon
Message was edited by:
[email protected]
Message was edited by:
[email protected]Proc:
PROCEDURE CREATE_OR_UPDATE_VER_INFO
p_vertrag_id number,
p_ver_infotyp varchar2,
p_text varchar2,
p_zeitstempel date,
p_benutzer_id number
) as
v_ver_infotyp_id ver_infotypen.ver_infotyp_id%type;
v_curr_text ver_infos.text%type;
begin
-- Ver-Infotyp ermitteln
begin
select ver_infotyp_id into v_ver_infotyp_id from ver_infotypen
where bezeichnung = p_ver_infotyp;
exception
when no_data_found then
raise_application_error(-20005, 'Vertragsinfotyp "' || p_ver_infotyp || '" in Tabelle VER_INFOTYPEN nicht gefunden.');
end;
-- Aktuelle Vertragsinfo ermitteln
begin
select text into v_curr_text
from ver_infos
where gueltig_bis = to_date('31.12.9999', 'dd.mm.yyyy')
and ver_infotyp_id = v_ver_infotyp_id
and vertrag_id = p_vertrag_id;
exception
when no_data_found then
null;
end;
-- Wenn der vorhandene Vertragsinfotyp der gleiche ist, dann
-- sofort wieder raus
if nvl(v_curr_text, '') = nvl(p_text, '') then
return;
end if;
-- Aktuelle VerInfo löschen
if not v_curr_text is null then
update ver_infos
set gueltig_bis = p_zeitstempel
where gueltig_bis = to_date('31.12.9999', 'dd.mm.yyyy')
and ver_infotyp_id = v_ver_infotyp_id
and vertrag_id = p_vertrag_id;
end if;
if p_text is null then
return;
end if;
-- Neue Vertragsinfo einfügen, falls es etwas zum Einfügen gibt
if not p_text is null then
insert into ver_infos
vertrag_id,
ver_infotyp_id,
gueltig_von,
text,
erstellt_am,
erstellt_durch
) values (
p_vertrag_id,
v_ver_infotyp_id,
p_zeitstempel,
p_text,
p_zeitstempel,
p_benutzer_id
end if;
end;
Test:
begin
create_or_update_ver_info(
10552,
'VC BK Zuordnung',
'TEST',
sysdate,
1);
end;
Result:
ORA-01843: not a valid month ORA-06512: at "MASTERDBI.CREATE_OR_UPDATE_VER_INFO", line 65 ORA-06512: at line 2
Test2:
begin
execute immediate 'alter session set nls_date_format = "dd.mm.yyyy"';
create_or_update_ver_info(
10552,
'VC BK Zuordnung',
'TEST',
sysdate,
1);
end;
Result:
Statement processed in 0,00 sec
It is nice, is`nt it?
Harald
Message was edited by:
HSimon
Maybe you are looking for
-
How to install self-signed ROOT CA certs in safari 4 for windows?
Hello, I do some web development and I use Safari for windows to test all my works for mac users, since v4 I haven't been able to test my apps because safari ask me for a certificate to use for connecting to the test environment (uses self signed cer
-
Creation of restricted key figure
hi experts, when i will create restricted key figure and calculated key figure for reporting.any one suggest that. regards, balu.
-
Firefox closes down completely ONLY when I open Hotmail on my Mac
For some reason whenever I open Hotmail and either click on a message, attempt to write a new message, or click on reply, the entire web window closes. I have tried to delete Silverlight AND all my Firefox stuff and upload it, but it still does it. I
-
Before I up grade to OS 10.5
I am a happy user of a PowerBook G4, 10.3.9. I run Virtual PC, XP Pro when needed. I am considering an upgrade to Leopard. Will I have to reinstall Virtual PC? and will I loose any PC files I currently have on my machine? Thanks, Kettlebell
-
So I downloaded since I upgraded ipods from a mini to a nano. Now it won't even run I double click it and it still wont show up..I've tried that MSConfig thing that was mentioned in the other thread. This is really frustrating and I dunno where or wh