Join between tables of rates and service agreements
HelloI am looking at the table of the Service contract in the observer Application and cannot figure out how the rate is referenced in this table. It doesn't seem as any reference to the table of hourly rates in the Service Agreement?
TIA,
Edward :-)
You can find the fee structure used for a Service contract on the following table: CI_SA_RS_HIST
Tags: Oracle
Similar Questions
-
Variable space between tables of body and footer.
Hello world
I have an order report that contains a table into the header, another table of body and the table in the footer. For the header/footer, I created templates and call using call: header and footer: call.
When the order has about 100 lines, it is printing in 10 pages. and on each page, I see a variable gap between tables in body and footer. some times, the two are overlapping. How can I avoid this? I can send files if wants that whole body.I sent you the modified model. Please take a look.
Thank you!
-
Overactive bladder - difference between the standard rate and variable rate
What is the difference between the standard rate and variable rateYes, there is. It displays only all the combinations that are already defined elsewhere. ex: in the type of program, plan form
-
Join between tables header &; detail based on the age and group
To find the amount of the age and the group in the table of detail based on age & group_id in header?
Example: Take the seq_id = 1 mind, it has age = 60 & group_id = 23 (23 months).
In the detail table xx_detail, the age column represents the age of the person (0-65 represents the age 0-65 and so on).
If the age is null, while the rank indicates the Group (0-12 represents the group between 0-12 months). If the age is not null, then the Group 1, group 2, group 3 that data amounts.
So now I must get the amount as 240 (like my seq_id header = 1, age = 60, group_id = 23, as it is covered by group age & 13-59 0-65). So I need a SQL to find the exact amount in detail based on the header record. We must go to settings & group_id age and get an amount of detail tables. Can anyone provide input how to achieve this in the most simple.
- SQL > select * from v$ version
- 2.
- BANNER
- --------------------------------------------------------------------------------
- Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
- PL/SQL Release 11.2.0.3.0 - Production
- CORE Production 11.2.0.3.0
- AMT for Linux: Version 11.2.0.3.0 - Production
- NLSRTL Version 11.2.0.3.0 - Production
- SQL > xx_header desc ;
- Name Null? Type
- ----------------------------------------- -------- ----------------------------
- SEQ_ID VARCHAR2 (6)
- AGE NUMBER
- START_DATE DATE
- GROUP_ID NUMBER
- SQL > select * from xx_header;
- SEQ_ID AGE START_DATE GROUP_ID
- ---------------- ------ ------------------ ---------------
- 1 60 1 JANUARY 12 23
- 2 89 1 JANUARY 12 23
- 3 95 1 JANUARY 12 23
- SQL > xx_detail desc ;
- Name Null
- ----------------------------------------- -------- ----------------------------
- SEQ_ID VARCHAR2 (10)
- AGE VARCHAR2(10)
- GROUP1 VARCHAR2 (10)
- GROUP2 VARCHAR2 (10)
- GROUP 3 VARCHAR2 (10)
- SQL > select * from xx_detail;
- SEQ_ID AGE GROUP1 GROUP2 GROUP3
- ---------- ---------- ---------- ---------- ----------
- 1 0-12 13-59 60-126
- 1 0-65 120 240 300
- 1 66 - 135 100 80 400
-
License and services agreement
I'm about to buy the creative student membership for the school cloud. Can I use my design as profit since it is a student discount?
Yes.
-
join of tables inside the trigger
I will set the value of a column in a trigger based on one join between other: new value and a table, but it does not work. Cannot select on one: new.column inside the trigger? If not, then all the ideas on how to do this simple thing? I may need to call a function with the: new.column value but don't know if I'm having the same problem. sillySql. Thank you.
create the table codetab
(ct_id number (6))
ct_value varchar2 (6));
create the table bustab
(bt_id, number (6))
bct_id number (6).
bt_value varchar2 (6));
insert into codetab values
(1, 'AAA');
insert into codetab values
(2, 'BBB');
create or replace trigger bustrig
Before Insert on bustab for each line
Begin
Select codetab.ct_value in: new.bt_value
of codetab, bustab
where: new.bct_id = codetab.ct_id;
end;
/
insert into bustab values
(1, 1, null);
insert into bustab values
*
ERROR on line 1:
ORA-01403: no data found
ORA-06512: at "ELLEPEUTNEANMOINS. BUSTRIG', line 2
ORA-04088: error during execution of trigger ' ELLEPEUTNEANMOINS. BUSTRIG'Hello
The problem isn't with the: NEW values, it is with the table.
A FOR EACH ROW trigger on bustab can't question bustab.
However, you don't need to ask bustab. Codeteb is the only table you must ask:create or replace trigger bustrig before insert on bustab for each row Begin select ct_value into :new.bt_value from codetab where :new.bct_id = ct_id; end;
-
several "logical joins" between a fact table and a dimension table
It seems that cannot create multiple "logical joins" between a fact table and the table of a dimension in OBIEE with Administration Oracle BI tool. For example, whereas a business model with a dimension table TIMES and has made the table containing the value of START_TIME and END_TIME, we want to create separate logical joins BOTH done for the START_TIMEs and the END_TIMEs? Of course, underlying foreign keys can be created, but as far as I can tell the Administration Oracle BI tool does not support this. The solution would be to reproduce the table in TIME, but it's ugly.
I'm looking for another approach.Try this. Create an alias of two for the TIME dimension (beginning & end) in the physical layer, then remove foreign key to the 'Parent' time dimension. Create the foreign key in the physical layer for new aliases, then create complex joins in the MDB layer for new aliases as well. This will allow you to present the two dates within the same table in the presentation layer. Not a more elegant solution, but it works.
-
Join between PAY_GRADE_RULES_F and BEN_CWB_PERSON_RATES
Hi Experts,
I'm working on the module of work remuneration and creating custom ETL based on some sources eBS bench.
Can anyone let me know the joins between the tables: PAY_GRADE_RULES_F and BEN_CWB_PERSON_RATES?
Thank you
AnamikaHi med.
I would start here; http://ETRM.Oracle.com
Good luck
Daan Bakboord
http://obibb.WordPress.com -
Update statement with joins of tables and where Clause
Hi, I have MS SQL background and I try to execute an update statement in Oracle with joins of tables. However, the syntax below does not work but I think it works for MS SQL.
Basically, the base table must be attached to a master table trend with monthly snapshots, an account will be only an entry for a given date monthly. Where clause must be limited to accounts within a certain range of interest rates.
The first approach returns command SQL ORA-00933 not correctly completed, and the second approach returns ORA-01427 row below query returns multiple rows. Can anyone help? Thanks in advance!
1:
Update PenaltyAll
Set a.indicator = month (b.)
of PenaltyAll an inner join Master b on a.acctno = b.accountnumber
where a.monthend='01/31/2009' and b.date='12/31/2008' and b.apr < 20
2:
Update PenaltyAll
adjustment indicator =
(select to_char (b., 'MM')
of PenaltyAll an inner join Master b on a.acctno = b.accountnumber
"where to_char (a.monthend,'mm/dd/yyyy ') = 31 January 2009"
(et to_char(b.date,'mm/dd/yyyy') = December 31, 2008 "
and b.apr < 20)
Published by: sqlrookie on August 21, 2009 07:04I edited my post, that was my mistake, ANC you try now?
-
I'm reading the data (speed rate and flow) of a table and it plot in a graph.
I'm reading the data (speed rate and flow) of a table and it plot in a graph. I need to draw two values of l/min (speed) to the same speed. How can I do using a loop for?
There is no need actually to use a loop FOR this. And using a graphic waveform isn't the type of field for this, for a waveform you a (Start), the dT T0 (greatness not) and table D (Data), this isn't what you want unless you know precisely the measure will take place according to an orderly disposal, you'd want a xy chart so that you can trace the measures where they occur in the axes X and Y of preference.
-
Relationship between the samples through the second rate and sampling
I was wondering if someone could clarify the relationship between the samples through second rate and sampling.
I have USB6008 and USB6363 of the tips that I work with in Measurement Studio.
For the nec USB6008 entry differential (up to four channels of HAVE), if I put a sampling frequency to 8192 samples per second, and I updated 2048 samples per channel with:
Task.Timing.ConfigureSampleClock ("", 8192, SampleClockActiveEdge.Rising, SampleQuantityMode.ContinuousSamples, 2048)
Am I right in assuming that:
- through the 4 analog inputs 8192 samples will be collected every second
- 2048 samples will be taken by way of analog input for each scan
- The time between two successive data points is 1/2048 seconds (about 0.5 ms)
Hi DKIMZEY,
The help page for the "Timing.ConfigureSampleClock method" should have a hypertext link to the page "Sample clock" in NOR-DAQmx help, that contains this text: "this sample clock sets the interval of time between samples. Each tick of the clock starts the acquisition or the generation of one sample per channel. "When the sample clock frequency is 8192, then the time between two successive data for a single channel is 1/8192 seconds. The time between the data points on two adjacent channels is controlled by the clock to convert, which can be controlled independently on most devices (up to a point).
Brad
-
What is different between windows xp Service Pack 1, Service Pack 2 and Service Pack 3
Gentlemen met,
What are different between windows xp Service Pack 1, Service Pack 2 and Service Pack 3?
Thank you
Kind regards
Patrice HirenThose are the service packs were introduced over time to fix bugs and add highlight. Note that support for XP with SP3 ends in April 2014. If you do not have SP3 installed, the support is already over.
-
How to join two tables if you transpose the rows, columns and rows in one of the table
Hi guys,.
can someone help me please in the write request
I have two tables
Agents and Agent phones but in the agent phones table for the id of an agent it displays 4 rows because one of the column there types of different phones (office, mobile, home, fax)
So instead of display 4 rows, I used max(case...) to convert rows to columns
now how to reach it with another table
Requirement:
Database: 11.2.0.2.0
create the table AGENT_PHONE
(
agent_id NUMBER (20) not null,
agent_type_code VARCHAR2 (10) not null,
agent_type_prefix VARCHAR2 (10) not null,
Phone_Number VARCHAR2 (16) not null,
phone_type_code VARCHAR2 (10) not null
)
CREATE TABLEAGENTS
(
agent_id NUMBER (20) not null,
agent_type_code VARCHAR2 (10) not null,
agent_type_prefix VARCHAR2 (10) not null,
NAME VARCHAR2 (40) NOT NULL
)
INSERT INTO AGENT_PHONE(AGENT_ID,AGENT_TYPE_CODE,AGENT_TYPE_PREFIX,PHONE_NUMBER,PHONE_TYPE_CODE)
VALUES (29709, ARE ', 'OFFICE', '4805551436', 'CELL');
INSERT INTO AGENT_PHONE(AGENT_ID,AGENT_TYPE_CODE,AGENT_TYPE_PREFIX,PHONE_NUMBER,PHONE_TYPE_CODE)
VALUES (29709, ARE ', 'OFFICE', '1111111111', 'PHONE');
INSERT INTO AGENT_PHONE(AGENT_ID,AGENT_TYPE_CODE,AGENT_TYPE_PREFIX,PHONE_NUMBER,PHONE_TYPE_CODE)
VALUES (29709, ARE ', 'OFFICE', '2223334444',' OFF');
INSERT INTO AGENT_PHONE(AGENT_ID,AGENT_TYPE_CODE,AGENT_TYPE_PREFIX,PHONE_NUMBER,PHONE_TYPE_CODE)
VALUES (29709, ARE ', 'OFFICE', '5556667788', 'FAX');
INSERT INTO VALUES AGENTS
(29709, ARE ', 'OFFICE', 'FLY');
INSERT INTO VALUES AGENTS
(1234, ARE ', 'OFFICE', 'MIKE');
SELECT * FROM AGENT_PHONES
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX PHONE_NUMBER PHONE_TYPE_CODE ---------------------------------------------------------------------------------------------
29709 RE OFFICE 4805551436 CELL 29709 RE OFFICE 1111111111 PHONE 29709 RE OFFICE 2223334444 OFF 29709 RE OFFICE 5556667788 FAX
SELECT * AGENTS
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX NAME
29709 RE OFFICE ROB 1234 RE OFFICE MIKE
This is so the data we have in both table
Now, I transposed rows to columns in the table of agent phones so I used the following query
SELECT AP. AGENT_ID,. AGENT_TYPE_CODE,. AGENT_TYPE_PREFIX.
MAX (CASE WHEN AP. PHONE_TYPE_CODE = 'CELL' THEN AP. PHONE_NUMBER END) AS CELL.
MAX (CASE WHEN AP. PHONE_TYPE_CODE = 'OFF' THEN AP PHONE_NUMBER END) AS TURNED OFF.
MAX (CASE WHEN AP. PHONE_TYPE_CODE = 'FAX' THEN AP. PHONE_NUMBER END) LIKE FAX,.
MAX (CASE WHEN PHONE_TYPE_CODE = 'PHONE'. THEN AP PHONE_NUMBER END) AS PHONE
AGENT_PHONE AP
WHERE AP. AGENT_ID = 29709
GROUP OF AP. AGENT_ID, AP. AGENT_TYPE_CODE, AP. AGENT_TYPE_PREFIX.
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX CELL OFF FAX PHONE 1 29709 RE OFFICE 4805551436 2223334444 5556667788 1111111111 My question is how this to join the agents table so that my output should be like this...
I want to display all the results in the table of the Agent, even if they are not in the table of agent phones. As you can see there are other agent id 1234 is also populated
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX NAME AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX CELL PHONE OFF FAX --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
29709 RE OFFICE ROB 29709 RE OFFICE 4805551436 1111111111 2223334444 5556667788 1234 RE OFFICE MIKE Currently, I run this query and I get the output as below
SELECT *.
AGENTS HAS
LEFT OUTER JOIN AGENT_PHONE AP
ON A.AGENT_ID = AP. AGENT_ID
AND A.AGENT_TYPE_CODE = AGENT_TYPE_CODE.
AND A.AGENT_TYPE_PREFIX = AGENT_TYPE_PREFIX.
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX NAME AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX PHONE_NUMBER PHONE_TYPE_CODE 1 29709 RE OFFICE ROB 29709 RE OFFICE 4805551436 CELL 2 29709 RE OFFICE ROB 29709 RE OFFICE 1111111111 PHONE 3 29709 RE OFFICE ROB 29709 RE OFFICE 2223334444 OFF 4 29709 RE OFFICE ROB 29709 RE OFFICE 5556667788 FAX 5 1234 RE OFFICE MIKE I want id 29709 agent in a line with 1234 agent also id to display
You can rotate your phone number of agent in columns
Select *.
of AGENT_PHONE
pivot)
min (PHONE_NUMBER)
for PHONE_TYPE_CODE in ('CELL' as a 'CELL', 'PHONE' like 'PHONE', 'OFF' in the 'OFF', 'FAX' as 'FAX')
)
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX CELL PHONE OFF FAX 29709 RE OFFICE 4805551436 1111111111 2223334444 5556667788 Then you can join to view inline or CTE
with AGENT_PHONE_PIVOT like)
Select *.
of AGENT_PHONE
pivot)
min (PHONE_NUMBER)
for PHONE_TYPE_CODE in ('CELL' as a 'CELL', 'PHONE' like 'PHONE', 'OFF' in the 'OFF', 'FAX' as 'FAX')
)
)
SELECT *.
AGENTS HAS
LEFT OUTER JOIN AGENT_PHONE_PIVOT AP
ON A.AGENT_ID = AP. AGENT_ID
AND A.AGENT_TYPE_CODE = AGENT_TYPE_CODE.
AND A.AGENT_TYPE_PREFIX = AGENT_TYPE_PREFIX.
AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX NAME AGENT_ID AGENT_TYPE_CODE AGENT_TYPE_PREFIX CELL PHONE OFF FAX 29709 RE OFFICE ROB 29709 RE OFFICE 4805551436 1111111111 2223334444 5556667788 1234 RE OFFICE MIKE - - - - - - - Is that what you're looking for?
-
Hello
I want to join the two tables to retrieve the data from the columns of the two table passing parameters to the join query. Tables have primary and foreign key relationships
Details of the table
Alert-1 - AlertCode (FK), AlerID (PK)
2 AlertCode-AlertDefinition-(PK)
Help, please
----------
Hi Vincent,.
I think that you have not worked on adf 12.1.3. In adf 12.1.3 you don't have to explicitly create the association. When you create the EO to your table, Association xxxxFkAssoc, will be created by ADF12.1.3 for you automatically. Please try this and do not answer anything... You can also follow the links below. I solved the problem by using the following link
---
-
What is the difference between task and Service?
What is the difference between task and Service? When we use the task and that we should use the Service? Thank you ~ ~
See the StackOverflow question:
You may also interest somewhat related:
Hello
Is this the same question you asked 3 days ago
https://forums.Oracle.com/thread/2606197
?
Whether it is or not, validate the information requested in this message, which is also in the FAQS of the Forum:
https://forums.Oracle.com/message/9362002
If it's the same question, do not post a new thread. Mark it as "Answered" immediately and continue in the original thread.
Maybe you are looking for
-
Qosmio G40 - black screen and does not start
A bit of water on my laptop... (bought in 2007, guaranteed on)I did not cut power at the time because it did not work properly... But, the next morning.Start with a black screen, fan is too much work and I have a beep.An and after a continuous short
-
He stopped at my end of pc. What is it and what are the causes? (On Mozilla firefox) My topic is not (closure of problem)
-
How can I restore my computer to a factory State, it's a dell optiplex gx1
How can I restore my computer to a factory State, it's a dell optiplex gx1
-
Im trying to go to a backup Win 7, but unable to restore backup files
Im trying to restore the backup files to a backup Win 7, but it deosnt let me do
-
I would like to send pictures of my computer Windows 7 Home Premium to the "Smart TV", through our wireless network. I've already sent some of my Android phone. I understand Windows media server systems do with homegroup and homegroup requires IPv6.