followed by the name of the column that is changed
HelloHow can I track the following information on a table
I have the name of table tab1, that's like that
--------------------------
col1 col2
-------------------------
1 2
Now if I change the value of col1 by a trigger I can follow the value of change, but how can I track the name of the column
say in the table tab2 I am tracking the results
changed_col_name changed_val prev_val
--------------------------------------------------------------
now changed val and prevval can be followed by trigger, but in the column changed_col_name how can I follow the name of the column to which I changed?
Thanks in advance
It's a pain to dynamically manage the column in a trigger.
Below is a similar thread from a few days ago:
In triggering dynamic column names
Nicolas.
Tags: Database
Similar Questions
-
The column that does not match when comparing two records
Hi all
We try to compare two tables and find the differences. So if two records (1 of each table) have same PK but not always matching because of some columns, then we would display this columnname. For example:
Table 1
PK Parent Child Property1 Property2 1 A A1 P1 PR1 2 B B1 P2 oraPR2 3 C C1 P3 SRP Table 2
PK Parent Child Property1 Property2 1 A A1 P1 PR1 2 B B1 P2 PR2 3 C C1 P3 PR4 In the above example when I compare 2 tables all matches except Property2 online n ° 3. Thus, we would like to get an output like:
PK Column_Mismatch 3 Property2 (this must be the name of the column that does not match) Appreciate the help.
Thank you
Andy
Hi, Andy.
Andy1484 wrote:
Hi all
We try to compare two tables and find the differences. So if two records (1 of each table) have same PK but not always matching because of some columns, then we would display this columnname. For example:
Table 1
PK Parent Child Property1 Property2 1 A A1 P1 PR1 2 B B1 P2 oraPR2 3 C C1 P3 PR3 Table 2
PK Parent Child Property1 Property2 1 A A1 P1 PR1 2 B B1 P2 PR2 3 C C1 P3 PR4 In the above example when I compare 2 tables all matches except Property2 online n ° 3. Thus, we would like to get an output like:
PK Column_Mismatch 3 Property2 (this must be the name of the column that does not match) Appreciate the help.
Thank you
Andy
Why you don't want no matter what exit for pk = 2? Property2 does not correspond either to pk.
What happens if the 2 columns (or more) do not match? The following query would produce a list delimited, such as ' parents; PROPERTY2 '.
WITH got_mismatch AS
(
SELECT pk
, CASE WHEN t1.parent <> t2.parent THEN '; PARENT' END
|| CASE WHEN t1.child <> t2.child THEN '; CHILD ' END
|| CASE WHEN t1.properry1 <> t2.property1 THEN '; PROPERTY1 ' END
|| CASE WHEN t1.properry2 <> t2.property2 THEN '; PROPERTY2 ' END
AS the offset
FROM table_1 t1
JOIN table_2 t2 ON t2.pk = t1.pk
)
SELECT pk
, SUBSTR (incompatibility, 3) AS column_mismatch
OF got_mismatch
WHERE mismatch IS NOT NULL
;
If you would care to post CREATE TABLE and INSERT statements for your sample data, and then I could test this.
The query above does not count NULL values as inadequate. If you want that, the same basic approach will work, but you can use DECODE instead of <> to compare columns.
What happens if a pk exist in a table, but not the other? You want an outer join, where I used an inner join above.
-
Find the columns that are partitioned.
Hello guys,.
use views DBA_TAB_PARTITIONS, USER_TAB_PARTITIONS, ALL_TAB_PARTITIONS, we can find what are the partition names, number of rows in each partition etc. How we can find on the columns that are partitioned. I tried, but couldn't. help please.user_part_key_columns
-
APEX do not allow to change the lines of the columns that are the primary key?
I have pictures:
http://img508.imageshack.us/my.php?image=21269582oe8.jpg
Book (id_book - 'Primary key', title, year); book_author (id_author id_book - 'Primary key', - 'Primary key'); author (id_author - "Primary key", name)
I created a new page-> Form-> form of 'author' table because I want to add new authors, modification and deletion. During the creation of this page, I have chosen column 'id_author' as '1 primary key column' and everything is OK (I can't edit the 'id_author' column - this column is autoincrement and I can change the 'name' column).
BUT I also created a new page-> Form-> table for table "book_author" because I like to write numbers like id_book and id_author, change and remove them (so add relations between tables: book, book_author and author). During the creation of this page, I have chosen column 'id_book' as '1 primary key column' and 'id_author' as 'column primary key 2'. And on the Web site, I can't edit these fields. And I can not add also new line because I see in each new line: (null).
http://img444.imageshack.us/my.php?image=11324615yk9.jpg
APEX do not allow to change the lines of the columns that are the primary key? It's stupid... What can I do?
Edited by: user10731158 2008-12-20 11:40Column unique and not meaningful if you ever want to update. In the case of your example, you need to add an ID column in the intersection of book_author table. Honestly, I was so blown away (and pleasantly surprised) by the absence of rebuttal and the "thx" I advanced and set up an example of how I would define the book_author table:
create table book_author (id varchar2(32), book_id varchar2(32), author_id varchar2(32), modified_on date, modified_by varchar2(255), constraint book_author_pk primary key (id), constraint book_auth_book_fk foreign key (book_id) references books(id), constraint book_auth_author_fk foreign key (author_id) references authors(id) ) / create unique index book_author_uq on book_author (book_id,author_id) / create or replace trigger biu_book_author before insert or update on book_author for each row begin if inserting then :new.id := sys_guid(); end if; modified_on := sysdate; modified_by := nvl(v('APP_USER'),user); end; /
Good luck
Tyler -
OK, I make playlists for radio broadcast. I need to change the columns shown, and it has always been easy. The playlist I created just has a different view, and there seems to be no way for me to change the columns that are visible. Any ideas?
Click Show main menu, and then click Show the Options. You can select the columns that you want or do not want to here.
See you soon,.
GB
-
The user can only download the columns that I choose?
Hey, guys:
Is that possible I put somewhere in the APEX so that the user can download only the columns that I choose instead of all the columns in the report, that this user can see, like some columns of links that directs the detailed individual pages? It makes no sense for the user to see these columns in a CSV file.
Thank you.
Sam
Published by: lxiscas on May 20, 2013 14:24
Published by: lxiscas on May 20, 2013 14:26lxiscas wrote:
Is that possible I put somewhere in the APEX so that the user can download only the columns that I choose instead of all the columns in the report, that this user can see, like some columns of links that directs the detailed individual pages? It makes no sense for the user to see these columns in a CSV file.
For standard reports, use the property to include export in the column definition.
To view interactive reports + {message identifier: = 10556630} +.
* When it comes to 'reports' always make it clear if you use a standard or interactive report.
-
See the settings that will change after Oracle restart
Hi all
Oracle 11g
Linux
My current SGA is 700M.
If I give you:
SQL > alter system set sga_max_size = 2G scope = spfile;
Modified system.
SQL > alter system set sga_target = 2G scope = spfile;
Modified system.
After that, I won't have to restart the database. But, now, I type "CMS show", that is to show 700M.
My question is: How can I see the values of the parameters that will change after the instance is restarted? Thank you
Select *.
v $ spparameter
less
Select *.
the parameter $ v
See V$ SPPARAMETER
--------
Sybrand Bakker
Senior Oracle DBA
-
Audit/etc for the files that have changed
In a typical "NIX environment, if I wanted to find any file changed in the last 3 days, I would use:"
find/etc - mtime 3
Does anyone know if the search ESXi5.0 option supports this option 'find '?
Thanks in advance.
At least 5.1 ESXi, you could use
find/etc - mtime-3
to see the files that have changed in the last three days for example.
-
Is it possible to make a reflection of the image that will change with the image?
I believe that a dynamic object will solve your problem.
Place your original image to a new file as a smart object and do the same for reflection (made by processing, reducing the opacity and introduce a slight blur horizontal) on its own layer, then:
by double clicking on the smart object in the layers panel and return to the original image, any change in the original and save, automatically update the vertical image and its reflection.
-
Table with list of value to load on another value of the column that is never changed by the user
Nice day!
I work with JDeveloper 11.1.2.4.
I have a Table of the ADF that has 4 lines. Each row has a column with a unique value. The plan should include a LOV column in the row show a different list of values based on a single column value. I have install the list of values, use a display with a variable binding criterion. When you create the data LOV source, I Specifies the name of a single column for the value of the bind variable. However, it seems that the LOV changes none selecting different lines.
Is there a good way to handle this? I did LOVs of person in charge in the past, but this isn't quite the same as the user can view only the value that depends on the LOV on.
Any suggestions are greatly appreciated!
BradWHey, it's always a case of use of the dependent list of values. If the attribute that you bind the bind variable view criteria at part of the view object then the value LOV to be examined accordingly. I did a quick test case and I see my lists filtered by an attribute in line (I used the HR schema and posted employees as candidates managerId. The employee list is filtered so that it only shows the employees in the same Department that the employee I want to put a new managerId on) Frank
-
Trouble with the pivot and the columns that contain numbers/spaces
Hello
I have trouble with the pivot statement.
How could I do this just for columns that are numbers?
How could I do this just for columns that contain spaces?
Can someone please help?
based on the documentation of Carsten Czarski
http://SQL-PLSQL-de.blogspot.com/2007/08/kreuztabellen-in-Oracle11g-SQL-pivot.html
essentially to help:
--------------------
Select deptno, sum (clerk), sum (salesman), sum (manager)
of (emp) pivot
Sum (SAL) of EMPLOYMENT
in ("CLERK" as a 'CLERK', 'SELLER' as 'SELLER', 'MANAGER' as 'MANAGER')
)
Deptno group
--------------------
DEPTNO SUM (CLERK) SUM (SALESMAN) SUM (MANAGER)
---------- ---------- ------------- ------------
30 950 5600 2850
20 1900 2975
10-1300-2450
I tried to run at my own table:
NAME MONAT WERT
-------------------------------------------------- ---------- ----------
5 Antarctica 404,84
Asia 7 106,41
Oceana 2 456,96
4 the Europe 426,23
9 Antarctic 537,56
Europe 9 832,58
The South America 12 662,41
Europe 4 422,27
America of the North 7 312,19
America of the North 10 148,92
10 selected lines.
But running:
--------------------
SELECT name, sum (1), sum (2), sum (3), sum (4), sum (5), sum (6), sum (7), sum (8), sum (9), sum (10), sum (11), sum (12)
(pivot) apex_wksp.demo_pivot2
Sum (Wert) for monat
in ('1 ', '2', ' 3', '4 ', '5', '6', '7',' 8 ', ' 9',' 10', ' 11 ', ' 12')
)
Group by name
;
--------------------
led to:
Antarctica 1 2 3 4 5 6 7 8 9 10 11 12
North America 1 2 3 4 5 6 7 8 9 10 11 12
Oceana 1 2 3 4 5 6 7 8 9 10 11 12
The South America 1 2 3 4 5 6 7 8 9 10 11 12
Europe 1 2 3 4 5 6 7 8 9 10 11 12
Asia 1 2 3 4 5 6 7 8 9 10 11 12
6 selected lines.
not quite what I expected.
In addition,
--------------------
Select monat, sum (Antarctica), sum (North America), sum (Oceana), sum (South America), sum (Europe), sum (Asia)
(pivot) apex_wksp.demo_pivot2
Sum (Wert) name
("Antarctic", "North America", "Oceana", "South America", "Europe", "Asia")
)
Group by name
;
---------------------
ORA 907 results
I know what the problem is - but how do I do it right?
using double quotes or replace (ing) space with just underscores seems to garble sql for the unreadable.
Help, please.
Thanks in advance,
Michael WeinbergerAttention to the rotated default column alias:
SQL> with demo_pivot2 as ( 2 select 'Antarctica' name,5 monat,404.84 wert from dual union all 3 select 'Asia',7,106.41 from dual union all 4 select 'Oceana',2,456.96 from dual union all 5 select 'Europe',4,426.23 from dual union all 6 select 'Antarctica',9,537.56 from dual union all 7 select 'Europe',9,832.58 from dual union all 8 select 'South America',12,662.41 from dual union all 9 select 'Europe',4,422.27 from dual union all 10 select 'North America',7,312.19 from dual union all 11 select 'North America',10,148.92 from dual 12 ) 13 select name, sum("'1'"),sum("'2'"),sum("'3'"),sum("'4'"),sum("'5'"),sum("'6'"),sum("'7'"),sum("'8'"),sum("'9'"),sum("'10'"),sum("'11'"),sum("'12'") 14 from demo_pivot2 PIVOT ( 15 sum(wert) for monat 16 in ('1','2','3','4','5','6','7','8','9','10','11','12') 17 ) 18 group by name 19 ; NAME SUM("'1'") SUM("'2'") SUM("'3'") SUM("'4'") SUM("'5'") SUM("'6'") SUM("'7'") SUM("'8'") SUM("'9'") SUM("'10'") SUM("'11'") SUM("'12'") ------------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------- ----------- ----------- Antarctica 404.84 537.56 North America 312.19 148.92 Oceana 456.96 South America 662.41 Europe 848.5 832.58 Asia 106.41 6 rows selected. SQL>
SY.
-
Windows Media Player - change the columns that appear under 'Now Playing'
I would like to change the columns displayed in the views now play and Windows Media Player play list. The factory default is to show only the fields title and length. It wouldn't be that big a deal this is something fairly simple to access the page layout options, hit choose columns and select the check boxes for the columns I want to show... but the title and duration are the only fields that it allows me to select from. He still refuses to allow me to select anything else. I know that there is a way to display more information, but for the life of me I don't remember how to do so that he can do. Help?
Hey,.
I've recreated the scenario on my Windows Media Player. It shows all the info like length, side, title, album, artist to contribute. Appoint you.
Scan SFC should be your friend.
-
the system restore program is activated.
A restore point is selected. program is activated.
It runs and after system restart, it is said that no changes have been made, run another restore point.
Same results every time!
Help!
Hi larryburrage,
1. did you of recent changes on the computer?
2 when was the last time it was working fine?
3 do you have Norton installed on the computer security software?
If you use Norton Security software on the computer then refer to the article below and check if it helps.
http://Service1.Symantec.com/support/sharedtech.nsf/pfdocs/2005113009323013
If you don't use security software Norton then temporary deactivation of security software installed on the computer and check if it helps.
Important: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you do not disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network during the time that your antivirus software is disabled, your computer is vulnerable to attacks.
-
Filter-stupid question - how to filter on ONLY the images that have changes?
I'm looking to filter images that have been changed since the import. The change could be in lightroom, or external. I have a setup of filter for external files, but I can't find out what filter to use to display files that have been modified within lightroom.
I hope that my request is logical. I find I have more changes in Lightroom (3.5) these days and want to filter (without setting of flags/stars/colors /...) on the images that I've already changed. Is this possible?
Thank you
Chris
You can restrict the results of the smart collection 'A adjustments' to just a single folder. First, click on the smart collection ' adjustments ', and then Ctrl-click (command-click on Mac) on the folder you want. The results will be only photos in the folder with settings.
-
Records on the page "organize bookmarks" show only icons - names of bookmarks disappeared. Impossible to tell what bookkmarks they are. How to restore the names that were once next icons?
You can place the mouse pointer on the border between the left and right panes and drag the border with the left mouse button to the right to this wider left pane.
If this does not work or stay after you restart Firefox, then see:
Maybe you are looking for
-
Cannot connect I have these errors 4013 also 21 and -18 can not enter in the parameters. Only had the phone a few hours? any ideas? Mark
-
No sound with Qosmio G30 (PQG32E) on Windows 7 32 bit
Hello I installed Windows 7 32 bit Ultimate Edition on Qosmio G30 HD-DVD (PQG32E) without any problems and all the drivers are installed but the sound does not work. Can you help me? Best regards Waiken
-
How the strange names and addresses appearing on my address list?
I just noticed 6 different names and addresses of electronic mail on my address book that I did not put there. It is relative, and I would like to know how they got there and how to remove.
-
aspirezs600 crystal eye webcam is very dark
Web cam very dark, lights up immediately, is their a control for cams adjust how to solve, using windows 10
-
HP PAVILION 2555NR G6: DECOMMISSIONING A PAVILION G6 2225NR TO WINDOWS 7 HELP!
Im trying to downgrade to windows 7 and I installed windows but Im missing a bunch of drivers including Ethernet controller Network controller PCI device SM Bus controller USB controller USB controller Unknown device His mink running AMD 32 bit windo