need a field based on the comparison of the other fields
Generator 6.0.8.11.3ORACLE Server Release 8.0.6.0.0
6.0.8.11.0 Oracle procedure Builder
Oracle ORACLE PL/SQL V8.0.6.0.0 - Production
The basic Oracle 4.0.6.0.0 - Production version
Oracle Tools Integration Services 6.0.8.10.2
Space common tools Oracle 6.0.5.32.1
Oracle Toolkit 2 for 32-bit Windows 6.0.5.35.0 platforms
Resource store 6.0.5.0.1
Oracle Help 6.0.5.35.0
Oracle Sqlmgr 6.0.8.11.3
Query Oracle 6.0.7.0.0 - Production Designer
PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
Oracle 6.0.8.11.3 ZRC
Oracle Express 6.0.8.3.5
Oracle XML Parser 1.0.2.1.0 Production
Virtual graphics system Oracle 6.0.5.35.0
Image of Oracle 6.0.5.34.0
Widget media Oracle 6.0.5.34.0
Oracle tools GUI Utilities 6.0.5.35.0
IAM, saw the presentation of the State as below
-- M_6
-- M_10
-- B_13
-- F_94
-- M_FOR_REP1
-- R_SALESMAN
-- M_39
-- B_74
-- F_113
-- M_7
-- B_33
-- F_2
-- M_CUSTOMER
-- R_CUSTOMER
-- F_98
-- M_GNAME
-- R_5
-- M_12
-- F_41
Above is my complete schema of my report how she look like(B_33) Sales men: F_2
F_2 lists all sellers. (david, george... so on)
F_98 lists all the categories of products (furniture, cars... so on)
Lists of F_41 amount of special category
F_113 lists the sum of F_41.
The parameters I pass is:
Date: 1 Aug 11
Updated: 31 Aug 11
Company code: 110
Orgn name: OR dodine
Type of sale:
Sellers of: DAVID FOO
Sellers to: DAVID FOO
Customer of:
Customer to:
Year of the Date: June 1, 11
Year to date: 31 Aug 11
Report in detail: Yes
And the output of my report is
Item Type ProductFamily Quantity Sales
(MYR)
------------- --------- ------- ---------
Sales Men : DAVID FOO
01FN
01FN
FNDM
FNUM
NEW CASA [BROWN (CS5839)]
CELLINI LEATHER [BEIGE FL35A]
CELLINI LEATHER [BLACK FL 10B]
21,585.50
I need a field more and the result should like to compare F_2, F - 98, F_41For each salesman(F-2) it will be of a different category (F_98), I need to add the quantity (F_41) for all of the same type.
as
Customer : David
Sales men : Thomas
Furniture 100
Automotives 50
Textiles 20
Mobiles 10
Sales men : Daniel
Furniture 30
Textiles 10
Ship 20
Customer : George
Sales men : Thomas
Furniture 20
Mobiles 50
Sales men : Daniel
Furniture 10
Mobiles 20
{code }
result
Sellers: Thomas Daniel120 40 furniture
Automotive 50
20 10 textiles
60 20 mobile phones
Boat 20
Designates all the function of the category for each vendor for different clients should be added. Please explain to me how to place the extra field and write the logic for this. I'm trying to do this from last month that nobody gives a feedback appropriate, if you want to know something more about this let me know I will give you with the full flight of information.
Published by: user9093700 on March 12, 2012 01:08
your break is best for this nt
I think you can create a temporary table
the category of fields and quantity seller
Insert and update for each record with a formula or create a new sql query and maybe use a matrix to show as you want
Tags: Oracle Development
Similar Questions
-
MacBook pro work leave because of pulled and broken wire. I took out the hard drive. the hard drive has all my files that I wouldn't need to clear all of the other personal files?
It does not start to the top, screen and hardware ok except belt disconnected.
also can I sell adapter, brand new, never used. where can I sell?
Hi Wally, the hard disk OS X and all of your files. Get a case for your reader, and it backs up. Try OWC
Always keep your Mac backed up on an external drive with Time Machine or utility of cloning like SuperDuperor double clone.
Try eBay for the adapter.
-
Guys, I have a problem. So, my laptop has 2 graphics cards, an integrated course of the Intel HD graphics (which works perfectly) and the other being the dedicated Nvidia graphics (Nvidia GeForce 940 m). Until 2 days ago, everything was going well and running.
I have the application experience GeForce and it prompted me that there is a new driver update should I download. He started to install then after rebooting to complete the installation, it failed. I checked my device manager and saw a yellow exclamation under under my Nvidia graphics card (remember, my laptop has two graphics cards: Nvidia graphics card and Intel HD graphics that works correctly). I immediately checked the details, and he said:
"This device cannot find enough free resources that it can use. (Code 12) »
"If you want to use this device, you will need to disable one of the other devices on this system."
This seemed very strange, because it was LITERALLY working properly before I was invited about update driver I got, so I don't know what to do - as a matter of fact, literally, I finished this game, Deadpool, with my Nvidia card that I put as the default graphics card, a few hours before , so I don't know why this happened. Any help? I'm looking for a logical answer to this, guys!
Additional information:
A few days before this happened, I went to my store local pc and installed an extra 4 gigs of ram on my 4 existing to make 8. Don't know if it's useful, but anyway
If I pick up my laptop and shake it side by side, I hear a slight rattling noise, and it seems a little loose (I found this out after seeing the error message). The noise seems to come from just below the middle of my keyboard (I'm using a laptop). If for some reason, my Nvidia card is loose? Is this possible?
I am quite technologically inclined, but not to the extent of removing components and reconstruction cell phones / pc and access the bios and what not. I can only remove/add ram.
I want to know if its something I am able to fix it because I do not necessarily want to go running and sending my laptop places - only my pc up shop.
Here is the location of my Nvidia card: PCI Slot 4 (PCI bus 4, device 0, function 0)
My specs:
Acer TravelMate p257-MG
Windows 7 business
Intel core i5-5200u 2.20 GHz 2.20 Ghz processor
8.00 GB of ram
64-bit operating system
1 t hard drive
940 m Intel HD graphics 5500 & Nvidia Geforce card
Just to recap, I get the error on my Nvidia graphics card code, "this device cannot find enough free resources that it can use. (Code 12) ""If you want to use this device, you will need to disable one of the other devices on this system. »
Thanks in advance!
Hello
Thank you for your response.
I appreciate your time.
I suggest you run ' Intel Chipset Software Installation Utility ' and check.
Reference:
http://www.Intel.com/content/www/us/en/support/software/Chipset-Software/Intel-chipset-software-installation-utility.htmlPlease keep us updated.
Thank you
-
Calculate the percentage based on the other 2 columns column
I did 2 columns. These two columns are column_a = separate count of all documents and
column_b = separate count of the subset of records based on the specific condition.
I try to get column_3 = (column_b/column_a) * 100
These 2 columns comes from the same physical tables but two different logical tables (I have the condition where the different for each)
Result is correct (100) where column_a = column_b, but I get 0 when they are different
col_a, col_b %
8 7 0 why not 87.5
1 1 100
27 23 0 why not 85.2NP, any chance of some reputation points if this has been helpful?
Thank you -
In the form of table-update a column based on the other
Greetings,
I want to update a column based on the value of another column in a tabular presentation. What should I use? Calculation or validation process?
-VatsaYes, get rid of the update of "pims_component" - this is the cause of the error table mutation - and simply set
: new.state_ind: = Ls_state;
CITY
-
I trying me to computer sync a 3rd and when I looked at what I thought was the key to current synchronization and he came, I realized that the key I used was old and now does not match the other 2 computers. How can I delete the wrong computer key 3rd to enter the correct key?
Hello, on your computer 3 go in Firefox > options > synchronization and click on 'unlink this device' then you can configure it again with the correct credentials.
-
Need to be based on the values in a particular order
Hi, I have a list of data as (stored in random mode in the database)...
AA +.
AAA
AAA +.
AAA-
AA
A
A +.
A-
AA +.
BAN
Need to get the result as follows
AAA +.
AAA
AAA-
AA +.
AA
BAN
A +.
A
A-
Is there a sql query that I can try for this arrangement? Not sure if we can use regular expressions
Can anyone helpMaybe
order by lpad(translate(col,'A+-','A'),3,' ') desc, case substr(col,-1,1) when '+' then 1 when '-' then 3 else 2 end
Concerning
Etbin
-
Fill a field value based on the other field
I have two transient attributes on the AC... The vo is not built on all transient attributes on any eo
For the first I have empid lov
If an individual empid is selected then related this empid... his empname should be displayed in the second transient attribute
How can we achieve this?Hello
While the allocation of the lov to the first attribute of transitional if you lov also contains the empname as columns display or present VO from the lov.
just + add an attribute (2nd attribute) more in mapping lov.
for the attribute and the card to the 2nd empname.
Together the auto submit to true for the transitional first attribute
and the partial value of the id of the trigger of the second transitional attribute ID attribute transient 1 thte.Thank you
Sumit Yadav -
How could put editable report column as read only based on the other domain
Hello world
I'm new to APEX. I have a modifiable tabular report (SQL query). When I choose the column (which is a selection list) of a certain value, I want column B to be read-only (depending on the result of an another SQL described below). It doesn't seem to be a READ ONLY section in the type of tabular report where I could put my SQL condition.
In other words, "column B" must be read only based on SQL returning following true or Exists:
Thus, to determine if column B is ready only, I need the following logic:
SELECT 'x '.
of tab1
where key = (value of column A)
and the flag = "Y".
Any help would be greatly appreciated!
Thank you
FrançoisYou can only do so if your tabular presentation is a manually created. In this example, it shows how to set this property:
http://Apex.Oracle.com/pls/OTN/f?p=31517:170
You can use a case statement to set this property for specific lines.
SELECT empno, CASE WHEN ename LIKE 'A%' THEN apex_item.text (34, job, 80, 100, 'style="width:170px" readonly="readonly"', 'f34_' || '#ROWNUM#' ) ELSE apex_item.text (34, job, 80, 100, 'style="width:170px"', 'f34_' || '#ROWNUM#' ) END job FROM emp
Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
------------------------------------------------------------------- -
The second column must be more or less double first thant.
It's the definition of the form:
< af:panelFormLayout id = "pfl1" lines = '6' labelWidth = "120".
Binding = "#{backingBeanScope.detalleBB.pfl1}" >
two columns of fields is displayed.
The second column has several panelgrouplayout - horizontal with three different areas requiring a more horizontal space than the first column which are fields of inoputtext.
Currently the panelform gives the same horizontal space resulting in the packing in the second two-column and this conditioning is what I want to avoid.
Thank you in advance.
You plan to create another PanelFormLayout with a different width and put the two forms of panel inside a horizontal panel group presentation so that they compare side by side?
-
Conditional formatting based on the other content of the cell
Hello
I watched tutorials and read other messages of conditional formatting. What I'm trying to do doesn't seem like it should be too difficult, but I can't it to work.
I created a spreadsheet of travel and I would that my cells spend every day to highlight when I went on the budget (budget in another table on another sheet)
My conditional formatting looks like this
Who works for the first cell that I put it to the top for the table. If I try to drag the rules to the bottom of the table, or highlight the entire table and and my rule number 1 shows what
and of course, it will not highlight.
This is an excerpt from the table, on that I try to apply highlighting
And that is the picture that source information.
I use a macbook pro under OS X El Capitan 10.11.1 and numbers 3.6.1 (2566)
Thanks in advance for any help!
Hello
It's looks you're new to spreadsheets... you must add a dollar sign in front of "The rest of the budget per day" (your 1st image), or check the 2 boxes like this:
To understand: http://www.notjustnumbers.co.uk/2011/05/excel-tip-dollar-sign-in-formula-fixing. html
See you soon
James
-
You will need to change based on values in another article LOV...
Hi all
I got a mudbrick THAT LOV based on a value in another column. Let me explain... Assume that A value in the column is A1 then column B should show A11, A12, A13 and if column A is the value C cloumn B should show C11, C12... etc. The LOV will be static with some pre defined values. So all the LOVs will be defined in the forms. We just need to show based on the value in column A.
Please suggest.
Thank you.
Published by: Amit1cs on April 18, 2013 19:40Amit1cs wrote:
Hi allI got a mudbrick THAT LOV based on a value in another column. Let me explain... Assume that A value in the column is A1 then column B should show A11, A12, A13 and if column A is the value C cloumn B should show C11, C12... etc. The LOV will be static with some pre defined values. So all the LOVs will be defined in the forms. We just need to show based on the value in column A.
Please suggest.
Hello Amit,
Up to now, I understand, you can create several record group for a single LOV. before you display the lov just to change or assign the appropriate record group. You can use pre-text-element column B trigger and set the record group to your LOV.Hope this helps
Hamid
-
based on the constraints of layout with group in actionscript
Hello
I need a layout based on the constraints in Actionscript, this example works very well:
<s:Group width="100%" height="100%"> <s:layout> <s:FormItemLayout> <s:constraintRows> <s:ConstraintRow id="row1" /> <s:ConstraintRow id="row2"/> <s:ConstraintRow id="row3"/> </s:constraintRows> </s:FormItemLayout> </s:layout> <s:Label text="row1" bottom="row1:0" /> <s:Label text="row2" bottom="row2:0" /> <s:Label text="row3" bottom="row3:0"/> </s:Group>
but I can't make it work in ActionScrip:
var group:Group=new Group(); var form:FormItemLayout=new FormItemLayout(); var vec:Vector.<ConstraintRow> = new Vector.<ConstraintRow>(); var row:ConstraintRow=new ConstraintRow(); row.id="row1"; vec.push(row); row=new ConstraintRow(); row.id="row2"; vec.push(row); row=new ConstraintRow(); row.id="row3"; vec.push(row); form.constraintRows=vec; group.layout=form; var l:Label=new Label(); l.text="hello"; l.bottom="row1:0"; group.addElement(l); l=new Label(); l.text="hello"; l.bottom="row2:0"; group.addElement(l); l=new Label(); l.text="hello"; l.bottom="row3:0"; group.addElement(l); this.addElement(group);
I don't even see the labels with this code. what I am doing wrong?Thank you very much for your help!
Try to call "row.initialized (this.document,"rowName");" I had problems with ConstraintLayouts created in Actionscript and found that you must manually initialize ConstraintRows and ConstraintColumns to get them to work.
-
Delete records based on the foreign keys of oracle 11 g
I have a requirement to remove the records from the tables in the order according to
the existing foreign keys.
I for example, the following tables and the pk, fk constraints:
create table one
(aa number (1),)
descr varchar2 (20));
ALTER table one
Add constraint a_pk key (aa) primary;
create table b
(aa number (1),)
descr varchar2 (20));
ALTER table b
Add constraint b_pk key (aa) primary;
create table c
(aa number (1),)
descr varchar2 (20));
ALTER table c
Add constraint c_pk key (aa) primary;
create table a2
(aa number (2),)
id_aa number (1).
descr varchar2 (20));
ALTER table a2
Add constraint a2_pk key (aa) primary;
ALTER table a2
Add constraint a2_fk foreign key (id_aa)
references a (aa);
create table b2
(aa number (2),)
id_aa number (1).
descr varchar2 (20));
ALTER table b2
Add constraint b2_pk key (aa) primary;
ALTER table b2
Add constraint b2_fk foreign key (id_aa)
references b (aa);
create table z
(aa number (3),)
id_aa number (1).
id_bb number (1).
descr varchar (20));
ALTER table z
Add constraint z_pk key (aa) primary;
ALTER table z
Add constraint z_fk1 foreign key (id_aa)
references a (aa);
ALTER table z
Add constraint z_fk2 foreign key (id_bb)
references b (aa);
So, I want to choose the names of the tables in such an order so as
deleting records will succeed...
I built the following sql query (using the recursive subquery factoring):
[p]
with q (r_constraint_name, table_name, constraint_name, lvl) as
(select table_name, constraint_name, r_constraint_name 1 lvl
from user_constraints one
where a.constraint_type = 'P '.
Union of all the
Select b.table_name b.constraint_name, b.r_constraint_name, q.lvl + 1 lvl
from user_constraints b
Join q
on (q.constraint_name = b.r_constraint_name)
where b.constraint_type = 'R '.
)
Select f.table_name, f.constraint_name, f.r_constraint_name, f.lvl
q f
[/ p]
I want the results as the following list:
Table-name
----------------
B2
A2
Z
A
B
C
The table - B2, A2, Z - (in any order) must first referred in the list
because they are based on the other three tables - A, B, C. Thus, in order to remove the
A, B, C table records the B2, A2, table Z records must be beleted first.
The query I posted above has the problem that it displays tables A2, B2 twice
(1 because they have a pk and 2 because they have fk referring A, B relatively tables).
Is there a solution for this problem?
Note: I use db11g v2
I wrote not all relationships of tables user_constraints (only argument constraint_name = r_constraint_name)
Thank you
SIM
I have a requirement to remove the records from the tables in the order according to
the existing foreign keys.
. . .
The table - B2, A2, Z - (in any order) must first referred in the list
because they are based on the other three tables - A, B, C. Thus, in order to remove the
A, B, C table records the B2, A2, table Z records must be beleted first.
Is there a solution for this problem?
Yes - the 'solution' is to use ON DELETE CASCADE, as appropriate or write a procedure that removes tables in the proper order.
The solution is NOT to try to use dynamic sql statements to do so.
You already know the good parent/child relationships. Simply create a procedure that uses the correct order.
Analyses are necessary in any case to determine the proper order AND press the appropriate values to use to remove the appropriate lines
Your DDL for tables and constraints must be in a version control system
Update the procedure when / if new constraints or tables are added to the application
IMHO, you must use dynamic SQL NOT to try to adjust automatically if a new constraint appears. New constraints should not appear by accident - they appear ONLY as part of a well planned release.
-
I use a laptop HP Pavilion dv4-1220us with Windows Vista Home Premium Service Pack 1, a 64-bit operating system, and I have problems with Windows Update and Windows Installer. When I try to install programs, I get the following, or substantially similar message without the error code:
"Error 1719. The Windows Installer Service could not be accessed. This can occur if Windows Installer is not installed properly. Contact your support team. »
So I tried to download Windows Installer 4.5 and install it. When I try to start the installation, it always hangs on the first step, "Initializing Installation."
After searching for a solution to this problem, I found that Windows Update may have a solution. So I downloaded the 64 bit version and got a file named 'file Windows6. 0-KB942288-v2 - x 64. I tried to run this file. He opened a box that said, in order "Prepare for Installation", "Full Preparation", and finally "Searching for Updates ', before you open a second box, which reads" click OK to install the following Windows software update: fix for Windows (KB942288). I clicked on OK in this box, which opened another box, which says at the top "updates are installed" and in a smaller section, "initializing for Installation................... »
However, no matter how long it works, it never gets past "Setup initialization."... »
So I tried to run Windows Update in Control Panel. He ran for a while, before giving a message saying "to check the updates, you must first install an update for Windows Update." I clicked on the button that says "install now". He has flashed, a moment, "download and installation of updates' before you go to the"check for Updates"and then he brought back the exact same upward ' to check updates, you must first install an update for Windows Update" message as before. I clicked install now once again, only to go into the exact same loop. After about four times in a loop, I gave up on it.
So I tried to install Windows Installer 3.1v2, which took a while before saying "not enough memory is available to process this command." and the abandonment of the installation.
So, I tried to download a program from 'Mr. Fix - it' of Microsoft. It downloaded fine and then failed on installation, because of the same Setup error I received initially.
Finally, I tried to restart my computer and each solution is represented. Then I clean my computer and each solution is represented.
In conclusion, the mistakes that I have in Windows Update and Windows Installer cordoned off each other, as the mistakes of each program are based on the other program to be repaired. I'm at my wit's end here. My computer works fine without one, except that I can't install new programs. I can access the internet fine, access files fine, all my scans have developed own... I don't really know what is happening. Can someone help me with this?
Try the sfc scan:
http://support.Microsoft.com/kb/936212If not, repair of Vista:
http://www.Vistax64.com/tutorials/88236-repair-install-Vista.html
Maybe you are looking for
-
I have a plugin for my Wordpress site and its request for a Skype URL? Im not sure what it is a fortiori when the mine is or what that would be. Can someone help me with this please?
-
The cause of the problem firmware update?
Hello I did a update firmware a couple of days to my router WRT54G2 and had no problem with the update process. All my devices that use this router WIFI signal work fine except one. The device that does not like it was before the update of the firmwa
-
virus adware:win32 / open candy
I tried security security scan full scan no luck couldn't remove just gave me the name how to remove he had two infected slow computer files won't let not my security work or anything like that right can you help me please with losing all my files pl
-
force the aero theme when the unsupported application is running?
is it possible to force the aero theme when an unhandled program is running? for example, 3ds max 2008.by which I mean not supported with the Visual elements of vista! for those who want the truth revealed open their hearts and their secrets unseal r
-
Media Player does not open the .wmv files
I have a laptop HP with Windows 7 software. My Media Player not open .wmv files. I tried Microsoft FixIt tne failed. What should I try next?