FGA and 'before the value.
Hello
preparation for my OCP I reached the audit chapter.
As far as I understand it FGA does'nt store the contents of 'before' the value changed, right?
If I need to do, that meens, I write triggers, I guess.
This brings me to another question to you guys working on the front:
If I have as long as a DB administrator write triggers on the tables of a written request by a company 3, is this correct?
I would feel a little uncertain, wether I can "fool around" with ther objects.
Concerning
Christian
Yes, see the section "when the triggers are necessary ' week 10: Oracle Database 10 g features Top 20 DBA
Do not know what is a '3' company, but I would like to know if anyone had wrong with my items. If you mean a third-party application provider, some are very particular stuff, possibly cancelling the contracts supported. Others are happy to wash their hands of it.
Tags: Database
Similar Questions
-
Search and replace values in the text field before the values are stored in DB
Hello
There is a question - answer and text box text field - in my application. Problem is, some of the answers are stored with the apostrophes to the DB and I have a problem while recovering in the DB. I need to replace the single quotes 1 with 2 apostrophes. The values are stored in the DB when you click on the submit button.
So, I'm using the following javascript code:
italics
< script type = "text/javascript" >
function test().
{
var str = "& P2_S1.";
document. Write (Escape (STR));
}
< /script >
italics
I need to call this javascript function, when the user clicks on the button submit, but BEFORE the values are stored in the DB. How can I get this done?
Please let me know.Hi Suzi,
Just use
begin update test set S1=replace(:P2_S1, '''', '''''') where name=:APP_USER; end;
as you did in your SELECT statement.
But I shake also why you want to do? Where do you have problems with the apostrophe?
Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins -
How do I click on a cell in a table control and display the value in a string?
What I want to do is click on a cell in a table control and have the value of the cell in an indicator of the chain. Cell that ever I click on, I wish that the value to be displayed in the indicator.
Thank you!
Use the property "Change Position".
-
Hello
How acquire and store the values of voltage DAQmx?
I tried several code example, but they can't get the chart. I don't want to chart. I want to measure exactly the analog voltage values and record these values - as an excel chart, that contains the selected channels and voltage values.
What the example code that I can use?
My hardware is NI PCI-6251.
Thank you very much.
-
Update and change the values when VI is running
Hello everyone! I have a digital control slider and I want to be able to change and update the value when Vi is running. Can I use the property for this node?
If it is a CONTROL (no), then it is for the user to set the value via mouse / keyboard.
You can still set the value via the NŒUD of PROPERTY or the LOCAL VARIABLE for ALL controls.
What difficulty do you observe?
-
Ring control output is the name of the item and not the value
Hello. I'm new to Labview. I'm experimenting with labview and create just simple VI to learn more about the software. I placed a control of the ring and attached an indicator to this control of the ring. I found that the object of a control ring to select an element and an output value. For example, I placed 3 items in the properties of the ring (red, blue, yellow) and given the value of these items 1,2,3. But when I run the VI and select blue, I was expecting the indicator attached to the control to read 2, but on the contrary, he says 'Blue' (even for other items). What I'm misunderstanding here or to hurt? I've also attached a screenshot.
Your meter is another ring that has the same pair name / value, so it's going to see the name associated with the value. Remove the ring indicator and just drag in an ordinary digital indicator. Then, it will show you the value.
-
Get and set the value to allow selected rolling Shuffle and facing page
Hello world
I work with the page and spread,
For now, I want to value page spead shuffle and type of document.
but I just find the function to get and set the value for the Document Pages allow Shuffle using the
InterfacePtr < IPageLayoutPrefs > iPageLayoutPrefs (static_cast < IPageLayoutPrefs * > (: QueryPreferences (IID_IPAGELAYOUTPREFERENCES, iDocument)))
It has no function to set and get the value of enable selected rolling Shuffle and facing page
No one knows about it?
I thank in advance
There is no code for this example in the SDK or internet. Just understand and apply the concept.
Find the code for the shuffle spread and together following spread shuffle...
// Get active spread UIDRef GetActiveSpread() { UIDRef spreadRef = UIDRef::gNull; InterfacePtr
layoutData(Utils ()->QueryFrontLayoutData()); if(layoutData) { spreadRef = layoutData->GetSpreadRef(); } return spreadRef; } // Get spread shuffle of passed in spread bool16 GetSpreadShuffle(UIDRef& spreadRef) { InterfacePtr spread(spreadRef, UseDefaultIID()); if(!spread) return kFalse; InterfacePtr iBoolData(spread, IID_IISLANDSPREAD); if(iBoolData) { return iBoolData->GetBool(); } return kFalse; } // Set spread shuffle of passed in spread // @param bValue: kTrue = no shuffle, kFalse = allow shuffle ErrorCode SetSpreadShuffle(UIDRef spreadRef, bool16 bValue) { ErrorCode status = kFailure; InterfacePtr spreadCmd(CmdUtils::CreateCommand(kSetIslandSpreadCmdBoss)); if(!spreadCmd) return status; spreadCmd->SetItemList(UIDList(spreadRef)); InterfacePtr iBoolData(spreadCmd, UseDefaultIID()); if(iBoolData) { iBoolData->Set(bValue); } status = CmdUtils::ProcessCommand(spreadCmd); return status; } -
update line and reset the value of the column
I have table (CORS_MTR) with 3 columns...
SEQ ID of the EPR the ID of the child / / desc 100 22 1 one 101 22 2 two new entry as 1 number , that means change the flow of child #
102 22 3 three When I enter the new line in number of children 1 instead of 2 and then the values of the column (child id, desc) another need to be reset as...
SEQ ID of the EPR the ID of the child / / desc 100 22 2 two 101 22 1 one 102 22 3 three 103 22 4 four SEQ PRT_ID CHILD_ID DESC_ 100 22 1 one 101 22 2 two 102 22 3 three declare
number of p_seq: = 103;
number of p_prt_id: = 22;
number of p_child_id: = 1;
p_desc varchar2 (25): = 'a ';
Start
Update cors_mtr
set seq = case when child_id = p_child_id
then seq + 1
other seq - 1
end
where prt_id = p_prt_id
and child_id (p_child_id, p_child_id + 1);
insert into cors_mtr (seq, prt_id)
values(p_seq,p_prt_id);
Update cors_mtr
Set child_id = (select max (child_id) + 1 of the cors_mtr).
desc_ = (select to_char (to_date (max (child_id) + 1, 'J'), 'jsp') of cors_mtr)
where child_id is null.
end;
SEQ PRT_ID CHILD_ID DESC_ 100 22 2 two 101 22 1 one 102 22 3 three 103 22 4 four Concerning
Etbin
-
Store an encrypted digital value and that the value isn't encrypted visible only some users in Apex
I'm looking for a way to store a value digital encypted in a field in a table (so that it appears encrypted even for a DBA) and display the value of unencypted in the forms of the Apex and interactive reports for some users, but not others.Suggestions as to how I might do this?
Thanks in advance.
Martin
Try these documents:
Using masking to columns to display sensitive columns as NULL values
Using VPD in an APEX Application
Securing data stored using Transparent data encryption
The features you want are characteristic of the database.
You can use DBMS_CRYPTO for encryption of data instead of transparent data encryption, but you will need to create a package for your insert, update, delete and a view that allows the decryption based on v('APP_USER').
Also, you will not be able to search on this column if you are using DBMS_CRYPTO.
-
How to have an Oracle procedure send and receive the value of a java program.
The procedure below is the place within a package. This "get_extract_ready_headers" procedure to select the columns store_number, terminal_number, tran_number, tran_date, cust_id in the REX_HEAD_EXTRACT of source table. This information is selected in a ref cursor The data were field cust_id which is encrypted. How can I change the get_extract_ready_headers procedure and accomplish 2 things?
1. make this procedure the "cust_id" reading the table source and send the value of a Java program "getheaderinfo" (this java program decrypts the cust_id field).
2. when we get the value unencrypted to the Java program, make the procedure to accept this decrypted value and use it to update the CUST_ID to the table TRAN_HEAD table value target. I use Oracle 11.2.0.2 and TOAD 10.5.1.3.
-The code of procedure
-Table Structure for the table source REX_HEAD_EXTRACTPROCEDURE get_extract_ready_headers (p_records OUT SYS_REFCURSOR) IS BEGIN OPEN p_records FOR SELECT store_number, terminal_number, tran_number, tran_date, cust_id FROM REX_HEAD_EXTRACT; END;
-Create table DDL for the target TRAN_HEAD tableCREATE TABLE REX_HEAD_EXTRACT ( REX_SEQ_NBR NUMBER(20), REVISION_NUMBER NUMBER, DAY NUMBER(3), RESA_TRAN_SEQ_NO NUMBER(20), BUSINESS_DATE DATE, TRAN_SEQ_NBR NUMBER(12), ORG_NUMBER NUMBER, STORE_NUMBER NUMBER, TRAN_DATE DATE, TERMINAL_NUMBER NUMBER, TRAN_NUMBER NUMBER, TRAN_TIME DATE, BATCH_NUMBER VARCHAR2(8 BYTE), BATCH_TYPE VARCHAR2(4 BYTE), TRAN_TYPE VARCHAR2(4 BYTE), SUB_TRAN_TYPE VARCHAR2(4 BYTE), CLERK_CODE VARCHAR2(15 BYTE), TRAN_TAXABLE_AMOUNT NUMBER(12,2), TRAN_TAX_TOTAL NUMBER(12,2), TRAN_GROSS_TOTAL NUMBER(12,2), COUP_TOTAL NUMBER(9,2), MKD_TOTAL NUMBER(9,2), EMPLOYEE_NUMBER VARCHAR2(15 BYTE), EMPLOYEE_NAME VARCHAR2(40 BYTE), TRAN_ALTTAXABLE_AMOUNT NUMBER(12,2), TRAN_ALTTAX_TOTAL NUMBER(12,2), SALE_AMOUNT NUMBER(9,2), RETURN_AMOUNT NUMBER(9,2), RETURNED_AMOUNT NUMBER(9,2), NETCASH NUMBER(12,2), TENDER_CODE VARCHAR2(4 BYTE), MULT_RCPT VARCHAR2(1 BYTE), SPLIT_TENDER VARCHAR2(1 BYTE), RTN_WITH_PURCHASE VARCHAR2(1 BYTE), RTN_WITH_RCPT VARCHAR2(1 BYTE), REASON_CODE VARCHAR2(4 BYTE), PASSWORD VARCHAR2(10 BYTE), RINGTIME DATE, CUST_NUMBER VARCHAR2(12 BYTE), CUST_ID VARCHAR2(50 BYTE), ZIP_CODE NUMBER, POSTAL_CODE VARCHAR2(9 BYTE), PV_TIME_LAPSE NUMBER, ORIG_STORE_NBR NUMBER, ORIG_TRAN_DATE DATE, ORIG_TRAN_TYPE VARCHAR2(4 BYTE), ORIG_TERM_NBR NUMBER, ORIG_TRAN_NBR NUMBER, ORIG_SALE_AMT NUMBER(12,2), ORIG_TENDER_CODE VARCHAR2(4 BYTE), ORIG_CLERK_CODE VARCHAR2(15 BYTE), PREV_TRAN_TYPE VARCHAR2(4 BYTE), PREV_SUB_TRAN_TYPE VARCHAR2(4 BYTE), GIFT_REGISTRY_ID VARCHAR2(25 BYTE), NO_OF_ITEMS NUMBER, TAX_EXEMPT_ID VARCHAR2(18 BYTE), TRAN_RINGTIME NUMBER, AUDITED VARCHAR2(1 BYTE), BATCH_VERSION NUMBER(9,2), BATCH_SOURCE VARCHAR2(5 BYTE), CREATE_DATE DATE, CREATE_ID VARCHAR2(32 BYTE), CREATE_PROC VARCHAR2(32 BYTE), MOD_DATE DATE, MOD_ID VARCHAR2(32 BYTE), MOD_PROC VARCHAR2(32 BYTE), TERMINAL_GROUP NUMBER, USER_DEF_1 NUMBER, USER_DEF_2 NUMBER, USER_DEF_3 NUMBER, USER_DEF_4 NUMBER(12,2), USER_DEF_5 NUMBER(12,2), USER_DEF_6 NUMBER(12,2), USER_DEF_7 VARCHAR2(50 BYTE), USER_DEF_8 VARCHAR2(50 BYTE), USER_DEF_9 VARCHAR2(50 BYTE), MANAGER_NUMBER VARCHAR2(15 BYTE), MANAGER_REASON_CODE VARCHAR2(10 BYTE), MANAGER_SWIPED VARCHAR2(1 BYTE), PHONE_NO NUMBER(11), KCPOS_KTH_USER_101 NUMBER, KCPOS_KTH_USER_102 NUMBER, KCPOS_KTH_USER_103 NUMBER, KCPOS_KTH_USER_104 NUMBER, KCPOS_KTH_USER_105 NUMBER, KCPOS_KTH_USER_106 NUMBER, KCPOS_KTH_USER_107 NUMBER, KCPOS_KTH_USER_108 NUMBER, KCPOS_KTH_USER_109 NUMBER, KCPOS_KTH_USER_110 NUMBER, KCPOS_KTH_USER_201 NUMBER(12,2), KCPOS_KTH_USER_202 NUMBER(12,2), KCPOS_KTH_USER_203 NUMBER(12,2), KCPOS_KTH_USER_204 NUMBER(12,2), KCPOS_KTH_USER_205 NUMBER(12,2), KCPOS_KTH_USER_206 NUMBER(12,2), KCPOS_KTH_USER_207 NUMBER(12,2), KCPOS_KTH_USER_208 NUMBER(12,2), KCPOS_KTH_USER_209 NUMBER(12,2), KCPOS_KTH_USER_210 NUMBER(12,2), KCPOS_KTH_USER_301 VARCHAR2(50 BYTE), KCPOS_KTH_USER_302 VARCHAR2(50 BYTE), KCPOS_KTH_USER_303 VARCHAR2(50 BYTE), KCPOS_KTH_USER_304 VARCHAR2(50 BYTE), KCPOS_KTH_USER_305 VARCHAR2(50 BYTE), KCPOS_KTH_USER_306 VARCHAR2(50 BYTE), KCPOS_KTH_USER_307 VARCHAR2(50 BYTE), KCPOS_KTH_USER_308 VARCHAR2(50 BYTE), KCPOS_KTH_USER_309 VARCHAR2(50 BYTE), KCPOS_KTH_USER_310 VARCHAR2(50 BYTE), KCPOS_KTH_USER_401 DATE, KCPOS_KTH_USER_402 DATE, KCPOS_KTH_USER_403 DATE, DISC_TOTAL NUMBER(9,2) ) CREATE INDEX REX_HEAD_EXTRACT_NDX ON REX_HEAD_EXTRACT (REX_SEQ_NBR, REVISION_NUMBER, STORE_NUMBER, TRAN_DATE, TERMINAL_NUMBER, TRAN_NUMBER)
-SamplesCREATE TABLE NAVISTOR.KCPOS_TRAN_HEADER_BASE ( TRAN_SEQ_NBR NUMBER(12), ORG_NUMBER NUMBER, STORE_NUMBER NUMBER, TRAN_DATE DATE, TERMINAL_NUMBER NUMBER, TRAN_NUMBER NUMBER, TRAN_TIME DATE, BATCH_NUMBER VARCHAR2(8 BYTE), BATCH_TYPE VARCHAR2(4 BYTE), TRAN_TYPE VARCHAR2(4 BYTE), SUB_TRAN_TYPE VARCHAR2(4 BYTE), CLERK_CODE VARCHAR2(15 BYTE) NOT NULL, TRAN_TAXABLE_AMOUNT NUMBER(12,2), TRAN_TAX_TOTAL NUMBER(12,2), TRAN_GROSS_TOTAL NUMBER(12,2), COUP_TOTAL NUMBER(9,2), MKD_TOTAL NUMBER(9,2), EMPLOYEE_NUMBER VARCHAR2(15 BYTE), EMPLOYEE_NAME VARCHAR2(40 BYTE), TRAN_ALTTAXABLE_AMOUNT NUMBER(12,2), TRAN_ALTTAX_TOTAL NUMBER(12,2), SALE_AMOUNT NUMBER(9,2), RETURN_AMOUNT NUMBER(9,2), RETURNED_AMOUNT NUMBER(9,2), NETCASH NUMBER(12,2), TENDER_CODE VARCHAR2(4 BYTE), MULT_RCPT VARCHAR2(1 BYTE), SPLIT_TENDER VARCHAR2(1 BYTE), RTN_WITH_PURCHASE VARCHAR2(1 BYTE), RTN_WITH_RCPT VARCHAR2(1 BYTE), REASON_CODE VARCHAR2(4 BYTE), PASSWORD VARCHAR2(10 BYTE), RINGTIME DATE, CUST_NUMBER VARCHAR2(12 BYTE), CUST_ID VARCHAR2(50 BYTE) ENCRYPT USING 'AES256' NO SALT, ZIP_CODE NUMBER, POSTAL_CODE VARCHAR2(9 BYTE), PV_TIME_LAPSE NUMBER, ORIG_STORE_NBR NUMBER, ORIG_TRAN_DATE DATE, ORIG_TRAN_TYPE VARCHAR2(4 BYTE), ORIG_TERM_NBR NUMBER, ORIG_TRAN_NBR NUMBER, ORIG_SALE_AMT NUMBER(12,2), ORIG_TENDER_CODE VARCHAR2(4 BYTE), ORIG_CLERK_CODE VARCHAR2(15 BYTE), PREV_TRAN_TYPE VARCHAR2(4 BYTE), PREV_SUB_TRAN_TYPE VARCHAR2(4 BYTE), GIFT_REGISTRY_ID VARCHAR2(25 BYTE), NO_OF_ITEMS NUMBER, TAX_EXEMPT_ID VARCHAR2(18 BYTE), TRAN_RINGTIME NUMBER, AUDITED VARCHAR2(1 BYTE), BATCH_VERSION NUMBER(9,2), BATCH_SOURCE VARCHAR2(5 BYTE), CREATE_DATE DATE, CREATE_ID VARCHAR2(32 BYTE), CREATE_PROC VARCHAR2(32 BYTE), MOD_DATE DATE, MOD_ID VARCHAR2(32 BYTE), MOD_PROC VARCHAR2(32 BYTE), TERMINAL_GROUP NUMBER, USER_DEF_1 NUMBER, USER_DEF_2 NUMBER, USER_DEF_3 NUMBER, USER_DEF_4 NUMBER(12,2), USER_DEF_5 NUMBER(12,2), USER_DEF_6 NUMBER(12,2), USER_DEF_7 VARCHAR2(50 BYTE), USER_DEF_8 VARCHAR2(50 BYTE), USER_DEF_9 VARCHAR2(50 BYTE), MANAGER_NUMBER VARCHAR2(15 BYTE), MANAGER_REASON_CODE VARCHAR2(10 BYTE), MANAGER_SWIPED VARCHAR2(1 BYTE), PHONE_NO NUMBER(11), KCPOS_KTH_USER_101 NUMBER, KCPOS_KTH_USER_102 NUMBER, KCPOS_KTH_USER_103 NUMBER, KCPOS_KTH_USER_104 NUMBER, KCPOS_KTH_USER_105 NUMBER, KCPOS_KTH_USER_106 NUMBER, KCPOS_KTH_USER_107 NUMBER, KCPOS_KTH_USER_108 NUMBER, KCPOS_KTH_USER_109 NUMBER, KCPOS_KTH_USER_110 NUMBER, KCPOS_KTH_USER_201 NUMBER(12,2), KCPOS_KTH_USER_202 NUMBER(12,2), KCPOS_KTH_USER_203 NUMBER(12,2), KCPOS_KTH_USER_204 NUMBER(12,2), KCPOS_KTH_USER_205 NUMBER(12,2), KCPOS_KTH_USER_206 NUMBER(12,2), KCPOS_KTH_USER_207 NUMBER(12,2), KCPOS_KTH_USER_208 NUMBER(12,2), KCPOS_KTH_USER_209 NUMBER(12,2), KCPOS_KTH_USER_210 NUMBER(12,2), KCPOS_KTH_USER_301 VARCHAR2(50 BYTE), KCPOS_KTH_USER_302 VARCHAR2(50 BYTE), KCPOS_KTH_USER_303 VARCHAR2(50 BYTE), KCPOS_KTH_USER_304 VARCHAR2(50 BYTE), KCPOS_KTH_USER_305 VARCHAR2(50 BYTE), KCPOS_KTH_USER_306 VARCHAR2(50 BYTE), KCPOS_KTH_USER_307 VARCHAR2(50 BYTE), KCPOS_KTH_USER_308 VARCHAR2(50 BYTE), KCPOS_KTH_USER_309 VARCHAR2(50 BYTE), KCPOS_KTH_USER_310 VARCHAR2(50 BYTE), KCPOS_KTH_USER_401 DATE, KCPOS_KTH_USER_402 DATE, KCPOS_KTH_USER_403 DATE, DISC_TOTAL NUMBER(9,2), RTA_RTN_AUTCOD VARCHAR2(4 BYTE), RTA_RTN_COMMID NUMBER, RTA_RTN_EVNTID NUMBER, RTA_RTN_QTY NUMBER, RTA_RTN_RCPT_SCAN VARCHAR2(1 BYTE), RTA_RTN_REFUND_AMT NUMBER(9,2), RTA_RTN_TYPE_CODE VARCHAR2(4 BYTE), RTA_RTN_WITH_RCPT VARCHAR2(1 BYTE), RTA_RTN_COUNT INTEGER, SDEDVAL1 VARCHAR2(50 BYTE) )
REX_SEQ_NBR,REVISION_NUMBER,DAY,RESA_TRAN_SEQ_NO,BUSINESS_DATE,TRAN_SEQ_NBR,ORG_NUMBER,STORE_NUMBER,TRAN_DATE,TERMINAL_NUMBER, TRAN_NUMBER,TRAN_TIME 478,1,11,12024005,6/11/2012,,1,692,6/11/2012,155,5,6/11/2012 12:57:17 PM, 479,1,11,12024006,6/11/2012,,1,692,6/11/2012,155,6,6/11/2012 2:01:51 PM, 480,1,11,12024007,6/11/2012,,1,692,6/11/2012,155,7,6/11/2012 2:47:10 PM
Then you describe two stored procedures separated. One that has an OUTPUT parameter which is a SYS_REFCURSOR (that you posted initially). And will need you a second procedure that takes as a parameter IN the decrypted CUST_ID and whatever: key (s) is required for the UPDATE is generated.
Justin
-
replace some symbols and converts the value to a number
Hi all. I've got bp_link table with 'avalue' column VARCHAR2 (200). If I can find a different version of p here:
(a) 100%
(b) 100
(c) 100.00
(d) 100.00
(e) null
(f) symbol of space
(I hope that all versions are mentioned).
So I try to replace some symbols and convert the value to a number using the following steps:
NVL(Avalue,0) - removes the null value
Replace (NVL(Avalue,0), '%', ")-removes the symbol '% '.
Replace (Replace (NVL(Avalue,0), '%', "), ',','. ')-remove a symbol «,»
Trim (Replace (Replace (NVL(Avalue,0),'%',''),',','.')) - removes the symbol space)))
TO_CHAR (Trim (Replace (Replace (NVL(Avalue,0), '%', "), ', '.'")), "FM999999999999.90")-converts format "100.00".
But it still does not, maybe I don't see anything else.
When I just "select * from...". "it works:
Select to_char (trim (replace (replace (nvl(avalue,0), '%', "), ', '.'")), "FM999999999999.90")
as avalue of JJ bp_link where roletypeid = 9
But when I try "order by avalue" ends with error - ORA-01722: invalid number
Select to_char (trim (replace (replace (nvl(avalue,0), '%', "), ', '.'")), "FM999999999999.90")
as avalue of JJ bp_link where roletypeid = 9
order of dd.avalue
What can I do else?Maybe this will help you
http://nimishgarg.blogspot.com/2010/04/Oracle-SQL-extract-numbers-from-string.html -
Set and get the value of the item application in Javascript
Hello guys,.
Can you tell me an example how to set and get the value of the application element in Javascript, and how do I check if the value of the point of application is null in Javascript, too. I have read a few replies, but nothing worked (e.g. $x (app_item), $v (app_item), $s (app_item) and so on).
Thanks in advance!To get the value of an element, use the following syntax:
alert("The value of MY_TEST_ITEM is " + $x("MY_TEST_ITEM").value);
to set the value that you have just made
$x("MY_TEST_ITEM").value="Set to this value";
Keep in mind however that you need to send the page in order so that he could be picked up by APEX - javascript is CLIENT SIDE, ONLY! Either that or use AJAX to put on the side server.
-
How to group and summarize the values with a vertical drop of 100?
Dear gurus
How to group and summarize the values with a vertical drop of 100 as the data indicated below:
Cas_Cod_ Cas_Amt_ Description
300 1000A
301 200 B
302 350 C
400 500 A
401 100 B
402 25
Now the data should be grouped like this
A (300,400) = 1500
(301,401) B = 300
C (302,402) = 375
Make sure that I don't have a column as description in my table to group data on description, its here just to give u an example.Hello
using mod for hundreds:
with x as ( select 300 code, 1000 amt, 'A' descr from dual union all select 301 code, 200 amt, 'B' descr from dual union all select 302 code, 350 amt, 'C' descr from dual union all select 400 code, 500 amt, 'A' descr from dual union all select 401 code, 100 amt, 'B' descr from dual union all select 402 code, 25 amt, 'C' descr from dual ) select mod(code,100) code, sum (amt) from x group by mod(code,100);
Using the mod you get the rest of a division, so mod (300,100) = 0, mod (301,100) = 1, etc.
Herald tiomela
http://htendam.WordPress.com -
Can I create a cursor and set the values by myself
Can I create a cursor and set the values by myself, and it has not been filled by an SQL?
Thanks in advanceYes, you can.
Use variables with a default value or nvl (some_parameter, some_variable) in your cursor WHERE predicate.
They provide an example if it isn't clear, since that's all I can think about reading your post... -
even if the margins and clear the values defined divs, overlaping
For this site, the text in the DIV called "thumbnailshere" overlaps the div below, even if the margins and clear the values have been set.
http://tfproperty.co.UK/checkthisout/about.html
How can I fix it?
Thank youjdldn wrote:
> For this site, the text in the DIV called "thumbnailshere" overlaps the div
> below him, even if the margins and clear the values have been set.
>
> http://tfproperty.co.uk/checkthisout/about.html
>
> How to fix this?
> Thank you
>This is because you have set the height on your 'thumbnailshere '.
. Never
the value height unless you know how high the content is going to be.
Remove the height.{.thumbnailshere}
height: 400px; / * remove the height * /.
margin-top:-10px;
}
Maybe you are looking for
-
Re: Satellite A200 - overheats and turns off
Hello I had a problem with my A200 series. It heats up to something like 40 ° - 50 ° C, what should I do? I rarely hear the fan inside, I seldom spend my laptop off aswell Please help me; thx a lot
-
Portege M800 - 11G: what is TRDCReminder & TRORDLauncher of Toshiba
Hello I'm french and I bought a laptop PORTEGE M800 - 11G with Vista Premium I want to uninstall a lot of features of applications, programs, & windows. I post on this forum of toshiba because I hope that we can explain to me what are these applicati
-
I have a HP Pavilion HPE series, the number of model h8 - 1380t. The specifications are in the link below. I have a PSU 460W. I would like to replace my gt630 with a gtx770. I know I have to upgrade my power supply. My question is the motherboard
-
My compaq cq58-331sa says device not found Boot
I can it reboot and how do I do thanks
-
Hi, can you please help. I have problems with the installation of the updates and software on my laptop: -. updated Windows, I get the error code 80200053,Microsoft Security Essentials updates, I get the error code 0 x 80240022 (it is a new installat