Extracting difference is attributes for a given row in two different tables
Hope you are doing great. Below is the problem i am facing. There are two tables
1: employeeinfo (HR maintains this table and we cannot alter the records of this table)
2: cmp_employee_info (i have created this table with limited fields we need to monitor for changes, the records in this table are limited).
Procedure:
1: The second tabel stores the same information as employee info but is not updated by HR, but the first table can at any point be updated by HR.
2: A program checks every day for differences in table employeeinfo and cmp_employee_info. If any changes are found it needs to aletr us via emiail regarding he changes and also it updated the cmp_employee_info table.
I have this query in place.
(SELECT cmp_employeeinfo_rms.logonid,cmp_employeeinfo_rms.firstname,cmp_employeeinfo_rms.lastname,cmp_employeeinfo_rms.emailaddr,cmp_employeeinfo_rms.Locationname,cmp_employeeinfo_rms.termdate,cmp_employeeinfo_rms.persontype,cmp_employeeinfo_rms.jobclass,cmp_employeeinfo_rms.assignmentstatus,cmp_employeeinfo_rms.mgrlogonid FROM cmp_employeeinfo_rms
LEFT OUTER JOIN employeeinfo
ON cmp_employeeinfo_rms.logonid = employeeinfo.logonid
where (cmp_employeeinfo_rms.mgrlogonid != employeeinfo.mgrlogonid or cmp_employeeinfo_rms.lastname != employeeinfo.lastname or cmp_employeeinfo_rms.locationname != employeeinfo.locationname or cmp_employeeinfo_rms.termdate != employeeinfo.termdate or cmp_employeeinfo_rms.persontype != employeeinfo.persontype or cmp_employeeinfo_rms.jobclass != employeeinfo.jobclass or cmp_employeeinfo_rms.assignmentstatus != employeeinfo.assignmentstatus))
UNION
(SELECT employeeinfo.logonid,employeeinfo.firstname,employeeinfo.lastname,employeeinfo.emailaddr,employeeinfo.Locationname,employeeinfo.termdate,employeeinfo.persontype,employeeinfo.jobclass,employeeinfo.assignmentstatus,employeeinfo.mgrlogonid FROM employeeinfo JOIN cmp_employeeinfo_rms on cmp_employeeinfo_rms.logonid=employeeinfo.logonid)
The output to the above query is.
LOGONID
FIRSTNAME
LASTNAME
EMAIL
LOCATION
TERMDATE
TYPE
DESIGNATION
ASSIGNMENTSTATUS
MGRID
TEST1
FIRST1
LAST1
EMAIL1
L1
NULL
Associate
D1
Active Assignment
M1
TEST2
FIRST2
LAST2
EMAIL2
L2
NULL
Associate
D2
Active Assignment
M2
TEST3
FIRST3
LAST3
EMAIL3
L3
NULL
Associate
D3
Active Assignment
M3
TEST4
FIRST4
LAST4
EMAIL4
L4
NULL
Associate
D4
Active Assignment
M4
TEST5
FIRST5
LAST5
EMAIL5
L5
NULL
Associate
D5
Active Assignment
M5
TEST6
FIRST6
LAST6
EMAIL6
L6
NULL
Associate
D6
Active Assignment
M6
TEST7
FIRST7
LAST7
EMAIL7
L7
NULL
Associate
D7
Active Assignment
M7
TEST8
FIRST8
LAST8
EMAIL8
L8
NULL
Associate
D8
Active Assignment
M8
TEST9
FIRST9
LAST9
EMAIL9
L9
NULL
Associate
D9
Active Assignment
M9
TEST10
FIRST10
LAST10
EMAIL10
L10
NULL
Associate
D10
Active Assignment
M10
TEST11
FIRST11
LAST11
EMAIL11
L11
NULL
Associate
D11
Active Assignment
M11
TEST12
FIRST12
LAST12
EMAIL12
L12
NULL
Associate
D12
Active Assignment
M12
TEST13
FIRST13
LAST13
EMAIL13
L13
NULL
Associate
D13
Active Assignment
M13
TEST14
FIRST14
LAST14
EMAIL14
L14
NULL
Associate
D14
Active Assignment
M14
TEST15
FIRST15
LAST15
EMAIL15
L15
NULL
Associate
D15
Active Assignment
M15
TEST16
FIRST16
LAST16
EMAIL16
L16
NULL
Associate
D16
Active Assignment
M16
TEST17
FIRST17
LAST17
EMAIL17
L17
NULL
Associate
D17
Active Assignment
M17
TEST18
FIRST18
LAST18
EMAIL18
L18
NULL
Associate
D18
Active Assignment
M18
TEST18
FIRST18
LAST18
EMAIL18
L18
NULL
Outsorced
D18
Active Assignment
M18
TEST19
FIRST19
LAST19
EMAIL19
L19
NULL
Associate
D19
Active Assignment
M19
TEST20
FIRST20
LAST20
EMAIL20
L20
NULL
Associate
D20
Active Assignment
M20
TEST21
FIRST21
LAST21
EMAIL21
L21
NULL
Associate
D21
Active Assignment
M21
TEST22
FIRST22
LAST22
EMAIL22
L22
NULL
Associate
D22
Active Assignment
M22
TEST23
FIRST23
LAST23
EMAIL23
L23
NULL
Associate
D23
Active Assignment
M23
As you would have noticed that the following record appears twice as there is a change in persontype.
TEST18
FIRST18
LAST18
EMAIL18
L18
NULL
Associate
D18
Active Assignment
M18
TEST18
FIRST18
LAST18
EMAIL18
L18
NULL
Outsorced
D18
Active Assignment
M18
I wish to extract any such change with the field changed. After recording the change i would update the second table as well.
Edited by: Prashant_Dixit on Apr 20, 2012 10:25 PM
Prashant_Dixit wrote:
Hi,
I just need a report of what the changes are.As another poster has suggested above, you may want to have a look at using a materialized view log instead of your approach. The MV log approach is better as it
a) is maintained by database
b) is easy to setup
c) is easy to maintain
d) is easy to query.
Following is a demo of how you can use it.
SQL> select * from v$version ;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL> create user a identified by a ;
User created.
SQL> grant create session, create table to a ;
Grant succeeded.
SQL> alter user a quota unlimited on users ;
User altered.
SQL> create table a.empinfo as select * from hr.employees ;
Table created.
SQL> conn a/a
Connected.
SQL> select * from tab ;
TNAME TABTYPE CLUSTERID
EMPINFO TABLE
SQL> alter table empinfo add constraint e_pk primary key (employee_id) ;
Table altered.
SQL> desc empinfo
Name Null? Type
EMPLOYEE_ID NOT NULL NUMBER(6)
FIRST_NAME VARCHAR2(20)
LAST_NAME NOT NULL VARCHAR2(25)
EMAIL NOT NULL VARCHAR2(25)
PHONE_NUMBER VARCHAR2(20)
HIRE_DATE NOT NULL DATE
JOB_ID NOT NULL VARCHAR2(10)
SALARY NUMBER(8,2)
COMMISSION_PCT NUMBER(2,2)
MANAGER_ID NUMBER(6)
DEPARTMENT_ID NUMBER(4)
SQL> create materialized view log on empinfo with (salary) including new values ;
Materialized view log created.
SQL> select * from tab ;
TNAME TABTYPE CLUSTERID
EMPINFO TABLE
MLOG$_EMPINFO TABLE
RUPD$_EMPINFO TABLE
SQL> desc mlog$_empinfo
Name Null? Type
EMPLOYEE_ID NUMBER(6)
SALARY NUMBER(8,2)
SNAPTIME$$ DATE
DMLTYPE$$ VARCHAR2(1)
OLD_NEW$$ VARCHAR2(1)
CHANGE_VECTOR$$ RAW(255)
XID$$ NUMBER
SQL> update empinfo set salary = salary * 1.2 where department_id = 10 ;
1 row updated.
SQL> update empinfo set salary = salary * 1.1 where department_id = 30 ;
6 rows updated.
SQL> commit ;
Commit complete.
SQL> select count(*) from mlog$_empinfo ;
COUNT(*)
14
SQL> select employee_id, salary, dmltype$$ from mlog$_empinfo order by snaptime$$ ;
EMPLOYEE_ID SALARY D
200 4400 U
200 5280 U
114 11000 U
114 12100 U
115 3100 U
115 3410 U
119 2750 U
116 3190 U
117 2800 U
117 3080 U
118 2600 U
EMPLOYEE_ID SALARY D
118 2860 U
119 2500 U
116 2900 U
14 rows selected.Hope this helps.
Similar Messages
-
Extract the "bind" variables for a given query running in 10g.
how can we extract the "bind" variables for a given query running in 10g? The performance of a query may vary based on the parameters supplied to it. For example, a query like the following
SELECT * FROM CUSTOMER_ORDERS WHERE CUSTOMER = :CUST_ID
.might run differently when the :CUST_ID is "123" who may have very few orders versus "456" who may have tens of thousands of orders.
So, if we see a spike in the system due to a query, we need visibility into what the exact query syntax and values are for any database session. We're aware of an Oracle view called V$SQL_BIND_CAPTURE, but what we're finding with this view is that it's only a snapshot of variables that are refreshed on an interval. That view does not give us a live view into what values are being used in the various sessions in realtime.
If someone ould provide us with some SQL (or other means) to do get a realtime view into the SQL and variables currently running in the database, it would be greatly appreciated.In addition to what's been said in the other thread, you could add a layer of logging either in the database or out.
v$sql_bind_capture and the associated ash view dba_hist_sqlbind contain sample data.
You could up the sample rate but it's not advisable - it's still just a sample.
If you're on 11g, this is where adaptive cursor sharing might help.
Not help in finding the values of your binds, but help in using different plans where there is such a skew for different bind values and the plan is perhaps wrong for customer 456.
The problem when you're got such a skew and you're using bind variables is that the two don't really go together.
When the query is next parsed and you've got bind variable peeking enabled, you might get the 123 plan is that is the bind value at parse time and then run into problems for 456 or even vice versa.
See http://jonathanlewis.wordpress.com/2009/05/06/philosophy-1/ for a discussion on binds and histograms which reflects the reasons for using either. -
Resukt:Get number of rows from 3 different table...?
Hi All,
I need to find out number of rows from 3 different table for the same conditions. Instead of writing 3 queries, is it possible to get it thru one query?
For example, i need to find out number of rows in tables where name = 'Ameet' from 3 different table, i will end writing 3 queries.
1. select count(1) from table_a where name = 'Ameet';
1. select count(1) from table_b where name = 'Ameet';
1. select count(1) from table_c where name = 'Ameet';
Is it possible to write a single query to get result of all above 3 queries?
result:
table_a table_b table_c
34 44 2One way:
SELECT (SELECT COUNT(*) AS CNT FROM TABLE_A WHERE name='Ameet') AS TABLE_A
, (SELECT COUNT(*) AS CNT FROM TABLE_B WHERE name='Ameet') AS TABLE_B
, (SELECT COUNT(*) AS CNT FROM TABLE_C WHERE name='Ameet') AS TABLE_C
FROM DUALIf you want the total:
SELECT SUM(CNT)
FROM
SELECT COUNT(*) AS CNT FROM TABLE_A WHERE name='Ameet'
UNION ALL
SELECT COUNT(*) FROM TABLE_B WHERE name='Ameet'
UNION ALL
SELECT COUNT(*) FROM TABLE_C WHERE name='Ameet'
) -
How to create a foreign key for the table from two different tables?
Hi All,
I have a three table like below. In the below table SAMPLE_CONS_CHECK and SAMPLE_CONS2_CHECK will be having the primary key for NAME column. The same SAMPLE_CONS3_CHECK table also having the primary key for NAME column and forieign key for SAMPLE_CONS_CHECK and SAMPLE_CONS2_CHECK tables. See the below code 2
code 1:
CREATE TABLE SAMPLE_CONS_CHECK
(NAME VARCHAR2(10),
SERIES VARCHAR2(5)
CREATE TABLE SAMPLE_CONS2_CHECK
(NAME VARCHAR2(5),
MODEL NUMBER
CREATE TABLE SAMPLE_CONS3_CHECK
(NAME VARCHAR2(5),
MODEL_NO NUMBER
)code 2
alter table SAMPLE_CONS_CHECK
add constraint SAMPLE_CONS_CHECK_pk primary key (NAME)
alter table SAMPLE_CONS2_CHECK
add constraint SAMPLE_CONS2_CHECK_pk primary key (NAME)
alter table SAMPLE_CONS3_CHECK
add constraint SAMPLE_CONS3_CHECK_pk primary key (NAME)
ALTER TABLE SAMPLE_CONS3_CHECK ADD
CONSTRAINT SAMPLE_CONS3_CHECK_FK1 FOREIGN KEY
NAME
) REFERENCES SAMPLE_CONS_CHECK
NAME
) ON DELETE CASCADE;
ALTER TABLE SAMPLE_CONS3_CHECK ADD
CONSTRAINT SAMPLE_CONS3_CHECK_FK2 FOREIGN KEY
NAME
) REFERENCES SAMPLE_CONS2_CHECK
NAME
) ON DELETE CASCADE;From the above schenario i am able to insert the data to SAMPLE_CONS3_CHECK table. But the parent data is already available in the parent table. The problem is here two different constarints from two different tables. While inserting, it is checking from both the tables whether the parent is exist or not.
How can i solve this problem? Can anyone halp me about this?
Thanks
Edited by: orasuriya on Aug 8, 2009 2:02 AMActually the design is completely incorrect.
What you say is
I have
'foo', 'foo series'
'foo','foo model'
'foo',666
By virtue of table3 referring to both table1 and table2.
This means you actually need to have 1 (one) table:
'foo','foo series','foo model', 666
And the 'problem' disappears.
Sybrand Bakker
Senior Oracle DBA -
Use two indicators for the same variable in two different VIs
hello, I want to use two indicators for the same variable in two different VIs running at the same time
should I use global variables?? I want to avoid because I have lot of variables and it would takes too much memory,I tried with this code but the value of the second indicator is not updated
I tried to use the queue and it works but the problem is as i said previously that i have many variables shoud I use a queue for each one??
what should I do?
thank you in advance
cordialy
Attachments:
projet.zip 13 KBCrisSTine01 wrote:
hello, I want to use two indicators for the same variable in two different VIs running at the same time
I'm a huge fan of User Events to send updates to GUIs from who knows where.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
Please Help!!!
How to write a case statement for the totals column of two different years (2013 and 2014) of the same month so that I can get a +/- column.
January 2014 January
2013 +/-
Region Entry Exit Total Entry Exit Total (Total of Jan2014-Total of Jan2013)
A 2 3
40 5 7 30 40-30= 10What is a table structure? Sorry cannot test it right now..
SELECT <columns>,(SELECT Total FROM tbl WHERE Y=2014)-(SELECT Total FROM tbl WHERE Y=2013)
FROM tbl
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
Comparing row values in two different tables
Hello,
Does anyone know if it is possible to compare (and possibly highlight - which I know can be done) row values in two different tables?
I have a ZIP Code column in table A that I want to compare to a ZIP Code column in table B and highlight those ZIP Codes that are present in table B but not in table A etc. Is this possible?
Thanks,
KennethTo be able to apply conditional formatting, I must edit the formulas this way.
=IF(ISBLANK(B)," ",IF(ISERROR(VLOOKUP(B,Tableau 2 :: B,1,0))," ",VLOOKUP(B,Tableau 2 :: B,1,0)))
=IF(ISBLANK(B)," ",IF(ISERROR(VLOOKUP(B,Tableau 1 :: B,1,0))," ",VLOOKUP(B,Tableau 1 :: B,1,0)))
I replaces the four empty strings by strings containing one space character.
In the field supposed to contain the text which is not contained I just entered a single space character.
Yvan KOENIG (from FRANCE vendredi 12 septembre 2008 20:52:11) -
BAPI to extract from MBEW/MBEWH for a given period
Hi ABAPpers,
We have two tables MBEW and MBEWH for Material Valuation. Based on the changes in few fields like VERPR, the record in MBEW will be transferred to MBEWH. Is there any BAPI that helps me to extract the data for a given period of a given fiscal year without asking me to probe from which table we need to fetch data from and which record in MBEWH is valid for that period of that year. Please suggest possible ways to do it.
Thanks.
Edited by: VKUPPILI on Dec 19, 2011 2:53 PMHi
Although it's not your question, see SAP Note 193554 - Stock/valuation data of previous periods, I think that it helps you to understand how to understand how to work the history tables.
I hope this helps you
Regards
Eduardo -
Better approach for checking column values between two different rows
My requirement is to find best Approach to find difference between column values of two different rows.Below I've mentioned two different
approaches I'm thinking of,but I'd like to know is there any other better approach.
version details
SQL> SELECT *
2 FROM V$VERSION;
BANNER
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
PL/SQL Release 11.1.0.7.0 - Production
CORE 11.1.0.7.0 Production
TNS for Solaris: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - ProductionTable creation script
CREATE TABLE R_DUMMY
(CA_ID VARCHAR2(16) NOT NULL ENABLE,
CA_VER_NUM NUMBER(4,2) NOT NULL ENABLE,
BRWR_SHORT_NAME VARCHAR2(25 CHAR),
sic_code number,
FAC_ID VARCHAR2(10) NOT NULL ENABLE
/ insert script
insert into r_dummy (CA_ID, CA_VER_NUM, BRWR_SHORT_NAME, sic_code, FAC_ID)
values ('CA2001/11/0002', 2.00, 'Nandu',1234, 'FA000008');
insert into r_dummy (CA_ID, CA_VER_NUM, BRWR_SHORT_NAME, sic_code, FAC_ID)
values ('CA2001/11/0002', 3.00, 'SHIJU',456, 'FA000008');Desired O/P :
ca_id fac_id column_name previous name after_modification
CA2001/11/0002 FA000008 BRWR_SHORT_NAME Nandu SHIJU
CA2001/11/0002 FA000008 sic_code 1234 456My approach
select ca_id,fac_id,column_name,
decode(column_name,'BRWR_SHORT_NAME',lg_brwr,lg_sic) previous_name ,
decode(column_name,'BRWR_SHORT_NAME',ld_brwr,ld_sic) after_modification
from
select
case
when ld_brwr != lg_brwr then
'BRWR_SHORT_NAME'
when ld_brwr != lg_brwr then
'sic_code'
end
) column_name,ca_id,fac_id,lg_brwr,ld_brwr,ld_sic,lg_sic
from (
select ca_id,fac_id,lag_brwr,ld_brwr,ld_sic,lag_sic
from
Select lead(brwr_short_name,1) over(partition by ca_id,fac_id) ld_brwr,
lag(brwr_short_name,1) over(partition by ca_id,fac_id) lg_brwr,
lead(sic_code,1) over(partition by ca_id,fac_id) ld_sic,
lag(sic_code,1) over(partition by ca_id,fac_id) lg_sic,
ca_id,fac_id
from r_dummy
where (ld_brwr != lg_brwr or ld_sic != lg_sic)
)2nd Approach :
=============
select ca_id,fac_id,column_name,
decode(column_name,'BRWR_SHORT_NAME',lg_brwr,lg_sic) previous_name ,
decode(column_name,'BRWR_SHORT_NAME',ld_brwr,ld_sic) after_modification
from
select
case
when ld_brwr != lg_brwr then
'BRWR_SHORT_NAME'
when ld_brwr != lg_brwr then
'sic_code'
end
) column_name,ca_id,fac_id,lg_brwr,ld_brwr,ld_sic,lg_sic
from (
select ca_id,fac_id,brwr_short_name,sic_code
from
Select ca_id,fac_id,brwr_short_name lg_brwr,sic_code lg_sic
from r_dummy
where ca_ver_num = '2.00'
)o,(
Select ca_id,fac_id,brwr_short_name ld_brwr,sic_code ld_sic
from r_dummy
where ca_ver_num = '3.00'
)n
where 0.ca_id = n.ca_id
and 0.fac_id = n.fac_id
and (ld_brwr != lg_brwr or ld_sic != lg_sic)
)Hi Experts,
I've provided sample data where I'm checking for just two columns viz brwr_short_name ,sic_code,but in real time
I've to check for 8 more columns so please suggest me with a better approach.
I appreciate your precious suggestions.Hi,
Thanks for posting the CREATE TABLE and INSERT statements; that really helps!
Here's one wa. Like your 2nd approach, this uses a self-join:
WITH got_r_num AS
SELECT ca_id
, ROW_NUMBER () OVER ( PARTITION BY ca_id
, fac_id
ORDER BY ca_ver_num
) AS r_num
, brwr_short_name
, TO_CHAR (sic_code) AS sic_code
, fac_id
-- , ... -- Other columns (using TO_CHAR if needed)
FROM r_dummy
, unpivoted_data AS
SELECT *
FROM got_r_num
UNPIVOT INCLUDE NULLS
( txt
FOR column_name IN ( brwr_short_name AS 'BRWR_SHORT_NAME'
, sic_code AS 'SIC_CODE'
-- , ... -- Other columns
SELECT p.ca_id
, p.fac_id
, p.column_name
, p.txt AS previous_name
, a.txt AS after_modification
FROM unpivoted_data p
JOIN unpivoted_data a ON p.ca_id = a.ca_id
AND p.fac_id = a.fac_id
AND p.column_name = a.column_name
AND p.r_num = a.r_num - 1
AND p.txt || 'X' != a.txt || 'X'
ORDER BY a.r_num
;To include other columns, add them in the 2 places where I put the comment "Other columns".
Ca_ver_num can have any values, not just 2.00 and 3.00.
This will show cases where a value in one of the columns changed to NULL, or where NULL changed to a value.
There ought to be a way to do this without a separate sub-query like got_r_num. According to the SQL Language manual, you can put expressions in the UPIVOT ... IN list, but when I tried
... UNPIVOT INCLUDE NULLS
( txt
FOR column_name IN ( brwr_short_name AS 'BRWR_SHORT_NAME'
, TO_CHAR (sic_code) AS 'SIC_CODE'
)I got the error "ORA_00917: missing comma" right after TO_CHAR. Perhaps someone else can show how to eliminate one of the sub-queries. -
How to set different colors for even odd rows in a data table
hi,
In my project i hav a data table. i am using jsf. i want the rows of the data table different colors for even, odd rows. can i do it just setting the row class property ? or there should be there some other way? please help.
sailajoyHope this helps
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title></title>
<style type='text/css'>
.scrollContent {
height:100px;
overflow-x:hidden;
overflow-y:auto;
.scrollContent tr {
height: auto;
white-space: nowrap;
.scrollContent tr td:last-child {
padding-right: 20px;
.fixedHeader tr {
position: relative;
height: auto;
top: expression( this.parentNode.parentNode.parentNode.scrollTop + 'px' );
div.TableContainer {
border: 1px solid #7DA87D;
.headerFormat {
background-color: white;
color: #C8D7B5;
margin: 3px;
padding: 1px;
white-space: nowrap;
font-family: Helvetica;
font-size: 16px;
text-decoration: none;
font-weight: bold;
.headerFormat tr td {
border: 1px solid #C8D7B5;
background-color: #666633;
.bodyFormat tr td {
color: #000000;
margin: 3px;
padding: 1px;
border: 0px none;
font-family: Helvetica;
font-size: 12px;
.alternateRow {
background-color: #C8D7B5;
</style>
<style type="text/css">
div.TableContainer {
height: 121px;
overflow-x:hidden;
overflow-y:auto;
</style>
</head>
<body>
<table cellpadding="0" cellspacing="0" border="0"><tr><td><div id="TableContainer" class="TableContainer" style="height:230px;">
<table class="scrollTable">
<thead class="fixedHeader headerFormat">
<tr class="title">
<td title="Sort" align="center"><b>NAME</b> </td>
<td title="Sort" align="center"><b>Amt</b> </td>
<td title="Sort" align="center"><b>Lvl</b> </td>
<td title="Sort" align="center"><b>Rank</b> </td>
<td title="Sort" align="center"><b>Position</b> </td>
<td title="Sort" align="center"><b>Date</b></td>
</tr>
</thead>
<tbody class="scrollContent bodyFormat" style="height:200px;">
<tr class="alternateRow">
<td>Maha</td>
<td>
<input type="text" name="textfield" size="7" />
</td>
<td align="right"><input type="text" name="textfield2" size="7" /></td>
<td align="right"><input type="text" name="textfield3" size="7" /></td>
<td><input type="text" name="textfield4" size="7" /></td>
<td align="right"><input type="text" name="textfield5" size="7" /></td>
</tr>
<tr>
<td>Thrawl</td>
<td align="right">$9,550</td>
<td align="right">159</td>
<td align="right">100%</td>
<td>Co-Owner</td>
<td align="right">11/07/2003</td>
</tr>
<tr class="alternateRow">
<td>Marhanen</td>
<td align="right">$223.04</td>
<td align="right">83</td>
<td align="right">99%</td>
<td>Banker</td>
<td align="right">06/27/2006</td>
</tr>
<tr>
<td>Peter</td>
<td align="right">$121</td>
<td align="right">567</td>
<td align="right">23423%</td>
<td>FishHead</td>
<td align="right">06/06/2006</td>
</tr>
<tr class="alternateRow">
<td>Jones</td>
<td align="right">$15</td>
<td align="right">11</td>
<td align="right">15%</td>
<td>Bubba</td>
<td align="right">10/27/2005</td>
</tr>
<tr>
<td>Supa-De-Dupa</td>
<td align="right">$145</td>
<td align="right">91</td>
<td align="right">32%</td>
<td>momma</td>
<td align="right">12/15/1996</td>
</tr>
<tr class="alternateRow">
<td>ClickClock</td>
<td align="right">$1,213</td>
<td align="right">23</td>
<td align="right">1%</td>
<td>Dada</td>
<td align="right">1/30/1998</td>
</tr>
<tr>
<td>Mrs. Robinson</td>
<td align="right">$99</td>
<td align="right">99</td>
<td align="right">99%</td>
<td>Wife</td>
<td align="right">07/04/1963</td>
</tr>
<tr class="alternateRow">
<td>Maha</td>
<td align="right">$19,923.19</td>
<td align="right">100</td>
<td align="right">100%</td>
<td>Owner</td>
<td align="right">01/02/2001</td>
</tr>
<tr>
<td>Thrawl</td>
<td align="right">$9,550</td>
<td align="right">159</td>
<td align="right">100%</td>
<td>Co-Owner</td>
<td align="right">11/07/2003</td>
</tr>
<tr class="alternateRow">
<td>Marhanen</td>
<td align="right">$223.04</td>
<td align="right">83</td>
<td align="right">59%</td>
<td>Banker</td>
<td align="right">06/27/2006</td>
</tr>
<tr>
<td>Peter</td>
<td align="right">$121</td>
<td align="right">567</td>
<td align="right">534.23%</td>
<td>FishHead</td>
<td align="right">06/06/2006</td>
</tr>
<tr class="alternateRow">
<td>Jones</td>
<td align="right">$15</td>
<td align="right">11</td>
<td align="right">15%</td>
<td>Bubba</td>
<td align="right">10/27/2005</td>
</tr>
<tr>
<td>Supa-De-Dupa</td>
<td align="right">$145</td>
<td align="right">91</td>
<td align="right">42%</td>
<td>momma</td>
<td align="right">12/15/1996</td>
</tr>
<tr class="alternateRow">
<td>ClickClock</td>
<td align="right">$1,213</td>
<td align="right">23</td>
<td align="right">2%</td>
<td>Dada</td>
<td align="right">1/30/1998</td>
</tr>
<tr>
<td>Mrs. Robinson</td>
<td align="right">$99</td>
<td align="right">99</td>
<td align="right">(-10.42%)</td>
<td>Wife</td>
<td align="right">07/04/1963</td>
</tr>
<tr class="alternateRow">
<td>Maha</td>
<td align="right">-$19,923.19</td>
<td align="right">100</td>
<td align="right">(-10.01%)</td>
<td>Owner</td>
<td align="right">01/02/2001</td>
</tr>
<tr >
<td>Thrawl</td>
<td align="right">$9,550</td>
<td align="right">159</td>
<td align="right">-10.20%</td>
<td>Co-Owner</td>
<td align="right">11/07/2003</td>
</tr>
<tr class="alternateRow" >
<td><strong>TOTAL</strong>:</td>
<td align="right"><strong>999999</strong></td>
<td align="right"><strong>9999999</strong></td>
<td align="right"><strong>99</strong></td>
<td > </td>
<td align="right"> </td>
</tr>
</tbody>
</table>
</div></td></tr></table>
</body>
</html> -
How do I copy content from an entire row into a different table?
How do I copy content from an entire row of one table into a different table? When I try to copy/paste the selected row into a row of the same size and configuration in another table in the same document, the cells change width, the formatting and border thicknesses change, and the text gets squeezed. When I was working with tables in Microsoft Word, there was no problem selecting text from a row in one table and placing it into a similar row and configuration in another table.
Hi Christopher Morgan
And welcome to apple discussions. With regard to your main question ....
Q: Can this be done?
A: It can but not easily (in that you may take a hit in quality). Apps like MpegStream Clip or DVDXDV may help:
http://www.dvdxdv.com/NewFolderLookSite/Products/DVDxDV.products.htm
It converts it back to a QT file for use with iDvd (or iMovie).
Hope this helps but if not just come on back.
Disclaimer: Apple does not necessarily endorse any suggestions, solutions, or third-party software / products that may be mentioned in this topic. Apple encourages you to first seek a solution at Apple Support. The following links are provided as is, with no guarantee of the effectiveness or reliability of the information. Apple does not guarantee that these links will be maintained or functional at any given time. Use the information above at your own discretion. -
Best practice for a same query against 2 different tables
Hello all,
I want to extract info about tablespaces storage, both permanent and temporary. For that I use 2 different cursors that do exactly the same query but against a different table (dba_data_files and dba_temp_files).
CURSOR permanentTBSStorageInfo (tablespaceName VARCHAR2) IS
SELECT file_name, bytes, autoextensible, maxbytes, increment_by
FROM dba_data_files
WHERE tablespace_name = tablespaceName;
CURSOR temporaryTBSStorageInfo (tablespaceName VARCHAR2) IS
SELECT file_name, bytes, autoextensible, maxbytes, increment_by
FROM dba_temp_files
WHERE tablespace_name = tablespaceName;
First I'm bothered that I have to use 2 cursors to execute the same query against 2 different tables. Is there no another way around?
Then I fetch the results of this cursors in 2 different loops because I didn't find a way to dynamically call the cursors. I am looking for best practice here, knowing that I will do the same parsing against the results of the 2 cursors.
Thank you,Hi
Check whether the below query is helpful or not
select fs.tablespace_name "Tablespace",
fs.tempspace "Temp MB",
df.totalspace "Total MB"
from
(select
tablespace_name,
round(sum(bytes) / 1048576) TotalSpace
from
dba_data_files
group by
tablespace_name
) df,
(select
tablespace_name,
round(sum(bytes) / 1048576) tempSpace
from
dba_temp_files
group by
tablespace_name
) fs
where
df.tablespace_name = fs.tablespace_name;
Thanks -
How to find difference in amount between two fields in two different tables
Hi,
I am new to PL/SQL. I need to write a procedure to calculate the difference between two columns of two seperate tables. For example:
I have Table a and Table b. Both with two columns Id and Amount. I need to find the difference of Amount between table a and table b value for each record in table b, store it in variable and then do further operations using that difference. Kindly help me with this.Something like this?
INSERT INTO table_c (id, diff, p_or_n)
SELECT
a.a_id,
a.a_value - b.b_value
DECODE( SIGN(a.a_value - b.b_value),
1 , 'P',
0 , 'P',
-1, 'N'
FROM table_a a JOIN table_b b
ON (a.a_id = b.b_id);
-- Ranit -
How can I use create/createInsert for two different tables
Hi All,
I am showing different fields in the UI from different tables. I am able to fetch the data from all the tables and able to modify and save the data.
Now, the problem when I want to create/insert some data into those columns(from different tables) I am facing issues.
How can I proceed further??Hi Shay,
Thank you very much for your quick response.
Actually I am totally new in ADF world and I am trying to implement some applications in ADF.
I created an UI based on some 3 tables(there is foreign key relation between them) and some other tables. I am able to modify and save my application if there is any data in all the tables.
My Actual issues are
1) I removed all the data from the tables. There is a submit(CreateInsert) button, what I expected is on click of the button I should see all the fields in editable mode. But I was able to see only few fields and also in readonly mode. So here my issue is how can i create and save these data.
2) Consider on my landing page I have just CommandLink/CommandButton. After clicking that page I should get the above screen in create mode(I mean to say all fields in editable mode). How can achieve this?
Thanks & Regards,
Ravi. -
How do i group the columns of a table for a given row?
Hi,
I have a situation where i need to display a table that has a column for every day of a given period of time. But the first two rows of the table should be grouped in such a way that each cell of the first row covers the seven columns of the rows below. how do i accomplish this in web dynpro abap table controls?Hi,
Dynamic TABLE UI element generation and internal table
Re: Dynamic Tables and UI
Re: Dynamic Programing
Regards,
Lekha.
Maybe you are looking for
-
How to connect my apple account to iTunes without having credit card
how can i connect my apple account to ituens without using the credit card? I want to download free apps to my computer but i can't. because i don't have a account for app store. please help me out!
-
XML Report Issue while generating the Report in EXCEL
Hi All, I have Created the XML Report which will generate the output in EXCEL format. I am having the issue with the report output in EXCEL. In my Case, If I ran the concurrent it got completed normally and the output got completed normally and the o
-
SOAP 1.2 & PI 7.0
Hi gurus, I have read: http://www.w3.org/Submission/wsdl11soap12/ http://schemas.xmlsoap.org/wsdl/soap12/wsdl11soap12.xsd /people/kevin.liu/blog/2006/04/12/wsdl-11-binding-extension-for-soap-12 These links show like implementing SOAP 1.2 with of WSDL
-
Exporting column and table comments
I need to be able to create an external "data dictionary" to show to database users. I am currently exporting to a reporting schema, and then writing SQL against the reporting schema to get table, column, datatype, etc... information. I also need to
-
HT4623 After upgrading to 6.1 the bluetooth will not pair.
I reset the iphone 5 because the weather was not updating. It erased the previous bluetooth pairings and now it gives an pairing unsuccesful on the Jabra and the Bose headset. When I tried to back up the iphone to the MacBook, it also gave me an erro