check for the datetime type between
Hi allHow can I check the records with the column datetime between 10 minutes before and 10 minutes after?
If it comes to my sample
mydate
02/09/2011 10:50:00
02/09/2011 12:00:00
02/09/2011 12:15:00
02/09/2011 10:00:00
02/09/2011 10:55:00
How can I get the registration 1 and 5, if my whereclause isWhen trunc (mydate) = February 9, 2011"
and the time between 10:40 'and 11:00 '
Thanks for help
SQL> with t as (
2 select to_date('02/09/2011 10:50:00', 'dd/mm/yyyy hh24:mi:ss') mdate from dual union all
3 select to_date('02/09/2011 12:00:00', 'dd/mm/yyyy hh24:mi:ss') mdate from dual union all
4 select to_date('02/09/2011 12:15:00', 'dd/mm/yyyy hh24:mi:ss') mdate from dual union all
5 select to_date('02/09/2011 10:00:00', 'dd/mm/yyyy hh24:mi:ss') mdate from dual union all
6 select to_date('02/09/2011 10:55:00', 'dd/mm/yyyy hh24:mi:ss') mdate from dual
7 )
8 select *
9 from t
10 where trunc(mdate, 'MI') between trunc(to_date('02/09/2011 10:50:00', 'dd/mm/yyyy hh24:mi:ss'), 'MI')
11 - (1/6)/24
12 and trunc(to_date('02/09/2011 10:50:00', 'dd/mm/yyyy hh24:mi:ss'), 'MI')
13 + (1/6)/24
14 /
MDATE
-------------------
02/09/2011 10:50:00
02/09/2011 10:55:00
I assume that you have a way to identify your first row.
The example above explicitly takes the value of the first row in the WHERE clause, which is probably not what you do.
You may specify some of your other column values to get a better idea of how this code.
Tags: Database
Similar Questions
-
Hello world
I'm using Labview and DIAdem to create graphical reports and I use screws of connectivity and not the Express VI.
The data is stored in a data base MySQL Inno.
I use the following command to get the data I want to show the graphic report!
SQL_ExecDirect (' select 'TimeStamp', 'Value' by 'TableX' where and taste =' %s and channel =' %s; "" ")
And then I use:
SQL_BindChannel ("Datetime1C1", "TimeStamp", "t", "#yyyy - mm - dd hh") to bind the data to the X axis of the graph.
And after that, I use:
SQL_BindChannel("SampleN","Value","n") to bind the data to the axis of the graph Y.
I want to create the chart with more than a sample, I use the commands above on a loop.
Now here's a printscreen of my problem.
In the first iteration (green line), DateTime1C1 has the timestamp for sample1 but in the second portion (yellow line) DateTime1C1 has the timestamp for sample2, the third iteration (blue line) DateTime1C1 timestamp for sample3. etc.
The time stamp of origin for each sample are 'lost' he re-wrote datetime1C1. and in the end, it shows only the timestamp for the 5th iteraction.
How can I create a single graph with several lines (samples) and datetime an axe?
THX in advance
Hi AlexandreHSCas,
If I understand your situation, the only thing you need to change is to create a new group in the DataPortal before each request.
FOR i = 1 TO iMax
NewGroupName = "application" & I
Call GroupCreate (NewGroupName)
Call GroupDefaultSet (GroupCount)
Call SQL_ExecDirect ("select 'TimeStamp', 'Value' from ' TableX" including Sample =' %s and channel =' %s;) ")
Call SQL_BindChannel (NewGroupName & "/ Datetime1C1", "TimeStamp", "t", "#yyyy - mm - dd hh")
Call SQL_BindChannel (NewGroupName & "/ SampleN", "Value", "n")
NEXTThen you can simply drag each group from the data on the same graph XY-portal, because each group has its own time warp, data points will be displayed correctly placed on the common X axis of the graph.
Brad Turpin
Tiara Product Support Engineer
National Instruments -
Hello
help me in this.
I have a sql to the datetime of the user input value:
Select * from master_table
where time < = 9 April 09 ' + 1
It seems that I can not add '+ 1' here...
April 9 09 is the web-based user input...
My question: How can I add a '+ 1' every time that the user key in the user input text box?
Thank you.You can change in your date format or add
Select * from deadline-1=to_date('09-apr-09','DD-MON-YY master_table');
-
Windows cannot check for the error code 80070424 updates.
I have windows vista premium x 64
Windows Update stopped working and when I they do it manually it says windows cannot check for the error code 80070424 updates.
I searched everywhere for an answer... Please help----
-
It takes up to 4 minutes for the player switch between library and Rip, and vice versa.
I run Media Player 11 on my XP machine with spare 120G on the C: memory and 3G - recently, it takes up to 4 minutes for the player switch between library and Rip, and vice versa. I have re-installed twice but no change. No new software has been installed before this time.
Hello Absno69,
Thank you for your message. You mentioned that there were no new software installed before that happens. Were there any hardware changes or updates? If this isn't the case, we will perform a system restore to a point that you know that your system is working effectively. Click HERE for the system restore instructions.Please let us know if it did or did not help to solve your problem.See you soonEngineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.
-
Define a map or ORDER method for the object type
Hi gurus
I created an object and then its type and then I use this object and type based on line, see below:
Create the object
CREATE OR REPLACE
TYPE test_object
IS
OBJECT
(
next_appearance_dt DATE, - next_appearance_dt
youth_adult VARCHAR2 (5) - youth_adult
) ;
/Create the object Type
CREATE or REPLACE TYPE t_docket_object IS TABLE OF THE test_object;
/
Create function Pipeline
FUNCTION to CREATE or REPLACE f_report (p_dt date, p_c_cd VARCHAR2)
return t_test_object pipeline
IS
BEGIN
FOR J IN)
Select distinct test_object)
next_appearance_dt,--862,
'YOUTH '.
) AS test_object
Jen.next_appearance base
WHERE 1 = 1
AND (base.next_appearance_dt = p_dt)
AND (base.circuit_point_cd = p_c_cd)
- and cse.information_id = 322
-ORDER 15 - alias_name
)loop
PIPE ROW (J.test_object);
END loop;
END;/
Run function
SELECT * FROM TABLE (F_REPORT (TO_DATE('25-sep-2015','dd-mon-yyyy'),'1 '))
Error
ORA-22950: cannot ORDER objects without map or ORDER method
ORA-06512: at "F_REPORT", line 5
22950 00000 - "cannot ORDER objects without map or ORDER method.
* Cause: an object type must have a defined for map or ORDER method
all comparisons other than equality and inequality comparisons.
* Action: Define a map or ORDER method for the object type
I know the reason of this error and the reason is that I use the clause separate in my pipeline service, but do not know how to get rid of this error...
Confuse you the type of table with the object type. He forge
Select test_object (next_appearance_dt) test_object
Not:
Select t_test_object (next_appearance_dt) test_object
Then:
SQL > CREATE OR REPLACE
FUNCTION f_report (DATE p_dt 2,
3 P_C_CD VARCHAR2
4 )
5 t_test_object of RETURN
6 IN PIPELINE
7 EAST
BEGIN 8
9 FOR (IN) v_rec
10 WITH () DID
11. SELECT TO_DATE('01-jan-2015','dd-mon-yyyy') NEXT_APPEARANCE_DT
the double 12
13 )
14 select test_object (next_appearance_dt) test_object
15 from t
16 ) LOOP
PIPE 17 ROW (v_rec.test_object);
18 END OF LOOP;
END 19;
20.The function is created.
SY.
-
How to check for the two first digits?
Can someone please... There is demand to have a hidden field on the form that will be filled with data. It's going to be 6 digits long and could start with 02 or 04. I need to check on the DocReady event, for the first two digits. If the first two digits are 02, the presentation of the form will remain as it is. If the first two numbers are 04, I'll have to show two hidden subforms. Can someone please provide an explanation on how to check for the first two digits of field 6 digits and do some actions.
Thank you very much
No, only in the event: Exchange.
-
How to write a query for the data exchange between two columns?
How to write a query for the data exchange between two columns?
I tried a request, does NOT work.
Thank you.update tmp t1 set t1.m1=t1.m2 and t1.m2=(select t2.m1 from tmp t2 where t2.student_id = t1.student_id)
Published by: user533361 on October 23, 2009 14:04Just plain and simple:
update tmp t1 set t1.m1=t1.m2, t1.m2=t1.m1 /
SY.
-
JAX - RPC, Webservice and the dateTime type elusive everything
I need to interface with a web service. I have no control over it, so I can't change the WSDL, the server, or something similar.
One of the types of data used is xsd: DateTime, a guy who according to it (table 1, JAX - RPC support for data types), is not supported on J2ME. Of my research (on this forum and on the Internet), person doesn't use any date/time/dateTime any form or is ordered to change their WSDL so it it does not use if they intend to use a client on J2ME.
If anyone has a clue on how to use it, because I said, I have no control over the server or the WSDL. Would be his replacement formatted by a string in the work in an appropriate manner or the JAX - RPC system would say it's the wrong type?
I used wscompile to get static stubs for the service, I can't compile without figure this (Type has only primitive types, 'UNKNOWN' what wscompile replaces the unsupported types is not cutting it for obvious reasons). Temporarily, I've replaced 'UNKNOWN' with Type.STRING but I don't know if it will work (that's why I asked).
OK, the base64Binary Type I used was Type.STRING. Then I just ran through the Base64InputStream.decode that does the job. I realized that two types do not work (wscompile is good for a general idea of how a web service must be implemented but horrible to the actual implementation) so I need to rewrite much of the code and decided to rewrite it so that it works better and is more clean.
Thanks for the help.
EDIT:
It was also the help function, I used to convert a string to a timetable so that it works with the web service:
public static String toSOAPString(Calendar cal) { if(cal == null) { return null; } StringBuffer buf = new StringBuffer(); //Get format new SimpleDateFormat("yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'SSS").format(cal, buf, null); buf.append("0000"); //Timezone String zoneID = cal.getTimeZone().getID(); int index = zoneID.indexOf('-'); if(index == -1) { index = zoneID.indexOf('+'); /* If no timezone offset exists, it isn't needed if(index == -1) { buf.append("+00:00"); } */ } if(index != -1) { buf.append(zoneID.substring(index + 1)); } return buf.toString(); }
-
Recommendations for the best type of pool to use
Hello
I am currently using the eval of view and would like some comments please.
Part of our current infrastructure are 40 computers in plants. These computers run 24 hours a day and will have three teams to use. Users of each shift do not share a common name and have unique needs on the other.
The boss want each user to have a persistent desktop.
What type of pool would you use? I've set up to test using linked Clones and I don't like it because of the storage savings. But if I understand it right once a person breaks a virtual machine to the pool and nobody else can use that VM even another change. Please correct me if I misunderstood, but it seems that everyone has a different VM, we would need 120 copies of Vista (3 * 40) instead of the 40 copies that we have for the physical desktop now.
Y at - it something we can do using pools to minimize the copies of Vista, we need.
Thanks for any help...
If you use a persistent pool, you will need a virtual machine for each unique user you have. If you want to reduce the number of virtual machines, you create look by using a non-persistent pool. Just know that when you use a non-persistent pool, you will need to have an infrastructure that allows a kind of roaming profile so that the parameters of the user can move between machines. You can force them to save all their documents in a network rather than the local PC location.
If you have found this device or any other useful post please consider the use of buttons useful/correct to award points
-
Check for the presence of malware
How can I check for viruses/malware on my iMac with OS X El Capitan
Go to http://www.etresoft.com/etrecheck , download and run EtreCheck, copy paste here the status report. If there is any malware/adware on your system, it will appear, and then we'll tell you how to dispose of it here.
-
What is the minimum value for the data type double?
... a more academic question: what is the minimum value of the data type double? I thought 'double', it is the 8-byte IEEE standard and what I remember, it's + - 1.7E + - 308. The more different number of 0 should be 1.797E - 308.
This is why I was a little surprised when I looked at the data output of my calculation of CVI, where I found the numbers with exponents of E-319 or E-324 as the smallest value...
But I'm sure there's an explanation :-)
Thank you for sharing with me,
Wolfgang
The largest number is indeed the order of + 1.7E + 308; There are a smaller number of - 1.7E + 308. Note that this is in fact the most negative number, which is the smallest by some reckoning. For the small beach of the Exhibitor, things get a little more complicated. 1E-308 can be represented with complete accuracy and resolution, but if you're willing to lose a few bits of precision, you can go down even further. For example:
Double x, y, z:
x = 1E-300;
y = 1E7;
z = x / y; Give 1.000000000000000E - 307
y = 1E8;
z = x / y; Give 9.999999999999999E - 309
y = 1E18;
z = x / y; Give 9.999987484955998E - 319
y = 1E23;
z = x / y; Give 9.881312916824931E - 324
So, as you can see, values less than 1E-308 are possible, but they become increasingly more inaccurate and should not be relied upon.
JR
-
Everything I try to download the default settings for the file type: iTunes Music Player
I've recently updated my laptop and Vista for the first time. I now have difficulties to download zip files of emails and sites such as magnatune.com. When I choose to save, he saves as file "iTunes Music Player" type and creates a copy of my iTunes library. The file is marked however I save it, but when I try to open it, it's my library iTunes rather than any other file, I tried to download.
Can anyone help? Please forgive me in advance for NOT being very computer savvy... have patience!
Thank you!
TraciHello world.
Simplest of them would follow these steps:- Click Start > default programs
- Click "Set your default programs"
- list programs, click on 'Windows Media Player '.
- Click set this program as default
This should prevent itunes from launching automatically when you open the zip file. However, I use itunes to version 8.1 of one year, but again, I don't have this problem. I suggest that you need to update your itunes.If the problem persists, follow these steps:- Click Start > default of programs
- Click "associate any type of file or Protocol with a program.
- Scroll to the bottom for. Zip
- click it and then click on "Program Change"
- In the list that appears, select WinZip or WinRAR. If they are not displayed, then click on the drop down arrow besides "other programs." If it still does not her you must install winRAR or WinZIP.
- If WinZIP or WinRAR appeared, then click Ok and click Ok.
- If it is not then go to google, search for WinZIP or WinRAR and download the latest version.
What should probably solve all your queries.DaveTheRoyale http://secondthought.weebly.com http://davetheroyale.wordpress.com
-
I also get the error code 80070005 when you try to use Windows Update to check for the updates
I get this error code as soon as I try to check updates. It does not even say there are updates tells me to enable updates, but when I try it gives the code. I used Microsoft Fix and now it says everything is fixed and ok but it is not. So now what?
Hello
1. what Microsoft fixit did you run?
2. don't you make changes to the computer before the show?I suggest you try the steps from the following link:
Error: 0x80070005 when you try to install updates by using Microsoft Update or Windows Update
http://support.Microsoft.com/kb/968003Note: When you perform a virus scan Malware, you will lose data that are affected by the virus. Microsoft is not responsible for the loss of this data.
-
An error occurred during the security check for the message
Hello
I'm just starting to try to use axis2 to access the Eloqua api webservie. Under code comes from using the API of Eloqua WS with Java - part 1 and I followed the steps in the link.
// To debug the this line will set Log4J to use System.Out for a lot of // messages. // BasicConfigurator.configure(); // Configure your username and password here. String company = "TechnologyPartnerWelocalize"; String username = "leo.chen"; String password = "Password1"; // Assuming that the conf directory has the Axis2 config file and // Rampart is installed correctly. ConfigurationContext ctx = ConfigurationContextFactory .createConfigurationContextFromFileSystem("D:/axis2-1.6.2/conf", null); EloquaStub stub = new EloquaStub(ctx, "https://secure.eloqua.com/API/1.2/Service.svc"); ServiceClient sc = stub._getServiceClient(); Options options = sc.getOptions(); sc.engageModule("rampart"); options.setUserName(company + "\\" + username); options.setPassword(password); String[] assetTypes = stub.listAssetTypes(new ListAssetTypes()) .getListAssetTypesResult().getAssetTypes().getString(); System.out.println("Asset Types count : " + assetTypes.length); for (String s : assetTypes) { System.out.println(" -> " + s); }
But I got following error when executing code above.
Exception in thread "main" org.apache.axis2.AxisFault: An error occurred when verifying security for the message. at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) at com.eloqua.secure.api.EloquaStub.listAssetTypes(EloquaStub.java:1928) at com.eloqua.sample.WSConsoleClient.main(WSConsoleClient.java:42)
Another problem is when I changed the chain of the company to one of the other stuff like "TechnologyPartnerWelocalize111", I get below error
Exception in thread "main" org.apache.axis2.AxisFault: SOAP header missing at org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:180) at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:99) at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340) at org.apache.axis2.engine.Phase.invoke(Phase.java:313) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:262) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:168) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:364) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) at com.eloqua.secure.api.EloquaStub.listAssetTypes(EloquaStub.java:1928) at com.eloqua.sample.WSConsoleClient.main(WSConsoleClient.java:41) Caused by: org.apache.rampart.RampartException: SOAP header missing at org.apache.rampart.RampartEngine.process(RampartEngine.java:96) at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92) ... 10 more
I connected to the Eloqua using "leo.chen/Password1" and found that the name of the company is technology partner - Welocalize.
No idea what causes this kind of errors? I use Axis2 - 1.6.2 and rampart - 1.6.2. What I changed so far is to copy modules of the rampart - 1.6.2 and axis2-1.6.2\repository to axis2-1.6.2\conf folder and the commented line "< Ref module ="address"/ >" in axis2.xml.
Leo, I think that your use case law above may be met by using our RESTful API. For more details, see REST API - Documentation for kernel objects .
With this API, you can use OAuth instead of basic authentication, and it is probably easier to try to consume the SOAP WSDL and make it work.
Maybe you are looking for
-
Adobe Flash auto update on Safari
Today (June 22, 2016), I opened Safari and a popup told me to download Adobe Flash Update. Unless I downloaded, I could not close Safari or even shut down my computer. I was suspicious of this pop - up so disconnected my modem. I could then close Saf
-
Firefox running on a chromebook
is it possible to install and run a version of firefox on a samsung chromebook
-
Tecra M9 - how insert for cigarette lighter 12V can I use?
I have the Toshiba More4You 12V cigarette lighter (PX1237E-1NPO), but it comes with 6 inserts and I'm not sure that to use with the Tecra M9. I looked here but the compatibility list seemed to lead me on a dead-end road.
-
Portege R500 - WXP professional PL and AuthenTec software incompatibility
After several days of work without fingerprint AuthenTec software (which confirmed that withuit this software everything works fine), I decided tol the install once more. After installation I realized immediately there is an incompatibility between t
-
Dual Boot Gets the same IP address for boots
I have a PC which is the dual boot Win10 and Win7. The addresses are assigned by a DHCP (Win2003). Any OS I start, the same IP address is assigned. I guess it has to do with the MAC, but don't really know why. This seems to cause network problems