a simple way to insert data in a table
HelloI need to know in a simple way on how to transfer data from one table to the other...
First xx_inv_tab1 table has three columns col1, col2, col3 and where as the second xx_inv_tab2 table has five columns col1, col2, col3, col4 col5.
Here col2, col3, col4 are the same columns in table1 xx_inv_tab1...
Now I want to transfer the first data in table in second table... first column of the second table holds a sequence, followed by the first three columns of table data and followed with col4 col5 which will contain NULL values...
In my scenario, I have 70-75 columns in my first table that I want to move to the second table including three new columns (one is the sequence with two other null values)...
All ideas, if do us it in a simpler way, saying rather insert into xx_inv_tab2 (col1, col2, col3, col75) values (seq, col1, col2,... col75, null, null)
Help appreciated...
Thank you
Easy
not tested
insert into xx_inv_tab2 t2 (col1,col2,col3,col4)
select yourSequence.nextval, t1.col1, t1.col2, t1.col3
from xx_inv_tab1 t1
;
Note that col5 must not be used, since you want to fill with a NULL value.
Use excel or sql developer write you a list of the column names, if you are lazy to write all the columns of 75 by yourself.
Which might also work:
not tested
insert into xx_inv_tab2 t2
select yourSequence.nextval, t1.*, null
from xx_inv_tab1 t1
;
Published by: Sven w. on August 31, 2012 16:41
Tags: Database
Similar Questions
-
Simple procedure to insert data into a table
Hello
I am trying to create a simple procedure to insert the data into the emp table.
He throws after WARNING:
The procedure that is created with compilation errors.
CREATE or REPLACE procedure ins_emp (empno emp.empno%type,ename emp.ename%type,deptno emp.deptno%type)
IS
Emp.empno%type,P_ename emp.ename%type,P_deptno emp.deptno%type P_empno;
BEGIN
Insert into emp values (empno, ename, deptno);
Ins_emp END;
And when I try to run it
execute ins_emp(1111,'abcd',20);
He is to launch another error:
PLSQL - 00905:OBJECT SCOTT. INS_EMP is not valid.
can someone help me with this procedure?
Thank you
Hi Frank,.
I thank very you much for your comments.
I have a question:
unless the procedure or function created with compilation errors, we cannot run them right.
-
Button insert data to the table
Hello
I use APEX 4.2.3 with XE, I try to insert data into the table using code below but nothing happen when I press the button, create this button like 'create a button to point to page'-> 'dynamic action'-> 'run pl/sql '.
begin insert into dummy values('xx'); commit; end;
So to clarify, you have
(1) created a button that "action" is "defined by the dynamic action.
(2) created a dynamic action that executes pl/sql at the click on the button and you are pl/sql?
-
What trigger to use to insert data into the table db forms
Hello
My form is current having a block of database with the table reference. When you enter data into the form field and click Save. Automatically record is inserted in the database table.
I want to do this under manual insert. I changed the block of data to a data non-base. Where should I write the insert statement to insert data into the table.
Is - shutter release key of the form-level validation?
Please notify.
Thank you
Didi.You can guide me how to remove the message FRM-40401 no changes to save and instead, I wanted to put 1 transaction record successful... some like it like that.
Hi didi.
And this is my last post I'll sleep. ;)
Take form level trigger named preform
and write on it:SYSTEM.MESSAGE_LEVEL := 5;
I hope this works...
Hamid
Mark correct/good to help others to get the right answers. *
-
How to insert data into the table by using the expression builder in the assign activity
How to insert data into the table by using the expression builder in affect business in BPEl, I use SOA Suite 11.1.1.5
Can someone help me pleaseHello
I don't think that oraext:query-database() can insert data into the table.
What are your needs?
Can not you plan to use the DB adapter with the insert operation?Kind regards
Neeraj Sehgal -
Doubt about inserting data into a table
Hi all, when I try to insert data into a table through an anonymous block, the pl/sql block runs successfully, but the data are not get inserted. Can someone please tell me where I am doing wrong?
Thanks in advance!SQL> DECLARE 2 3 V_A NUMBER; 4 5 V_B NUMBER; 6 7 v_message varchar2(25); 8 9 10 BEGIN 11 12 13 select regal.regal_inv_landed_cost_seq.NEXTVAL into V_A from dual ; 14 15 select regal.regal_inv_landed_cost_seq.currval into V_B from dual ; 16 17 INSERT INTO rcv_transactions_interface 18 ( 19 INTERFACE_TRANSACTION_ID, 20 HEADER_INTERFACE_ID, 21 GROUP_ID, 22 TRANSACTION_TYPE, 23 TRANSACTION_DATE, 24 PROCESSING_STATUS_CODE, 25 PROCESSING_MODE_CODE, 26 TRANSACTION_STATUS_CODE, 27 QUANTITY, 28 LAST_UPDATE_DATE, 29 LAST_UPDATED_BY, 30 CREATION_DATE, 31 CREATED_BY, 32 RECEIPT_SOURCE_CODE, 33 DESTINATION_TYPE_CODE, 34 AUTO_TRANSACT_CODE, 35 SOURCE_DOCUMENT_CODE, 36 UNIT_OF_MEASURE, 37 ITEM_ID, 38 UOM_CODE, 39 EMPLOYEE_ID, 40 SHIPMENT_HEADER_ID, 41 SHIPMENT_LINE_ID, 42 TO_ORGANIZATION_ID, 43 SUBINVENTORY, 44 FROM_ORGANIZATION_ID, 45 FROM_SUBINVENTORY 46 ) 47 48 SELECT 49 regal.regal_inv_landed_cost_seq.nextval, --Interface_transaction_ id 50 V_A, --Header Interface ID 51 V_B, --Group ID 52 'Ship', --Transaction Type 53 sysdate, --Transaction Date 54 'PENDING', --Processing Status Code 55 'BATCH', --Processing Mode Code 56 'PENDING', --Transaction Status Cod e 57 lc.quantity_received, --Quantity 58 lc.last_update_date, --last update date 59 lc.last_updated_by, --last updated by 60 sysdate, --creation date 61 lc.created_by, --created by 62 'INVENTORY', --Receipt source Code 63 'INVENTORY', --Destination Type Code 64 'DELIVER' , --AUT Transact Code 65 'INVENTORY', --Source Document Code 66 msi.primary_uom_code , --Unit Of Measure 67 msi.inventory_item_id, --Item ID 68 msi.primary_unit_of_measure, --UOM COde 69 fnd.user_id, 70 V_A, --Shipment Header ID 71 V_B, --SHipment Line ID 72 82, --To Organization ID 73 'Brooklyn', --Sub Inventory ID 74 81, --From Organization 75 'Vessel' --From Subinventory 76 77 FROM 78 regal.regal_inv_landed_cost_tab lc, 79 fnd_user fnd, 80 mtl_system_items msi 81 82 WHERE 83 lc.organization_id = msi.organization_id 84 AND lc.inventory_item_id = msi.inventory_item_id 85 AND lc.created_by = fnd.created_by; 86 87 commit; 88 v_message := SQL%ROWCOUNT; 89 dbms_output.put_line('v_message'); 90 END; 91 / v_message PL/SQL procedure successfully completed. SQL> select * from rcv_transactions_interface; no rows selected
There is no problem with inserting data!
Only there is no data! This means that your select statement retrieves no rows.
You can see the output of your program (0). This means that there where no line in the result set.Please check the output of your tax return independently:
SELECT -- regal.regal_inv_landed_cost_seq.nextval, --Interface_transaction_id -- V_A, --Header Interface ID -- V_B, --Group ID 'Ship', --Transaction Type sysdate, --Transaction Date 'PENDING', --Processing Status Code 'BATCH', --Processing Mode Code 'PENDING', --Transaction Status Code lc.quantity_received, --Quantity lc.last_update_date, --last update date lc.last_updated_by, --last updated by sysdate, --creation date lc.created_by, --created by 'INVENTORY', --Receipt source Code 'INVENTORY', --Destination Type Code 'DELIVER' , --AUT Transact Code 'INVENTORY', --Source Document Code msi.primary_uom_code , --Unit Of Measure msi.inventory_item_id, --Item ID msi.primary_unit_of_measure, --UOM COde fnd.user_id, -- V_A, --Shipment Header ID -- V_B, --SHipment Line ID 82, --To Organization ID 'Brooklyn', --Sub Inventory ID 81, --From Organization 'Vessel' --From Subinventory FROM regal.regal_inv_landed_cost_tab lc, fnd_user fnd, mtl_system_items msi WHERE lc.organization_id = msi.organization_id AND lc.inventory_item_id = msi.inventory_item_id AND lc.created_by = fnd.created_by;
Published by: hm on 13.10.2011 23:19
I removed the references of the sequence and the variables V_A and YaeUb.
BTW: Why do you want to include V_A and YaeUb in two different columns?The use of sequences in your code seems a bit strange to me. But this has nothing to do with your question.
-
Insert data into the table without using the insert or select the command
Hello
Is there anyway to insert data from one table to another table, without using insert, and then select the command in the same pattern.
Note: the two tables have the same structure.ALTER table... Swap partition...
-
How can I insert data from another table into a table containing a timestamp column
How you insert data from another table in a table if the target table contains a timestamp column. I tried to set the default value of GETDATE() column in the target table, but it does not work.
I use MS SQLSorry, I managed to get around this by inserting null as the value
-
Hi all
I use forms [32 bit] Version 6.0.8.24.1 (Production)
Oracle Database 10g Release 10.2.0.1.0 - Production
I have settings such as the (optional) emp_code and the year (mandatory field - four digits).
Based on the setting that I have to get the detail of a table and these must be inserted at the other table with columns of additions (to hardcode the additional columns).
To achieve this, I intend to get a cursor by selecting the required fields in the table by the way the where clause of the cursor parameters.
by making a loop through the cursor I will insert the records in the other table.
Here, the thing is that the data is going to be huge (since the year is the parameter).
so my approach causes the performance issue.
I heard that there is a different method of insetions
can anyone suggest me the best way (performance wise) other than what I mentioned (if you are aware of)...
Thank you...user13329002 wrote:
Thanks for everyone.
I have to take the data from the table as e_name, e_code, of the table and insert it into another table with some other values such as
e_name, e_code, as well as I add 'n', 'o'.
its something likeinsert into e_emp(emp_name,emp_code,emp_add,emp_status,emp_type) select e_name,e_code,e_add,'O','N') from e_table where e_date = Parameter.
in other words, the values for Emp_status, emp_type I have no values in the e_table.so table and enter in e_table I have to hard code it.
CAL I hard code as I mentioned in my statement examplecan someone clear me of the foregoing.
Thank you...
Published by: user13329002 on February 15, 2011 20:11
Yes... You can hardcode the values for Emp_status, emp_type.
SQL> CREATE TABLE e_emp(emp_code NUMBER(10),emp_status VARCHAR2(1),emp_type VARCHAR2(1)); Table created. SQL> create table e_table as (select * from e_emp); Table created. SQL> INSERT INTO e_table(emp_code) VALUES('1111'); 1 row created. SQL> insert into e_table(emp_code) values('2222'); 1 row created. SQL> select * from e_table; EMP_CODE E E ---------- - - 1111 2222 SQL> insert into e_emp(emp_code,emp_status,emp_type) (select emp_code,'0','N' from e_table); 2 rows created. SQL> select * from e_emp; EMP_CODE E E ---------- - - 1111 0 N 2222 0 N SQL>
I hope this helps.
Kind regards
Claudy -
Inserting data into one table to another table.
Hi all
I'm having a few problems when copying data from the 1 table to another table. I have a data 1 date in a table, and I want to insert data in a partition of the main table. As it is the dev database space by getting a problem. I don't have enough space that I can maintain the data for the same date in 2 places.
Here every way possible in oracle this 1 table may be made partition in the other table. (Just a question).
Please suggest me a way out and if possible should be fast that data are more than 50 million lines and size along 10 GB.
Thank youAre the columns of your source table identical to that of the destination partitioned table?
If so, you can create an empty partition in the partitioned table and then create a swap partition to swap the source with the new empty partition table.
-
Leak memory in a simple loop to save data in the table?
Hello world
I'm trying to set up a simple code to read a certain amount of data in a table at a fixed sampling rate and put these data in a local variable. I'll put this on one OR cRIO-9073 using the scanning engine and the data comes from one NOR 9208 with a speed of approximately 250 Hz scanning, even if it is not really important at the moment.
I made this little test VI which I suspect contains a memory leak, but I'm not able to identify it. The reason for my suspicion is that when I run the vi on a VMWare virtual machine (LabVIEW 2010 on Windows XP) it claims soon that it is short-term memory. Of course, the problem is perhaps elsewhere, but I hope that someone more experienced with LabVIEW programming will be able to find all the bugs very easily because it is really a piece very simpel to code. :-)
I have included a copy of the VI with a screenshot to illustrate.
Regards, Martin
PS my code looks a bit awkward, so if anyone has a better solution, I'd be very happy to learn about it!
Hello Martin,
I would try a different approach to your problem. Currently you reshape your table each iteration of the loop. This means that the allocator memory of LV must find a new piece of contiguous memory each iteration of the loop. You're probably fragment your memory and so short of contiguous blocks of memory, leading to the release of messages from memory.
For these types of tasks, I recommend having an array of fixed size that you initialize outside the loop and then use the Replace table subset in the loop for updating the values. This avoids the problem of allocating memory you use in.
Alternatively, since I assume that you use the local variable to pass data to another loop, you can use a FIFO RT to manage data. A RT FIFO resembles a queue of LV, but it is designed so that you can keep determinism in your application. Set up an acquisition loop that exports data from the 9208 every 4ms in a RT FIFO. Then set up your processing loop to run at a slower pace - say every 200ms. The processing loop reads all the elements of the FIFO until it is empty every 200ms or a number of samples. The RT FIFO is fixed size, if you need to make it large enough to contain at least 200/4 = 50 samples. For more security, you should do several times bigger, maybe 200 samples. You can try different sizes of the FIFO and also to the different periods of your processing loop to your application's specifications.
Using this method you do not have to create a counter to track items, since the reading of FIFO function can tell you how many items is in the FIFO and also when it is empty.
I recommend you the example of Communication of FIFO of RT which comes with LabVIEW to get an idea of how to use these functions.
Gerardo
-
Insert data into one table other frome table
Hi all
I have a table called TRXN with 43 GB of data with a primary key... I have another table named TRXN_P with 15 GB of data...
some of the files of TRXN_P are already there in the TRXN table... I want to insert these remaining data in TRXN_P table TRXN?
How can I insert?
any suggestions please?
Thanks in advance...
RASTry this
Directory of username/password query dumpfile = table_TRXN_P.dmp dump_directory_name = TRXN_P = expdp:------tables ' where your_unique_column_name not in (select your_unique_column_name from TRXN) "= TRXN_P
Username/password directory Impdp dumpfile = dump_directory_name = table_TRXN_P.dmp remap_table = TRXN_P:TRXN table_exists_action = add
-
Error in SQL syntax when inserting data to the table in the form of values using insert record
Hello
I was hoping that someone could help me. I am creating a form of registration on a website to insert data into a database table. When you try to create the form, I get the following error:
You have an error in your SQL syntax; consult the manual for your version of the MySQL server for the right syntax to use near ' VALUES (name, regno, reason) leave (has ', 1, 'dddd')' at line 1
I checked the syntax, but you don't know what's wrong.
I am running Windows 7 with Dw cs6 and wamp server.
Leave with the names of column (name, regno, reason) is the name of the table.
Thank you for your help and please help me.
The code is as below:
<? php require_once('Connections/connect.php');? >
<? PHP
If (! function_exists ("GetSQLValueString")) {}
function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
If (via PHP_VERSION < 6) {}
$theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;
}
$theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);
Switch ($theType) {}
case 'text ':
$theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
break;
case "long":
case "int":
$theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';
break;
case "double":
$theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';
break;
case "date":
$theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
break;
case "set":
$theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;
break;
}
Return $theValue;
}
}
$editFormAction = $_SERVER ['PHP_SELF'];
If (isset {}
$editFormAction. = « ? ». htmlentities($_SERVER['QUERY_STRING']);
}
If ((isset($_POST["MM_insert"])) & & ($_POST ["MM_insert"] == "form1")) {}
$insertSQL = sprintf ("INSERT INTO leave (name, regno, reason) VALUES (%s, %s, %s)',
GetSQLValueString ($_POST ['name'], "text").
GetSQLValueString ($_POST ['reg'], "int").
GetSQLValueString ($_POST ['reason'], "text"));
@mysql_select_db ($database_connect, $connect);
$Result1 = mysql_query ($insertSQL, $connect) or die (mysql_error ());
}
? >
< ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" > ""
" < html xmlns =" http://www.w3.org/1999/xhtml ">
< head >
< meta http-equiv = "content-type" content = text/html"; charset = utf-8 "/ >"
< title > online form let < /title >
< name meta = "keywords" content = "" / > "
< name meta = "description" content = "" / > "
< link href = "styless.css" rel = "stylesheet" type = "text/css" media = "screen" / > "
< / head >
< body >
< div id = 'wrapper' >
< div id = "header" >
< div id = 'menu' >
< ul >
< class li = "current_page_item" > < a href = "#" > home < /a > < /li >
< li > < /li >
< li > < /li >
< li > < a href = "#" > on < /a > < /li >
< li > < /li >
< li > < a href = "#" > Contact < /a > < /li >
< /ul >
< / div >
<!-end #menu->
< div id = "Search" >
< / div >
<!-end #search->
< / div >
<!-end #header->
< div id = "logo" >
E - SCHOOL of CHRIST < h1 > < / h1 >
< p > < / p >
< / div >
< hr / >
<!-end #logo->
<! - end #header - wrapper->
< div id = "page" >
< div id = "content" >
< div class = "post" >
< h2 class = "title" > leave application online < / h2 >
< div class = "entry" > < / div >
< / div >
< do action = "<?" PHP echo $editFormAction;? ">" method = "POST" name = "form1" id = "form1" >
< table width = "200" border = "2" cellspacing = "5" cellpadding = "5" >
< b >
< scope th 'row' = > name < /th >
< td > < label for = "name" > < / label >
< input type = "text" name = "name" id = "name" / > < table >
< /tr >
< b >
< scope = "row" th > Reg No. < /th >
< td > < label for = "reg" > < / label >
< input type = "text" name = "reg" id = "reg" / > < table >
< /tr >
< b >
< scope = "row" th > why < /th >
< td > < label for = "reason" > < / label >
< name textarea = 'reason' id = cols 'reason' = "45" rows = "5" > < / textarea > < table >
< /tr >
< b >
< scope = "row" th > < /th >
< td > < input type = "submit" name = "b1" id = "b1" value = "Submit" / > < table >
< /tr >
< /table >
< input type = "hidden" name = "MM_insert" value = "form1" / >
< / make >
< / div >
<!-end #content->
< div id = "sidebar" >
< ul >
< li >
Notice of < h2 > < / h2 >
< p > students must present the appropriate documents supporting the reason for leave within 3 working days. < /p >
< /li >
< li id = "calendar" >
Calendar < h2 > < / h2 >
< div id = "calendar_wrap" >
< table summary = "Calendar" >
< caption >
March 2014
< / legend >
< thead >
< b >
< th abbr = "Monday" scope = "col" title = "Monday" > M < /th >
< th abbr = "Tuesday" scope = "col" title = "Tuesday" > T < /th >
< th abbr = "Wednesday" scope = "col" title = "Wednesday" > W < /th >
< th abbr = "Thursday" scope = "col" title = 'Thursday' > T < /th >
< th abbr = "Friday" scope = "col" title = 'Friday' > F < /th >
< th abbr = "Saturday" scope = "col" title = 'Saturday' > S < /th >
< th abbr = "Sunday" scope = "col" title = 'Sunday' > S < /th >
< /tr >
< / thead >
< tfoot >
< b >
< td abbr = "February" colspan = "3" id = "prev" > < a href = "#" title = "" > & laquo; Feb < /a > < table >
< class td = "pad" > < table >
< td abbr = "April" colspan = "3" id = "next" > < a href = "#" title = "" > Apr & raquo; < /a > < table >
< /tr >
< / tfoot >
< tbody >
< b >
< td colspan = "5" class = "pad" > < table >
< td > < table > 1
< td > < table > 2
< /tr >
< b >
< td > 3 < table >
< td > < table > 4
< td > 5 < table >
< td > < table > 6
< td > < table > 7
< td > < table > 8
< td > < table > 9
< /tr >
< b >
< td > < table > 10
< td id = 'today' > < table > 11
< td > < table > 12
< td > < table > 13
< td > < table > 14
< td > < table > 15
< td > < table > 16
< /tr >
< b >
< td > < table > 17
< td > < table > 18
< td > < table > 19
< td > < table > 20
< td > < table > 21
< td > < table > 22
< td > < table > 23
< /tr >
< b >
< td > < table > 24
< td > < table > 25
< td > < table > 26
< td > < table > 27
< td > < table > 28
< td > < table > 29
< td > < table > 30
< /tr >
< b >
< td > < table > 31
< class td = "pad" colspan = "6" > < table >
< /tr >
< / tbody >
< /table >
< / div >
< /li >
< li > < /li >
< /ul >
< / div >
<!-end #sidebar->
< div style = "" clear: both; "> < / div >"
< / div >
<!-end #page->
< div id = "footer" >
< p > Copyright (c) University of Christ. All rights reserved. < /p >
< / div >
<!-end #footer->
< / div >
< div align = center > < / div > < / body >
< / html >
The LEAVE is a reserved word in MySQL. You can try to quote, but you are better to rename it.
-
Inserting data from one table to another table
Hello
I have the following SQL where I am updating a table by adding new data from another table, but without success.
INSERT INTO
() TOP_PROSPECTS
COMMON_ID
DATE_ADDED
REVIEW_RANK
EVAL_DATE
PM_ASSIGN
WHY_NOTES)
SELECT
t.COMMON_ID
t.DATE_ADDED
t.REVIEW_RANK
t.EVAL_DATE
t.PM_ASSIGN
t.WHY_NOTES
Of
TEMP_IVAN_MARY t
WHERE
COMMON_ID <>t.COMMON_ID
Any suggestions?
Thank you.
Published by: user13822709 on August 14, 2012 09:14
Published by: user13822709 on August 14, 2012 09:15Is that what you're trying to do with the insert. I think there may be a sign {noformat}<{noformat}{noformat}>{noformat} missing in the where clause. This site eat those, so you need to use the equivalent! = post here.
If I'm wrong about the missing trader, then it looks like you want to insert rows in temp_ivan_mary that are not already in top_prospects. If Yes, then you need something like:
insert into top_prospects (common_id, date_added, review_rank, eval_date, pm_assign, why_notes) select t.common_id, t.date_added, t.review_rank, t.eval_date, t.pm_assign, t.why_notes from temp_ivan_mary t where t.common_id not in (select common_id from top_prospects where common_id is not null)
Function index and data available volumnes etc. then a mergr can be more effective. Something like:
merge into top_prospects p using (select common_id, date_added, review_rank, eval_date, pm_assign, why_notes from temp_ivan_mary) t on (p.common_id = t.common_id) when not matched then insert (common_id, date_added, review_rank, eval_date, pm_assign, why_notes) values (t.common_id, t.date_added, t.review_rank, t.eval_date, t.pm_assign, t.why_notes) from temp_ivan_mary t
John
{noformat}{noformat}> -
Insert data into the table particular
Hello
I have a requirement to insert data from table from Oracle 10 g to Oracle 9i table.
The pom_code table should be filled with gr_product table based on a specific schema of codes - i.e. If POM Code corresponds to a specific model, then it must belong to a specific company.
FROM :: Oracle 10g database gr_product pr_code varchar2(20 byte) pr_desc varchar2(80 byte)
To :: Oracle 9i database pom_code code varchar2(12 byte) desc varchar2(100 byte) companyid Number
Thank you1. All gr_product.pr_code with following pattern should go to pom_code.code and companyid =10 a. <one digit><.><two digit><alphabet> ex code: 1.01A b. <one digit><.><two digit><alphabet><space><two alphabet> ex code: 1.01B ZF 2. All gr_product.pr_code with following pattern should go to pom_code.code and companyid =20 a. <two digit><.><one digit><alphabet> ex code: 10.1A b. <two digit><.><one digit><alphabet><space><two alphabet> ex code: 10.5A HR 3. All gr_product.pr_code with following pattern should go to pom_code.code and companyid =30 a. <alphabet><.><two digit><alphabet> ex code: B.42A b. <alphabet><.><two digit><alphabet><space><two alphabet> ex code: N.10B AT
SandyHello
The CASE expression I posted earlier does what you want?
If so, please mark the thread as "answered".
If this isn't the case, after a complete script that people can run to recreate the problem and test their ideas. Includes TABLE of CASH and INSERT statements for some examples of data for all the tables, the results you want from these sample data and your request (or INSERT statement) using the CASE expression. Report where the code you posted does not have what you need and explain how to get good results in these places.
Maybe you are looking for
-
Designjet T520: Designjet T520 PCA main Board
Why the different part numbers for a 24 "and 36" Designjet T520 hand PCA Council? Can I interchange the two parties? 24 "CQ890-67081 36 "CQ890-67097
-
Can my iPhone 6s through metal detectors without creating an alarm?
Now, MY school has metal detectors and their not let us put more phones but I want to sneak mine. Idk if the 6s is able to pass through metal detectors without problem
-
Is it possible that my Mac to be cloned
I got a message saying that a link to photo I clicked on was a threat. After closing down my Mac, I got a message that says that another device with the same ip address using my internet connection. Have a virus? My machine has been cloned? How do I
-
Pvilion 10i: can I reuse the FlashDrive reformatting
Can I re-use the recovery HP (Microsoft 32 GB) flash drive after that I reinstalled my OS? I have a couple that seems to be corrupt. I do not wish their connection to an old computer just to get spoil things. Thank you, G
-
Sound Volume settings do not go below 20% or greater than 70% HELP!
After restoring my computer using Norton Ghost because of this problem, it happened again after several days and I have no idea why, or how to solve this problem. The green light on volume will be not less than 20% and not more than 70% using differe