Is it Possible to make a join from a single table
Hi all,
Is it Possible to make a join from a single table
Suppose HR_ALL_ORGANIZATION_UNITS table
can we make a join in the following way
HR_ALL_ORGANIZATION_UNITS.ORGANIZATION_ID =HR_ALL_ORGANIZATION_UNITS.BUSINESS_GROUP_ID
Thanks in advance
Hi
Yes you can join,
Like below =- it is called self join -
Slect a.oersson_id,a.employee_numebr, b.full_name
form
hr_all_organization_units a,
hr_all_organization_units b
where
a.person_id = b.person_id and
sysdate between a.effective_start_date and a.effective_end_date and
sysdate between b.effective_start_date and b.effective_end_date
914618 wrote:
Hi all,
Is it Possible to make a join from a single table
Suppose HR_ALL_ORGANIZATION_UNITS table
can we make a join in the following way
HR_ALL_ORGANIZATION_UNITS.ORGANIZATION_ID =HR_ALL_ORGANIZATION_UNITS.BUSINESS_GROUP_ID
Thanks in advance
Similar Messages
-
Multiple outer joins from a single table
Here is my scenario - I have 3 folders:
Theater - contains Theater Name and Theater ID
Agency - contains Agency Name and Theater ID
Depot - contains Depot Name and Theater ID
A theater may or may not have an agency. Likewise, it may or may not have a depot.
Thus, I've set up a join from Theater (master) to Agency on Theater ID, and selected "outer join on detail"
Likewise, I've done the same between Theater (master) and Depot on Theater ID
When I attempt to create a report with the columns Theater Name, Agency Name, and Depot Name, I am unable to do so. I can only pick either Agency Name or Depot Name, not both. When I try to add the second outer joined element, Discoverer reports that it cannot determine the join configuration because "more than 1 of the detail folders uses non-aggregate items"
What am I doing wrong? Any help would be greatly appreciated, thanks!Hi,
Try change the joins to be "outer join on detail" and "one to one join relationship between master and detail".
Hope that helps,
Rod West -
is it possible to make in : Join by phone tin online meeting request that the number is shown as hiperlink in outlook 2010??
when i send the invitation for example to gmail user I can see it on my phone. but if I would like to call directly from the outlook request I have to copy and paste the number , it is not hiperlinked....
help
any suggestions???Mine works with the tel URL syntax already in there.
A couple of thoughts, if that's not working for you you could make your own hyperlink to look something like this:
<a href=tel:+556666888888>Join Via Phone</a>
I've seen callto: work as well.
Which you might be able to append into the default meeting invite:
http://technet.microsoft.com/en-us/library/gg398638.aspx
The other thought is to check out Matt's select dial:
http://gallery.technet.microsoft.com/office/Lync-Copy-Dial-Just-Select-3c426244 which would allow you to highlight any number and hit a hotkey to call.
Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
SWC Unified Communications -
Is it possible to make a movie from sequence of images in JMF?
I am in need of make a movie from image sequences created from YCbCr(YUV) values. Is it possible to make a movie from sequence of images in JMF?
yes, it is.
at www.java.sun.com in the JMF session there are several examples about your problem!
cheers
thomas -
Make the link from the single cell of Bex Report and the image of bill
Hi guys,
my client scan every bill and archive the image by File.net technology.
In our Bex Report we have the Bill number and we want to make the link from the single cell and the image of bill.
The possible paths to solve the problem are:
Replicate the image in BW and crate a link from the single cell and the image of document.
Create an URL link from the single cell and the image of document archived on File.net server.
In witch way we can to implement the two paths?
Thank you.
AlessandroHi Alessandro,
Have you seen "How To Enhance your Web Query with the Table Interface"?
You can find it in media library:
https://websmp105.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000194044
Best regards,
Eugene -
Getting last year column value from a single table
I am having the following columns in my table
BRANCH_CD
YYMM
VNDR#
VGROUP#
SALES_TRGT_AMT
SALES_ACTL_AMT
CUM_TRGT_AMT
CUM_ACTL_AMT
i need to get sales_actl_amt from this year and sales_actl_amt from last year from a single table
pls help
thank you
Edited by: 960991 on Nov 19, 2012 11:13 PMHi ashish,
but i can't use unions in my reports.
once view my query :
select t.branch_cd,b.branch_e_name,t.vndr#,v.vndr_name,
sum(nvl(t.sales_actl_amt,0)) sales_actl_amt
from inv_sales_trgt_val t,branches b,vendor v where
t.branch_cd=b.branch_cd and
t.vndr#=v.vndr# and
(t.yymm between :fiscal_month and :fiscal_month2) and
(:fiscal_month<>trunc(:fiscal_month2,-2)) and :fiscal_month2<>trunc(:fiscal_month2,-2)) and t.branch_cd between :from_branch and to_branch and
t.vndr# between :from_vndr and :to_vndr
group by t.vndr#,v.vndr_name,t.branch_cd,b.branch_e_name
order by t.vndr#,t.branch_cd;
how can i get last year sales_actl_amt . -
It's possible to make Hierarchical Tree from multiple tables ?
the famous example for Hierarchical Tree is about employee_id and manager_id field in employees table ............ so I was wondering it's possible to make[b] Hierarchical Tree from multiple tables ? and How ??
if the answer associate with example that will be so kind of you :D
and thanks in advance.HI
use curose in when new form instance or procedure then u can got data more then one table like that
DECLARE
htree ITEM;
top_node FTREE.NODE;
new_node FTREE.NODE ;
child_node ftree.node ;
item_value VARCHAR2(30);
cursor prime_cur is select main_desc mgr_name, main_code dept
from pur_item_group_mst;
cursor child_cur(v_dept number) is select sub_desc,sub_code
from pur_item_group_dtl where main_code = v_dept ;
BEGIN
htree := Find_Item('tmp.tree4');
for dummy in prime_cur loop
new_node := Ftree.Add_Tree_Node(htree,
ftree.root_node,
Ftree.PARENT_OFFSET,
Ftree.LAST_CHILD,
Ftree.EXPANDED_NODE,
dummy.mgr_name,
'D:\ORYX_POLYBAGS\accept',
dummy.dept);
for child in child_cur(dummy.dept) loop
child_node := Ftree.Add_Tree_Node(htree,
new_node,
Ftree.PARENT_OFFSET,
Ftree.LAST_CHILD,
Ftree.EXPANDED_NODE,
child.sub_desc||' '||'('||child.sub_code||' '||')',
'D:\ORYX_POLYBAGS\next',
child.sub_code);
end loop;
end loop;
END;
Rizwan Shafiq
www.rizwanshafiq.blogspot.com -
It's is possible to make a select from a view?
I don't know if it's possible to make a select of a table-view like V_T5F99FW if it's possible does anybody tell me how can I do?
Thanks a lot,
Regards,
RebecaHi Rebeca,
You can surely do a selection from a projection and database view but not from a maintenance view.
The selection from a view works like a normal selection only.
watch this link
http://sap.ionelburlacu.ro/abap/ABAPperformance.html#Select_with_view
Regards,
Manish
Edited by: MANISH GUPTA on Aug 31, 2008 1:38 PM -
If Possible to make a Image from
Hello
I have a doubt, Well I have a System where Exist a Server a three station of Work, Two PC (Station Work) are Ultra 5 (Very Old)
The Idea is to change these computer by Ultra 80 Station (Because we have this type of machine in my Store)
Is possible to make a Image of the disk of the Ultra 5 and copy this information to Ultra 80?
If this is possible, I would Like to help me,
Regard
AndresSince the NI-DAQ driver software is multithreaded, a multiprocessor system would have enhanced performance over a single processor system. Either way, you can have multiple handshaking digital I/O cards in a system for high speed acquisition, granted you have enough operating system resources (DMA, IRQ) for the cards.
You can find more information about this by going to the http://www.ni.com/support page and searching All Technical Resources for the keyword "multiprocessor". You will find an excellent NI Developer Zone presentation, as well as tutorials and other technical documents.
Geneva L.
Applications Engineer
National Instruments
http://www.ni.com/ask -
Extract Multiple Rows from a Single Table into a Single Row in a New Table
I have a table in a database that contains contact data like name, address, phone number, etc.
The folks who designed the database and wrote the application wrote it so that all contact records are placed in that table, regardless of contact type. In fact, the contacts table does not even have a column for "type" even though there are many
different types of contacts present in that table.
I am trying to write a mail merge style report in SRSS, that gets sent to a specific type of contact, based on criteria provided that must be obtained from another table, and that data is then used to get back to a specific set of contacts from the contacts
table.
The attached file directly below describes my problem and all related information in an extremely detailed way.
SRSSMailMergeIssue.pdf
Unless there is a way to make a SRSS Tablix point to two different data sets in SRSS, it looks like I have to combine multiple rows from the same table into a new table.
If anyone can review the details in the attached pdf file and possibly point me in the direction I need to run to solve this probelm, I would greatly appreciate it.
I also included a document (below) that shows the tables I reference in the probelm description.
dbtables.pdfI found a solution.... and posted it below
select
dk.ucm_docketnumber [UCM DocketNumber],
dk.ucm_docketid [UCM DocketID],
vc.FirstName [Victim FirstName],
vc.MiddleName [Victim MiddleName],
vc.LastName [Victim LastName],
vc.Suffix [Victim Suffix],
vc.Address1_Line1 [Victim AddressLine1],
vc.Address1_Line2 [Victim AddressLine2],
vc.Address1_Line3 [Victim AddressLine3],
vc.Address1_City [Victim City],
vc.Address1_StateOrProvince [Victim StateProvince],
vc.Address1_PostalCode [Victim Postalcode],
oc.FirstName [Offender FirstName],
oc.MiddleName [Offender MiddleName],
oc.LastName [Offender LastName],
oc.Suffix [Offender Suffix],
oc.Address1_Line1 [Offender AddressLine1],
oc.Address1_Line2 [Offender AddressLine2],
oc.Address1_Line3 [Offender AddressLine3],
oc.Address1_City [Offender City],
oc.Address1_StateOrProvince [Offender StateProvince],
oc.Address1_PostalCode [Offender Postalcode],
pc.FirstName [Arresting Officer FirstName],
pc.MiddleName [Arresting Officer MiddleName],
pc.LastName [Arresting Officer LastName],
pc.Address1_Line1 [Arresting Officer AddressLine1],
pc.Address1_Line2 [Arresting Officer AddressLine2],
pc.Address1_Line3 [Arresting Officer AddressLine3],
pc.Address1_City [Arresting Officer City],
pc.Address1_StateOrProvince [Arresting Officer StateProvince],
pc.Address1_PostalCode [Arresting Officer Postalcode]
FROM ucm_docket dk
left outer join ucm_victim v on dk.ucm_docketid = v.ucm_docketnumber
left outer join contact vc on vc.contactid = v.ucm_victimlookup
left outer join ucm_offender o on o.ucm_offenderid = dk.ucm_offenderlookup
left outer join contact oc on oc.contactid = o.ucm_individualid
left outer join contact pc on pc.contactid = dk.ucm_ArrestingOfficerLookup
WHERE (dk.ucm_docketnumber = @DocketNUM) -
Is it possible to make web app from WAR case insensitive?
We were running Web app on NT platform in exploded mode (Weblogic 6.0). Now we
made a WAR file. And now we’ve figured out that web app became case sensitive
in terms of jsp names and paths to those jsp. Is there any way to make it case
insensitive?
Andre, go to our BEA WebSupport portal here
http://support.bea.com/welcome.jsp and login (you'll need to register if you
do not have a login), and use the AskBEA feature to ask "is web app url
case-sensitive?" Look under the section "The Following have been found from
our newsgroup:". There's several customer posting on url case
sensitivity/insensitivity that will benefit you.
Regards,
Joseph Nguyen
BEA Support
"Andre" <[email protected]> wrote in message
news:3d4b24fc$[email protected]..
>
> We were running Web app on NT platform in exploded mode (Weblogic 6.0).
Now we
> made a WAR file. And now we’ve figured out that web app became case
sensitive
> in terms of jsp names and paths to those jsp. Is there any way to make it
case
> insensitive?
-
Multiple Joins from one Dimension Table to single Fact table
Hi all,
I have a single fact table with attributes as such:
Action_ID
Action_Type
Date_Started
Date_Completed
and a Time Dimension to connect to the fact table. Currently the 2 Date columns in my fact table are in the format of 20090101 (which is the same as my key in the time dimension), if it means anything. I've tried to create multiple joins but have been getting error messages. What is the easiest way to link the time dimension with the two date columns in my fact table? Thanks.hi..
it seems to be, you need to use between operator to join time dimension with fact (i.e. Non-equi join)
If it's then you should create complex join in physical layer by connecting dimension with your fact.
select columns and operators in such a way that it resembles something like the below.
timeDimension.timeKey BETWEEN FactTable.Date_Started AND FactTable.Date_Completed -
Is it possible to create a PDF from a single response?
I can only export the entire table, but I would like to create an individula PDF based on the response of a single submittal.
Is this fucntion available? If so, where?Check out this FAQ: http://forums.adobe.com/docs/DOC-1383
-
Insert records from a single table to two related tables
DB - 10G
OS - XP
We have many thousands of comma delimited records that we want to insert into a normalised table structure.
I have created a test dataset that can be found at the end of this post.
I have csv records that look like this;
donald, huey
donald, dewey
donald, louie
And I want the data to be inserted into two separate table like this;
table named PARENTS
pk parent_name
1 donald
Table named CHILDRENS
pk fk child_name
1 1 huey
1 2 dewey
1 3 louie
I constructed an insert statement that looks like this;
INSERT ALL
INTO parents (parent_id, parent_name) VALUES (parents_seq.nextval, parent_name)
INTO children (children_id, parent_id, child_name) VALUES(children_seq.nextval, parents_seq.nextval, child_name )
SELECT parent_name, child_name
FROM sources;
And this resulted in the following;
Table named PARENTS
pk child_name
1 DONALD
2 DONALD
3 DONALD
Table named PARENTS
pk fk child_name
1 1 HUEY
2 2 DEWEY
3 3 LOUIE
Would anyone have any ideas on how I could accomplish this task?
This is some example data;
[code]
DROP SEQUENCE parents_seq;
DROP SEQUENCE sources_seq;
DROP SEQUENCE children_seq;
DROP TABLE sources;
DROP TABLE children;
DROP TABLE parents;
CREATE SEQUENCE PARENTS_SEQ MINVALUE 1 MAXVALUE 1000000000000000000000000000 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE;
CREATE TABLE PARENTS
( PARENT_ID NUMBER(8) NOT NULL
, PARENT_NAME VARCHAR2 (50 CHAR) NOT NULL
, CONSTRAINT PARENTS_PK PRIMARY KEY (PARENT_ID)
create or replace
TRIGGER PARENTS_BI
BEFORE
INSERT OR UPDATE ON PARENTS
FOR EACH ROW BEGIN
IF INSERTING THEN
IF :NEW.PARENT_ID IS NULL THEN
SELECT PARENTS_SEQ.nextval INTO :NEW.PARENT_ID FROM dual;
END IF;
END IF;
END;
CREATE SEQUENCE SOURCES_SEQ MINVALUE 1 MAXVALUE 1000000000000000000000000000 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE;
CREATE TABLE SOURCES
( SOURCE_ID NUMBER(8) NOT NULL
, PARENT_NAME VARCHAR2 (50 CHAR) NOT NULL
, CHILD_NAME VARCHAR2 (50 CHAR) NOT NULL
, CONSTRAINT SOURCES_PK PRIMARY KEY (SOURCE_ID)
create or replace
TRIGGER SOURCES_BI
BEFORE
INSERT OR UPDATE ON SOURCES
FOR EACH ROW BEGIN
IF INSERTING THEN
IF :NEW.SOURCE_ID IS NULL THEN
SELECT SOURCES_SEQ.nextval INTO :NEW.SOURCE_ID FROM dual;
END IF;
END IF;
END;
INSERT INTO SOURCES (PARENT_NAME, CHILD_NAME) VALUES ('DONALD', 'HUEY');
INSERT INTO SOURCES (PARENT_NAME, CHILD_NAME) VALUES ('DONALD', 'DEWEY');
INSERT INTO SOURCES (PARENT_NAME, CHILD_NAME) VALUES ('DONALD', 'LOUIE');
Commit;
CREATE SEQUENCE CHILDREN_SEQ MINVALUE 1 MAXVALUE 1000000000000000000000000000 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE;
PROMPT *** CREATE TABLE ***
CREATE TABLE CHILDREN
( CHILDREN_ID NUMBER NOT NULL
, PARENT_ID NUMBER NOT NULL
, CHILD_NAME VARCHAR2 (50 CHAR) NOT NULL
, CONSTRAINT CHILDREN_PK PRIMARY KEY (CHILDREN_ID)
create or replace
TRIGGER CHILDREN_BI
BEFORE
INSERT OR UPDATE ON CHILDREN
FOR EACH ROW BEGIN
IF INSERTING THEN
IF :NEW.CHILDREN_ID IS NULL THEN
SELECT CHILDREN_SEQ.nextval INTO :NEW.CHILDREN_ID FROM dual;
END IF;
END IF;
END;
[code]Looks like this is one way of achieving it:
insert into parents (parent_name) select distinct parent_name from sources;
select *
from parents;
PARENT_ID PARENT_NAME
1 DONALD
insert into children (parent_id, child_name)
select p.parent_id, s.child_name
from sources s
join parents p
on (s.parent_name = p.parent_name);
select *
from children;
CHILDREN_ID PARENT_ID CHILD_NAME
1 1 HUEY
2 1 DEWEY
3 1 LOUIE -
How do you make an Image from a Graphics?
1) Is it possible to make an Image from a graphics?
I've returned the Graphics of an image in the method of one class so that I can work with it in another class. I was looking for a setGraphics in the Image class but there isn't one. Nor is there a graphics.createImage(). What I'd really like to do is get the background image, draw on it in a separate class, then return it to the original class (for buffering purposes).
2) is there any way to make a blank Image of given dimensions (without actually making a .gif of a blank screen)? I want to draw on the background even if it is blank, but I can't get the Graphics of a null Image.
thanks in advance.. :-) jenthanks for all your help guys!
i looked at those websites.
The reason why the site's buffered images work is becuase they are using the paint method in a single class. (i.e. they are not calling the graphics from someplace else). If you call a Graphics (using getGraphics and the like) from someplace else, you don't get a reference or pointer; you get a COPY. The copy will helpfully record your instructions. But the original graphics doesn't get the instructions. That's my problem. My graphics instructions are not getting sent to the originating Graphics, so drawRect never gets executed.
Another problem is that I often have no background picture in my container, and hence, I have a null pointer when I try to draw stuff on the returned Graphics.
So what I want to do is create an image in the subclass of the rectangles, lines, whatever, and send it to my handy little setBackground(Image im) method in my superclass. And whenever the background image is null, create a white image to draw on.
I am calling the graphics from the background of a custom lightweight container. I would REALLY REALLY not like to mess with my container code... it took me a long time to get it working.
I also don't want to override paint. That would make all the buffering work I did obsolete. :-(
Maybe you are looking for
-
can any get me code interactive sales performance analysis report, comparing performance of sales in a sales organization over a user specified date range.
-
No longer possible to burn CD's after upgrade to iTunes6.0.4.2.
Hi all impacted iTunes users. Apparently more and more users face the same or similar problems when trying to burn a CD. Firstly I would like to post my CD Diagnostics. Microsoft Windows XP Professional Service Pack 2 (Build 2600) FUJITSU SIEMENS SCE
-
After Effects Multi-Core Benchmarks
I have been doing some testing trying to figure out how fast after effects renders and how to help it render faster. So far i have been very dissapointed with the results. no matter how much money we spend buying the fastest systems we can i cant see
-
I'm at the end of my wits. Please help.
Greetings, My Acrobat 8 will not print in Portrait Mode. It is set to print in this mode as well as all my three printers. However, Preview in Acrobat shows the size of the page 11X17 in portrait mode, and when I click on it it switches to 9X11 Lands
-
Trouble Setting Mac Up To Windows Network Printer
I have an HP printer set up to an HP desktop PC, and also have my wireless router set up to that computer. The printer says it is ready to share on the PC, but I can't seem to find it on my Mac. I found it before, but it wouldn't print out anything b