How to get all rows that are returned in inner sub query of select statemen
If a sub query in select statement returns more than one row than how to get all those returned rows in the final
output of the query .It will be all right if all column's value repeat and that multiple output of inner query comes
in another column .
How to get that ?
As Frank said, you likely want a join, and likely an outer join to replicate the select in the projection. Something like:
SELECT id,stat, section, USER_ID concerned_person
FROM table_all,
left join table2
on room_id = sectoion and
sur_role = 'r001'
WHERE section IN (SELECT code
FROM t_area
WHERE dept= 'p002')An alternative, depending on where and how you are using the statement would be something like:
SQL> WITH t AS (
2 select 1 id from dual union all
3 select 2 id from dual),
4 t1 as (
5 select 1 id, 'One' descr from dual union all
6 select 1, 'Un' from dual union all
7 select 1, 'Une' from dual)
8 SELECT t.id, CURSOR(SELECT t1.id, t1.descr from t1
9 WHERE t1.id = t.id)
10 FROM t;
ID CURSOR(SELECTT1.ID,T
1 CURSOR STATEMENT : 2
CURSOR STATEMENT : 2
ID DESCR
1 One
1 Un
1 Une
2 CURSOR STATEMENT : 2
CURSOR STATEMENT : 2
no rows selectedJohn
Similar Messages
-
Can someone tell me how to get my apps that are on my ipad to appear on my TV using Apple Tv
Can someone tell me how to get my apps that are on my IPad to be viewed on my Apple TV?
Welcome to the Apple Community Coachcad.
Basic AirPlay: Assuming both devices are on the same network and that AirPlay is not turned off on the Apple TV, then simply tap on the screen when you are watching content you wish to stream to your Apple TV, then tap the airplay icon that appears in the control bar, choose the Apple TV from the menu that appears.
Mirroring: When displaying the content you wish to mirror on the iPad 2 (or better), iPad Mini, iPhone 4S (or better), swipe from the bottom of the screen, tap the AirPlay icon and choose your Apple TV from the list of devices (iOS 7 or better) or double tap the home button (quickly) and swipe the bottom row of apps to the right to reveal the playback controls, tap the AirPlay icon and select your Apple TV from the list of available devices (pre-iOS7) -
How to get all rows in table to red using alternate rows properties option
How to get all rows in table to red using alternate rows properties option
Hi Khrisna,
You can get all rows red by selecting the color red in the "Color" and "frequency" to 1 under the "Alternate Row/Column colors".
I tried doing it and the colors freaked me out (all red) :-D
Kindly tell me if im missing something.
Regards,
John Vincent -
How to see all devices that are connected to Apple ID
How to see all devices that are connected to Apple ID
Are you using a software to see all devices that are supposed to be connected to your router? You can reset and start over with your router. Make sure you have a security enabled on it like WPA Personal. You can try DHCP Reservation as well to ensure that the devices that will have access to your router are only the ones you included on the list.
-
How to list all calendars that are shared to a specific user?
Hi,
Using Exchange Management Shell/Powershell, I want to list all calendars that are shared to a specific user 'myuser'.
I have tried different approaches; list all calendars for all users and then figure out which ones are shared to 'myuser', list all mailboxfolders for 'myuser' with path 'calendar' and sort out the shared ones, ... No luck so far.
Anybody?
babuHi
If you try this command:
Get-MailboxPermission MyUser -
How to log all messages that are in JtextArea
Hi all
how would i log all message that are in the JTextArea????
i know of java.util.logging but cant find any usefull tutorials on them.......can someone show me the way to go!
Thanks
DilipYeah dude, I could. But what would that accomplish? Oh sure, that may be some cultural pressure; you know, help out a Hindu-bhai kinda thing, but nah... My giving you the answer won't serve to help you in the long run.
Ask yourself a couple of questions. Shall I log the information simultaneously (to the JTextArea and the file) or shall I write all the information to the text area first and then to the log file? Is the information in the log fle going to be different than that in the JTextArea because, for example, it is needed for audit purposes?
I hope I stimulated you think more about the requirements and possible solutions. -
How to get all rows/cols in pivot even if fact values are not available
If I have a a result set and then pivot on it then only the side/top labels appear for items with fact values. Is there any way to achieve the following :
Result Set gives the following pivot table
Area1 Area3
country 1 100 10
country 3 200 20
If there any way to ensure that pivot shows all row and column values and then fills in 0 for the missing facts ?
ie.
Area1 Area2 Area3
Country1 100 0 10
Country2 0 0 0
Country3 200 0 20
hope this makes sense. Basically I have a static format Excel report that the information is exported to and sometimes at the beginning of the month the daily report does not show all rows.
Thanks
Kevinouter join your dimensions to the facts so that all the dimensions are there
-
How to get all rows of an attribute data from a table?
Hello.. I´m using Jdev 10.1.3.2
I have a table with 5 columns and N rows.
I need to create a backing bean method to count the value of all rows of a specifc column.
I use
JUCtrlValueBindingRef selectedRowData= (JUCtrlValueBindingRef)myTable().getSelectedRowData();
to get an attribute from a selected row. but How can get from all rows?
Thank you
VandréHi Vandré
I think this example of Steve Muench will help you.
"Recalc Sum of Salary at the View Object Level
This example illustrates a technique where a transient attribute of a view object is updated to reflect the total sum of some attribute of all the rows in the view object's default row set. The code to recalculate the sum of the salary is in the getSumOfSal() method in the EmpViewImpl.java class. The custom EmpViewRowImpl.java class for the view row implements the getter method for the SumOfSal attribute by delegating to this view object method. The EmpViewImpl class extends a base DeclarativeRecalculatingViewObjectImpl class that contains some generic code to enable declaratively indicating that one attribute's change should recalculate one or more other attributes. The EmpView defines the "Recalc_Sal" property to leverage this mechanism to recalculate the "SumOfSal" attribute. If you restrict the VO's results using the BC Tester tool, you'll see the sum of the salaries reflects the subset. If you add a new row or delete an existing row, the sum of sal is updated, too."
http://otn.oracle.com/products/jdev/tips/muench/recalctotalvo/RecalcTotalOfRowsInVO.zip
Good Luck -
How to get the row that has failed due unique constriant voilation
Does any body knows how I can get the column values for rows that has failed on unique contriant voilation, I am using 10gr2.
Also we don't have license for shadow table error logging, otherwise I could have gotten the row from there.
Any help will be highly appreciated.
Thanks,
RaviHi Ravi,
Prior to OWB 10.2.0.3 you can use the DML error logging features only for the mappings which runs
in ROW based mode.
But from OWB 10.2.0.3 onwards DML error logging features can be used for SET based mappings also.
You can refer the following Metalink notes for the same
1. Note 550036.1 DML Error Logging In OWB 10.2.0.3 And OWB 11g
2. Note 549845.1 How To Use Data Rules And Error Tables Features In OWB10gR2
Thanks,
Sutirtha -
Using ldap Network Management Functions how to get nested groups that are members of a parent group
Using NetLocalGetMembers() I can get the users withing a group
Using NetUserGetGroups() I can get the groups a user is part of.
However, I cant find a function that will list the GROUPS that are part of another group.
I have a group called APP_ADMIN, it has user1, user2 and also groups ADMIN_GRP_A and ADMIN_GROUP_B
I need a function to return ADMIN_GROUP_A, ADMIN_GOUP_B if I pass in APP_ADMIN
or Alternativly, given ADMIN_GROUP_A give me its parent group (APP_ADMIN)
I am writing a C++ dll that accesses these functions.Hi,
Plz check this link.
http://gallery.technet.microsoft.com/scriptcenter/Get-nested-group-15f725f2
Ashish Gaur -
How to find all routes that are going out an interface in IOS-XR.
Hi all,
So if I have the following set up in IOS:
interface GigabitEthernet7/0/0.265
encapsulation dot1Q 265
ip vrf forwarding test
ip address 1.1.1.1 255.255.255.252
ip verify unicast reverse-path
end
ip route vrf Apollo 2.2.2.0 255.255.255.248 1.1.1.2
I can see all the routes that are going out the interface using show ip cef command:
ios-router#show ip cef vrf test GigabitEthernet7/0/0.265
2.2.2.0/29
nexthop 1.1.1.2 GigabitEthernet7/0/0.265
1.1.1.0/30
attached to GigabitEthernet7/0/0.265
1.1.1.2/32
attached to GigabitEthernet7/0/0.265
In case of IOS-XR (ASR9K 4.3.2 or 4.3.1) the same setup and command shows only
attached routes:
router static
vrf test
address-family ipv4 unicast
2.2.2.0/29 1.1.1.2
RP/0/RSP0/CPU0:TST_riga-sb7-pe-asr9#show cef vrf test bundle-ether2.265
Prefix Next Hop Interface
1.1.1.0/30 attached Bundle-Ether2.2220333
1.1.1.0/32 broadcast Bundle-Ether2.2220333
1.1.1.1/32 receive Bundle-Ether2.2220333
1.1.1.2/32 1.1.1.2 Bundle-Ether2.2220333
1.1.1.3/32 broadcast Bundle-Ether2.2220333
Is there any command to see all the routes that are going out an interface without complicated parsing
of the configuration, recursive show cef commands etc.?You can accomplish this with the "show route" command. Here is an example:
P/0/RSP1/CPU0:ASR9006-E#sh route next-hop tenGigE 0/3/0/2
Tue Oct 8 15:34:58.046 UTC
Codes: C - connected, S - static, R - RIP, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - ISIS, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, su - IS-IS summary null, * - candidate default
U - per-user static route, o - ODR, L - local, G - DAGR
A - access/subscriber, - FRR Backup path
Gateway of last resort is 172.18.87.1 to network 0.0.0.0
D 10.95.248.1/32 [90/128512] via 10.129.56.210, 4d00h, TenGigE0/3/0/2
C 10.129.56.208/30 is directly connected, 4d00h, TenGigE0/3/0/2
L 10.129.56.209/32 is directly connected, 4d00h, TenGigE0/3/0/2
O 10.242.142.240/30 [110/20] via 10.129.56.210, 3d11h, TenGigE0/3/0/2
[110/20] via 10.129.56.214, 3d11h, TenGigE0/3/0/3
D 192.168.1.16/32 [90/128512] via 10.129.56.210, 4d00h, TenGigE0/3/0/2
D 192.168.20.39/32 [90/128512] via 10.129.56.210, 4d00h, TenGigE0/3/0/2
RP/0/RSP1/CPU0:ASR9006-E#
Thanks,
Bryan -
How to get back windows that are off screen?
I use my macbook at work with one attached display, and then at home with a different attached display. The two extra displays are different sizes. A lot of times when I plug it into the smaller of the two displays, some of the windows come up off screen and I can't figure out how to drag them back on. For example now I have a Microsoft Word window where the bottom half is on the screen, and the top half is up above the top of the screen. The only way I know to move a window is to grab the top edge and drag it, but the top edge is off the screen so I can't do that.
Also sometimes a window is bigger than the screen height, and the only way I know to make it smaller is to drag the bottom right corner, but the bottom right corner is off the screen and the window height is bigger than the monitor height.
Is there a way to get these windows back all the way onto the screen? Thanks.This is one of the most serious flaws of the Macintosh, and in many instances there is just NO answer. You could resort to writing a script using the Script Editor, but this seems a tough way to get round what is essentially a bug in the OS - it has been there for over 20 years and I don't think Apple are about to realise that the age of multiple screens and changing screen sizes is here NOW and it is time to change so we can resize from any border like all other modern OSs.
If you want to try the script approach - try this link for help:
http://www.transparen.com/macintosh-technical-support-group/window-offscreen -
How to get all authorized Business area values
hi i am on bw 3.5.
users are assinged with Role1, role2, role3 etc.,
role1 assigns users with business area values 100..200
role2 assigns users with business area values 200..250
role3 assigns users with business area values 150..210
now i want to FIND any standard report or create any custom report/program which will output me
USER with all AUTHORIZED VALUES with BUSINESS AREA....
in this case its USER1 = 100.....250 basically...
maybe something like basically WHAT USERS ARE AUTHORISED FOR REPORTING ...
how to check this with specific characteristics...
or which table????PFB authorization related tables FYI.
USR02 Logon data
USR04 User master authorization (one row per user)
UST04 User profiles (multiple rows per user)
USR10 Authorisation profiles (i.e. &_SAP_ALL)
UST10C Composit profiles (i.e. profile has sub profile)
USR11 Text for authorisation profiles
USR12 Authorisation values
USR13 Short text for authorisation
USR40 Tabl for illegal passwords
USGRP User groups
USGRPT Text table for USGRP
USH02 Change history for logon data
USR01 User Master (runtime data)
USER_ADDR Address Data for users
AGR_1016 Name of the activity group profile
AGR_1016B Name of the activity group profile
AGR_1250 Authorization data for the activity group
AGR_1251 Authorization data for the activity group
AGR_1252 Organizational elements for authorizations
AGR_AGRS Roles in Composite Roles
AGR_DEFINE Role definition
AGR_HIER2 Menu structure information - Customer vers
AGR_HIERT Role menu texts
AGR_OBJ Assignment of Menu Nodes to Role
AGR_PROF Profile name for role
AGR_TCDTXT Assignment of roles to Tcodes
AGR_TEXTS File Structure for Hierarchical Menu - Cus
AGR_TIME Time Stamp for Role: Including profile
AGR_USERS Assignment of roles to users
USOBT Relation transaction to authorization object (SAP)
USOBT_C Relation Transaction to Auth. Object (Customer)
USOBX Check table for table USOBT
USOBXFLAGS Temporary table for storing USOBX/T* chang
USOBX_C Check Table for Table USOBT_C
Hope this would help you. Role related tables would help you resolve ur issue. -
How to find all tables that are associated with a given domain name.
I want to find all table, excluding the structures, of a given domain name, say, waers.
Some of the tables are directly contains the domains while others are related with a data element which is connected to that domain.
I want to find tables for all two case -either tables connected directly to the domain or connected via data element- and exclude the structures.
thanks in advance.Hi,
The following thing may help you.
in se11-> search for tables having names like 'DD*'.
From this list of tables you can find the required table to get domain, data element nad table name.
one way of doing it:
SELECT rollname domname
FROM dd04l
INTO CORRESPONDING FIELDS OF TABLE it_tab.
SELECT rollname tabname
FROM dd03l
INTO CORRESPONDING FIELDS OF TABLE it_tab1
FOR ALL ENTRIES IN it_tab
WHERE rollname = it_tab-rollname.
SORT it_tab1.
DELETE ADJACENT DUPLICATES FROM it_tab1.
LOOP AT it_tab1 INTO wa_tab.
MODIFY it_tab FROM wa_tab
TRANSPORTING tabname
WHERE rollname = wa_tab-rollname.
ENDLOOP.
LOOP AT it_tab INTO wa_tab.
WRITE:/ wa_tab-domname,
wa_tab-tabname.
ENDLOOP.
Regards,
Manoj Kumar P -
How to Show All Packages, That are not required by any other package
I need a way to see al the installed packages thar are not required by any other package
Thanks in advance ...You probably want pacman -Qt or pacman -Qdt
Check out man pacman.
Maybe you are looking for
-
Hi All: I placeed the picture http://www.cooldtp.cn/bbs/files/image004_202.gif into my document in Indesign CS3, but I found that the font color on the current page became darker after I placed it, how to resolve this? Thanks in advance.
-
Fund Management - Issues in Upgrade from 4.6C to ECC6
Hello, We are upgrading SAP Application for a client who is on 4.6C to ECC6. The client is currently using Funds Management in 4.6C. With ECC6 I understand that this functionality is moved into Public Sector and is available only on activation of IS-
-
Hi, I'm recreating ocr and voting disk as for a lab test on RHEL4(10gr2),for server side ons configuration for racgons ,what should be my port? below is the output from ons.config file .Should it be 6200 or 6101 for both nodes?Please let me know . ca
-
Hello, I purchased PS elements 12 for a windows pc. This pc died and I had to buy a new computer, I got a Macbook air, and since I had just downloaded PS elements 12 adobe was nice enough to send me the cd version for a mac in the mail. I did not hav
-
MacBook Pro-'the disk copy of "file name" was changed...'
My MacBook Pro has been running very slowly. Occasionally, the message 'The disk copy of "file name" was changed since you last opened of saved it. Do you want to save it anyway?" when attempting to save photoshop files. It also tells me my start up