extract data from a string and compare it with sysdate
Hello
Since a few days I struggle to find a solution to my problem, maybe I have some luck here.
Data type:
11/23 ANA
Alex 19/11
1/11 tomorrow
03/12 FW1
Makes me tomorrow
Bo 11/12
Necessary data should be as MM/DD. I used substr and/or regexp_like, regexp_substr, but having a few problems.
Months can be like 1, 2.11, 12 or 01,02, 03... 11, 12.
I don't need the data in the format Month\Day.
Basically all of the above "/" should be a month.
And I need to get out all the foregoing, > 13.
And I need to compare the exp with sysdate.
Any ideas?
THX
something like:
FUNCTION to CREATE or REPLACE makeDate (in_string in VARCHAR2
in_format IN VARCHAR2: = ' MM/DD')
date of return
IS
BEGIN
To_date (in_string, in_format) return;
exception
When others then return null;
end;
/
with sample_data as (choose 11/23 ANA' double str)
Union of all the
Select 19/11 Alex' double
Union of all the
Select 1/11 tomorrow "of the double
Union of all the
Select FW1 10/12 ' double
Union of all the
Select "Makes Me" tomorrow the double
Union of all the
Select ' Bo' 11/12 double
UNION ALL
SELECT 11/24 09:00 ' FROM dual
)
SELECT str
OF sample_data
WHERE REGEXP_LIKE (str, ' ^ [[: digit:]] {2} / [[: digit:]] {2}')
and makeDate (regexp_substr (str, ' ^ [[: digit:]]{2}/[[:digit:]]{2}'))]]))<>
/
HTH
Tags: Database
Similar Questions
-
Can I extract data from AR invoice of merger Financials with a call of Service Web ADF?
Can I recover data AR invoice of merger Financials (SAAS) by using a call to Service Web ADF?
How that is done?
Thank you!
Arie
Hi Arie
There is no available web services to query the data from invoices AR.
Hope this helps
Thank you!
Vik
-
Extracting data from Siebel, OPA and impose rules on this
Hi all
We have a scenario:
OPA is used as the server front-end to answer some questions & based on these responses, OPA must validate the data in Siebel and return the result to OPA.
for example:
I have a few contracts in siebel, based on my rules in OPA (say, year 2010 > & warranty = 2 years), I need to recover the data that are corresponding to this criterion of Siebel and display in the OPA.
Can I use OPA connector for Siebel to achieve?
From now on I saw and heard the examples where connector for Siebel takeover is used when Siebel is the front end application and OPA serves just to validate in the back-end.
Anticipate some answers.
Thank you
ShyamYou can do this with Siebel connector.
Specifically, you can use the data in Siebel to begin a session Web determinations then use Web determinations of conduct and maintenance. The results of this interview can then be saved to Siebel.
See you soon
Frank -
LabVIEW is not able to extract data from a HP4194A and gives me the error code 1073807202.
I'm trying to get a graph of the impedance of a capacitor of the HP4194A to my laptop and use one or GPIB-USB-HS connection. I downloaded the latest drivers and am using LabView 8.2. Initially I thought it was a connection problem because demand measurement and automation could find the HP4194A, but he has not answered the * IDN? query. However, the HP4194A responded to the ID of the request? which I found by looking at the user manual. What else should try to get the data I need?
Thank you
The HP4194A is an old instrument, and as such, it is not unusual for ancient instruments to does not implement does not the SCPI standard commands. Therefore, to have "ID?" instead of "* IDN? That said, what driver do you use? Is this? When you say that you aren't able to pull data, please be more descriptive. Are you an error? If so, what is it? What screws do you use? Do you use an example VI? If so, which? We are not mind readers, don't forget.
-
Is it to extract data from a database and insert it into a session variable?
$_SESSION ['Stud_FirstName'] = $row_rs_Login ["Stud_FirstName"];
because it is not work. I swear to you that the more I learn, the less I know.
What to do to change?
Thank you!
Yes. However, the recordset must exist before you can assign value to another variable. The last line of code that creates a recordset object looks like this:
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
If you attempt to create the variable session before this line, as you are, I suspect, is not really surprising that it does not work.
Even if you don't want to write all the code yourself, you must understand the code that Dreamweaver is written for you. Otherwise you will be constantly bumping your head on the keyboard. A PHP script is executed from top to bottom, and the flow of the script is controlled by loops and conditional statements. Get your head around these concepts, and you can find customizing Dreamweaver code much easier.
-
Extract DATA from VSA-0 and VSA-1
Hi, I'm in big trouble.
VSA with 2hosts 5.5
My partner install VSA cluster but he buys only the most essential without VSA, while he was in trial waiting period for execution of command of he (VMware but announced the end of the sale)
Today the license expires and all are offline and there were a few VM important (SAP) and also the vCenter
After several reboot, none like thing upwards
We place the order: 127.0.0.1 wscli getStorageCluster | More
And the LoginFailedException error on both nodes
I don't really know how to solve this
Thanks for the hand
Hi, I have solved my problem
I had to leave the Maintenance Mode each VSA
for whom:
Open a console in the ASB
Lanyard as root (password: svapass) also take a look at this link to open the root access: VMware KB: connection and troubleshooting of the changes to the order for VMware Storage Appliance 5.1
place the order
WSCLI 127.0.0.1 exitMaintenanceMode
and also order
WSCLI 127.0.0.1 vcsExitMaintenanceMode
and all the VM back
-
Help in mandatory query - pulling data from two tables and inserting a
Hi all
I need your help for the modification of the query to get the desired result.
I have two tables A and b. using source Insert and select the command, I need to extract data from tables A and B, then insert and C.
Data and table structures are available below.
Table (Source Table)
Status of payment $
MUL DC 20
ONLY DC 20
ONLY 40 PA
MUL NY 50
Table B (Source Table)
State of lang units
E DC 10
S DC 10
NY E 5
PA S 5
Based on query, I need the values in table C as mentioned below.
Table C (Table of Destination) (necessary output query must also be as below)
The State value
PA 8
DC 1
My query is
INSERT INTO C(STATE,VALUE)
SELECT A.STATE, SUM ($) /SUM (UNITS)
OF A, B
WHERE PAYMENT = "SINGLE".
AND A.STATE = B.STATE
GROUP OF A.STATE, B.STATE
But the output I get is
PA 8
DC 2
Essentially to DC, I should get 1, i.e., for payment only $ DC is 20 and divided by 20 DC must be 1.
Let me know where I'm missing.Hello
It will work you need to add units in the group by clause
SELECT a.state, SUM (dollars) / units FROM a, (SELECT state, SUM (units) units FROM b GROUP BY state) sub WHERE payment = 'SINGLE' AND a.state = sub.state GROUP BY a.state, units;
Concerning
-
Extract data from database using php script and entry for datagrid.
Hi all
I intend to use the php script below to extract data from a database.
I want to then display it in a datagrid control, the datagrid control has Ref columns job, the company and the position.
The php script I have is
<? PHP
$hostname_conn = "localhost";
$username_conn = "";
$password_conn = "";
$conn = mysql_connect ($hostname_conn, $username_conn, $password_conn);
@mysql_select_db ("videochat");
$query = "SELECT * FROM work."
$result = mysql_query ($query);
$row = mysql_fetch_array ($result);
$ref = $row ["jobref"];
$company = $row ['company'];
$position = $row ["position"];
echo "< Ref > $ref < / Ref >";
echo "< company > $company < / company > ';
echo "< location > $position < / location >."
? >Could someone show me how I chuck this data in a grid?
Thank you
Hello
You should start using the authority, either zendamf which is used by the data wizards in flashbuilder 4 or with amfphp which is probably better than zend but has not all nicities such as the creation of objects of value.
This project uses amfphp, basically, it uses remoteobjects so returned php is in a ready to put directly into a grid or a datagroup arraycollection collection.
If you need help with this sort of thing PM me and I can do a login session...
the PHP services for calls used in the application
<>
class pets
{
var $db_host = "localhost";
var $db_name = "flashhub_pets";
var $db_user = "flashhub_david";
var $db_pwd = "david";
function pets()
{
Define the methodTable for this class in the constructor
$this-> methodTable = array)
"getPets"-online (table)
'description' => 'Pets, database',
'access' => 'remote '.
)
);
}
function getAllPets()
{
$mysql = mysql_connect ($this-> $this-> db_user, db_host), $this-> db_pwd;
@mysql_select_db ($this-> db_name);
$Query = "SELECT * from pet;
$Result = mysql_query ($Query);
return ($Result);
}
function getTypeOfPets ($category)
{
$mysql = mysql_connect ($this-> $this-> db_user, db_host), $this-> db_pwd;
@mysql_select_db ($this-> db_name);
$Query = "SELECT * from pet where CATEGORY = $category;
$Result = mysql_query ($Query);
return ($Result);
}
function getCategories()
{
$mysql = mysql_connect ($this-> $this-> db_user, db_host), $this-> db_pwd;
@mysql_select_db ($this-> db_name);
$Query = "SELECT * from category";
$Result = mysql_query ($Query);
return ($Result);
}
}
?>
David
-
Extracting data from table without refreshment and without using the tab key.
Hi friends,
I have a problem I want to extract data from table without discount in the text field without using the Tab key. When I enter a field value any value then the text corressponding should enter into corressponding textfield without using the Tab key.
for example. When I get back emp_id 101 in a text field then first_name and last_name, address would come in to the text fields corressponding without refresh and use the Tab key.
How can I do that.
Thank you
MauryHi Maury,
I guess it's similar to: retrieving data without refreshing rather than Re: value of a textfield should enter into an another textfield without using the TAB ?
If so, the only change you want to bring on the first is to use the parameter "Onkeyup" instead of "onchange" in the 'HTML Form attributes of the element' element.
Note, however, that the user must move away from the issue at some point (for example, to click on a button), so the onchange will fire anyway.
Andy
-
How to extract data from SAP and COBOL using ODI
Hi people,
Can you please let me know the procedures in ODI to extract data from SAP and COBOL?
Thank you all for the help.Hello
You can download the Patch 8571830 to Oracle metalink.
It has a new technology 'SAP ABAP' and KMs to extract and load data-
RKM SAP ERP and SAP to Oracle ERP LKM.Thank you
-
Script Insert statement to extract data from Table in Oracle 7i
Hi all, I have an old Oracle legacy system that works for more than 15 years. Every now and then, we need to extract data from this table @ ORacle 7i to import to Oracle 10 G.
My thoughts are to create a script to Insert statements in oracle 7 and that, to be deployed to Oracle 10 G.
I found cela scripts in Google and don't know exactly how it works. No explanation on these scripts, would be greatly appreciated. I find that this format can help to produce a set of insert statements in this table to the last table to 10G.
< pre >
-Step 1: create this procedure:
create or replace function ExtractData (v_table_name varchar2) return varchar2 as
Boolean b_found: = false;
v_tempa varchar2 (8000);
v_tempb varchar2 (8000);
v_tempc VARCHAR2 (255);
Start
for tab_rec in (select table_name from user_tables where table_name = upper (v_table_name))
loop
b_found: = true;
v_tempa: =' select ' insert into ' | tab_rec.table_name |' (';
for col_rec in (select * from user_tab_columns)
where
table_name = tab_rec.table_name
order by
column_id)
loop
If col_rec.column_id = 1 then
v_tempa: = v_tempa | " ' || Chr (10) | " ' ;
on the other
v_tempa: = v_tempa |', ". Chr (10) | " ' ;
v_tempb: = v_tempb |', ". Chr (10) | " ' ;
end if;
v_tempa: = v_tempa | col_rec.column_name;
If instr(col_rec.data_type,'CHAR') > 0 then
v_tempc: = "' |' | col_rec.column_name |'| " ' ;
elsif instr (col_rec.data_type, 'DATE') > 0 then
v_tempc: = "' to_date ("'| to_char('|| col_rec.column_name||',''mm/DD/YYYY HH24 '') | ") (', "' dd/mm/yyyy hh24"') "';
on the other
v_tempc: = col_rec.column_name;
end if;
v_tempb: = v_tempb | " ' || Decode('|| col_rec.column_name||',''Null'','||v_tempc||') | " ' ;
end loop;
v_tempa: = v_tempa |') values ('| v_tempb |'); "from ' |" tab_rec.table_name | « ; » ;
end loop;
If not b_found then
v_tempa: ='-Table ' | v_table_name | 'not found ';
on the other
v_tempa: = v_tempa | Chr (10) | "select"-commit; "double;';
end if;
Return v_tempa;
end;
/
display errors
-STEP 2: run the following code to extract the data.
Go head
set pages 0
game of stripes on
fixed lines 2000
the feeding off value
trigger the echo
var retline varchar2 (4000)
coil c:\t1.sql
Select 'set echo off' from dual;
Select 'spool c:\recreatedata.sql' from dual;
Select ' select "-these data was extracted on" | TO_CHAR (sysdate, "mm/dd/yyyy hh24" ") double;' double.
-The following two lines as repeat as many times as the tables that you want to extract
exec: retline: = ExtractData ('dept');
print: retline;
exec: retline: = ExtractData ('emp');
print: retline;
Select 'off spool' from dual;
spool off
@c:\t1
-Step 3: run the updated c:\recreatedata.sql waiting for output to recreate the data.
Source: http://www.idevelopment.info/data/Oracle/DBA_tips/PL_SQL/PLSQL_5.shtml
< / pre >Hello
Well what this script do.
You will pass a table name as input to the function that will return varchar2 (string - insert statement). It will generate 2 t1.sql of sql script that contains the output sequence.Will use the first passed the user_tables scipt to check if the input table name exists and if there is the will reterive user_table_columns column names and generate the following sql script.
Now, this t1.sql will run to generate a final sript formally orders insert that will run you on the target schema (make sure that the table exists).* #t1.sql*
set echo off spool recreatedata.sql select '-- This data was extracted on '||to_char(sysdate,'mm/dd/yyyy hh24:mi') from dual; select 'insert into MY_OBJECT1 ('||chr(10)||'OWNER,'||chr(10)||'TOTAL) values ('||decode(OWNER,Null,'Null',''''||OWNER||'''')||','||chr(10)||''||decode(TOTAL,Null,'Null',TOTAL)||');' from MY_OBJECT1; select '-- commit;' from dual; spool off
Then @t1.sql runs, and the general insert for the infeed table table.
-- This data was extracted on 03/09/2009 23:39 INSERT INTO MY_OBJECT1 (OWNER, TOTAL) VALUES ('MDSYS', 92800); INSERT INTO MY_OBJECT1 (OWNER, TOTAL) VALUES ('TSMSYS', 256); INSERT INTO MY_OBJECT1 (OWNER, TOTAL) VALUES ('DMSYS', 15104); INSERT INTO MY_OBJECT1 (OWNER, TOTAL) VALUES ('TESTME', 128); INSERT INTO MY_OBJECT1 (OWNER, TOTAL) VALUES ('PUBLIC', 2571392); INSERT INTO MY_OBJECT1 (OWNER, TOTAL) VALUES ('OUTLN', 768); INSERT INTO MY_OBJECT1 (OWNER, TOTAL) VALUES ('CTXSYS', 21888); INSERT INTO MY_OBJECT1 (OWNER, TOTAL) VALUES ('OLAPSYS', 78336); INSERT INTO MY_OBJECT1 (OWNER, TOTAL) VALUES ('KLONDIKE', 2432); INSERT INTO MY_OBJECT1 (OWNER, TOTAL) VALUES ('SYSTEM', 51328); INSERT INTO MY_OBJECT1 (OWNER, TOTAL) VALUES ('EXFSYS', 21504); INSERT INTO MY_OBJECT1 (OWNER, TOTAL) VALUES ('DBSNMP', 4096); INSERT INTO MY_OBJECT1 (OWNER, TOTAL) VALUES ('ORDSYS', 216192); INSERT INTO MY_OBJECT1 (OWNER, TOTAL) VALUES ('SYSMAN', 111744); -- commit;
Hope this helps
Concerning -
1074118649 error occurred at niUSRP extract data from Rx (2D CBD) .vi
Hello
When I was trying the example of the USRP OR which is "niUSRP EX Rx synchronized to multiple entries (MIMO Expansion)", a mistake is released which is
1074118649 error occurred at niUSRP extract data from Rx (2D CBD) .vi
A workflow command has been issued in the past.
can anyboay help me solve the problem?
Thank you very much
Andy
Hi andy,.
what you need to do is reversing the Oder river where the screw niUSRP the value Time.vi and niUSRP Trigger.vi configure a1.1ppear. Time of first setting then set up trigger. The example works correctly with version 1.1, since you are using version 1.2, that changes must be made.
In the example, you can set the clock to standard time (start time = 0) even if you had already triggered the reception. Thus, samples received will be acquired with time stamp later where the error.
Best regards
-
Hello
Is there any task in the Installation Manager to extract data from configuration of an instance as working Structures, research etc.
I'm looking for the same kind that I could move all these configurations of one example to the other.
Thank you
Maury
The name of the task is to manage Configuration packages in the installation and maintenance program. You can see this document http://docs.oracle.com/cd/E48434_01/fusionapps.1118/e49542/F1166430AN11D30.htm
-
How to extract data from a signed pdf that was sent to me.
I can extract data from a PDF file that is not signed, but how to extract data from a signed PDF? Exporting data option does not work once it is signed. Specifically, I want to combine the data into a csv file, but a PDF signed does not to me.
Hi evanb92625060,
It is not possible to extract (using Acrobat |) Collection and management of the PDF to form data) data from a signed PDF form is that it locks all fields in the form.
Kind regards
Nicos -
Extract data from form DPS 2015?
I have a registration form with some fields such as name, email etc. identification and a "submit" button.
Here are a few questions about this:
1. can I create a form with fields (name, e-mail id) in 2015 DPS.
2. If so, how can retrieve us the data from the form after submission. Is there an API to extract data from form of DPS 2015?
3. where we store the data? Can it be stored in the AEM or DPS?
Appreciate your suggestions and help.
Hi Kalyan,
It's nothing built in DPS to do this, however you can use the HTML articles for this feature. You will need to write JavaScript code to handle the #2 and #3 elements. It is up to you to decide where you want to store the information collected. Usually you get shipped back through a Web service to a site or a database, you manage.
Neil
Maybe you are looking for
-
Cannot add the emoticon keyboard in settings of iOS
I have deleted acidentally emoticon keyboard keyboard configurations and I can't find in the list of available keyboards. Am I missing something?
-
Poor APK battery & Lenovo bad security I use Lenovo Vibe X 2 since 11/11/2014 and my overall experience is not very good, Thumbs up: 1. go to blowdry - phone is very thin and light weight, better in design to this day. 2 Lenovo UI is very good with T
-
Volume icon does not appear in the notification area
Miss me my "volume icon" in the tool bar? Hi all don't know what happened, I did NOT remove myself. All I know is that I add a new update for Java and now I noticed that my volume icon does not appear in the lower right corner where it has always bee
-
Xperia U unlock the bootloader
If my U in the "bootloader unlock enabled" option said no if I try to unlock it, my cell phone can be damage?
-
Error code: 656 (cannot install Silverlight)
Can not update microsoft silverlight. I get the error code 656. Help, please!