How to find out common values across records
Example
I have to query employee city information
select distinct limitation_code from limitation where product_id in (1,2,3,4)
each product can have 1 or more limitation code. I want to find common limitation code among all products. which occurs in all products.
In put will be given using in operator not individually as this will be a subquery.
Please anyone's help is appreciated.
try:
select distinct limitation_code from (
select limitation_code, count(distinct product_id) over () prod_cnt,
count(distinct product_id) over (partition by limitation_code) prod_lim_cnt,
from limitation where product_id in (1,2,3,4)
where prod_cnt = prod_lim_cnt
Similar Messages
-
How to find out insertion time of records in an oracle table
Hi everybody,
I have a table with about 50,000 records in my Oracle database and there is a date column which shows the date that each record get inserted to the table, for example 04-Aug-13.
Is there any way that I can find out what time each record has been inserted?
For example: 04-Aug-13 4:20:00 PM. (For my existing records not future ones)
I searched over the internet and find some results but none of them seem to be practical.
Thanks for your help.I have a table with about 50,000 records in my Oracle database and there is a date column which shows the date that each record get inserted to the table, for example 04-Aug-13.
Is there any way that I can find out what time each record has been inserted?
For example: 04-Aug-13 4:20:00 PM. (For my existing records not future ones)
First you need to clarify what you mean by 'the date that each record get inserted'. A row is not permanent and visible to other sessions until it has been COMMITTED and that commit may happen seconds, minutes, hours or even days AFTER a user actually creates the row and puts a date in your 'date column'.
Second - your date column, and ALL date columns, includes a time component. So just query your date column for the time.
The only way that time value will be incorrect is if you did something silly like TRUNC(myDate) when you inserted the value. That would use a time component of 00:00:00 and destroy the actual time. -
How to find out the values which are assigned in authority group
Hi to all
Please tell me where can I find out the values which are assigned in authority object according to roles.
for ex :
Changed Customer: Account Authorization F_KNA1_BED
Changed Customer: Account Authorization T-DR50175601
Activity 01, 02, 03, 08 ACTVT
Authorization Group 5100 BRGRU
F_KNA1_BED is the authority object , assigned to one user.
He can access the authorization group 5100. I want to check that value in my program.
How ?
Where it is stored.
Please help me....
Regards
Anubhav GuptaHi Anubhav,
Please use this FM "SUSR_USER_AUTH_FOR_OBJ_GET" and pass the object name in it . You would get the values for that particular object.
Thanks
Nitin Sachdeva -
How to find out the value a method is returning using JDI
Is it possible to find out what value (not simply the type) a method returns. I'd have thought there would be some access under MethodExitEvent but I can't find anything.
Is it possible to find out what value (not simply the
type) a method returns.There's currently no way to access a method's return value in
method exit events
This is Bug Id: 4195445
Synopsis: JVMDI spec: Add return value to Method Exit Event
http://developer.java.sun.com/developer/bugParade/bugs/4195445.html
See also:
http://developer.java.sun.com/developer/bugParade/bugs/4813046.html
This will be fixed in the next major release of J2SE (code named 'tiger') -
How to find out the values of the pagecontrol
Is it possible to find out the values of the pageitems in the request?
hi
keith posted an excellent code snipplet in the subject "A way to convert selection from query builder in DML language ", which can be found here :A way to convert selection from query builder in DML language
ny tweaking the settings, you can retrieve the dimension members on the page axis, assuming that this is what you intended
regards,
thomas -
How to find out default value of parameter in stored function???
Hi,
is there any kind (metadat) how to get default value of parameter of stored function???
thxthat's where it's supposed to be, but it doesn't seem to work correctly. I checked on 9 & 10, and the DEFAULT_VALUE column is always null on both. in fact, the underlying column (sys.argument$.default$) is also always null.
-
How to find out thr value of USER_DUMP_DEST?
As titled.
user10501597 wrote:
Hi,
Thanks for the link.
But it seems it doesn't tell how to configure the location for the XA-Trace file :-)3 things we know.
1. you have trace files in the wrong locations
2. theyre XA trace files (I know this from sitting on the sofa of long experience)
3. that link tells you how to change the location
And I quote....
Trace File Locations
The XA application determines a location for the trace file according to the following algorithm:
The LogDir directory specified in the open string.
If you do not specify LogDir in the open string, then the Oracle XA application attempts to create the trace file in the following directory (if the Oracle home is accessible):
*%ORACLE_HOME%\rdbms\trace on Windows*
*$ORACLE_HOME/rdbms/log on Linux and UNIX*
If the Oracle XA application cannot determine where the Oracle home is located, then the application creates the trace file in the current working directory.
So which bit are you not getting? -
Find out decimal value in oracle
Hi,
how to find out decimal value in oracle
eg, select find_decimal(10.55) from dual --> should give .55
20.432 --> .432
pls helpLike this?
SQL> ed
Wrote file afiedt.buf
1 with t as (select 10.55 as dec_num from dual)
2 --
3 select dec_num - trunc(dec_num) as dec_part
4* from t
SQL> /
DEC_PART
.55
SQL> -
How to find out that a record is empty or null
hi
how can i find out that a record is empty or null.
in other languages when a object or record is not initialized it will be null.
after initialization how can i find out its values are null. so far i tried this
declare
v_r_emp emp%rowtype := null;
BEGIN
if (v_r_emp is null) then
dbms_output.put_line('record is not initialized');
end if;
END;
it seems in plsql we can assign null but cannot compare it with null clause why? if we are able of assign null we must should about to compare it with null too.
also how record can be made empty. how can we find out that a record variable is empty
please help me to understand the concept
thanksYou need to check every element in the record.
-
Hi ,
How to find out the latest Record in per_all_people_f and per_all_assignments_f
Requirement : Need to find out the latest record in per_all_people_f and per_all_assignments_f to update the attribute column with pre defined value . Its not possible to track only with person_id / assignment_id and effective end date
SELECT pp_id
FROM (SELECT app.person_id pp_id,
asf.*
FROM apps.per_all_people_f app,
apps.per_all_assignments_f asf
WHERE --app.person_id=123568 and
asf.person_id = app.person_id AND
app.effective_end_date = to_date('31-dec-4712') AND
asf.effective_end_date = to_date('31-dec-4712')
GROUP BY app.person_id)
HAVING COUNT(pp_id) > 1
GROUP BY pp_id
This query also returns more than 1 value for person_id .
It would be great if you put comment on this .. Thanks in advance ,
AryaI am getting more records with asf.primary_flag='Y' . If you give ur mail id , i will send the sample data
ASSIGNMENT_ID EFFECTIVE_START_DATE EFFECTIVE_END_DATE BUSINESS_GROUP_ID RECRUITER_ID GRADE_ID POSITION_ID JOB_ID ASSIGNMENT_STATUS_TYPE_ID PAYROLL_ID LOCATION_ID PERSON_REFERRED_BY_ID SUPERVISOR_ID SPECIAL_CEILING_STEP_ID PERSON_ID RECRUITMENT_ACTIVITY_ID SOURCE_ORGANIZATION_ID ORGANIZATION_ID PEOPLE_GROUP_ID SOFT_CODING_KEYFLEX_ID VACANCY_ID PAY_BASIS_ID ASSIGNMENT_SEQUENCE ASSIGNMENT_TYPE PRIMARY_FLAG APPLICATION_ID ASSIGNMENT_NUMBER CHANGE_REASON COMMENT_ID DATE_PROBATION_END DEFAULT_CODE_COMB_ID EMPLOYMENT_CATEGORY FREQUENCY INTERNAL_ADDRESS_LINE MANAGER_FLAG NORMAL_HOURS PERF_REVIEW_PERIOD PERF_REVIEW_PERIOD_FREQUENCY PERIOD_OF_SERVICE_ID PROBATION_PERIOD PROBATION_UNIT SAL_REVIEW_PERIOD SAL_REVIEW_PERIOD_FREQUENCY SET_OF_BOOKS_ID SOURCE_TYPE TIME_NORMAL_FINISH TIME_NORMAL_START BARGAINING_UNIT_CODE LABOUR_UNION_MEMBER_FLAG HOURLY_SALARIED_CODE REQUEST_ID PROGRAM_APPLICATION_ID PROGRAM_ID PROGRAM_UPDATE_DATE ASS_ATTRIBUTE_CATEGORY ASS_ATTRIBUTE1 ASS_ATTRIBUTE2 ASS_ATTRIBUTE3 ASS_ATTRIBUTE4 ASS_ATTRIBUTE5 ASS_ATTRIBUTE6 ASS_ATTRIBUTE7 ASS_ATTRIBUTE8 ASS_ATTRIBUTE9 ASS_ATTRIBUTE10 ASS_ATTRIBUTE11 ASS_ATTRIBUTE12 ASS_ATTRIBUTE13 ASS_ATTRIBUTE14 ASS_ATTRIBUTE15 ASS_ATTRIBUTE16 ASS_ATTRIBUTE17 ASS_ATTRIBUTE18 ASS_ATTRIBUTE19 ASS_ATTRIBUTE20 ASS_ATTRIBUTE21 ASS_ATTRIBUTE22 ASS_ATTRIBUTE23 ASS_ATTRIBUTE24 ASS_ATTRIBUTE25 ASS_ATTRIBUTE26 ASS_ATTRIBUTE27 ASS_ATTRIBUTE28 ASS_ATTRIBUTE29 ASS_ATTRIBUTE30 LAST_UPDATE_DATE LAST_UPDATED_BY LAST_UPDATE_LOGIN CREATED_BY CREATION_DATE TITLE OBJECT_VERSION_NUMBER
931510 7-Nov-08 31-Dec-12 122 (null) (null) (null) 3978 1 (null) 14402 (null) 220150 (null) 734956 (null) (null) 476 (null) (null) (null) (null) 2 E Y (null) 100035417-2 (null) (null) (null) 45948739 (null) (null) (null) (null) (null) (null) (null) 868007 (null) (null) (null) (null) 449 (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null)
797386 26-Aug-08 26-Aug-08 122 (null) (null) (null) 3980 3 (null) 14402 (null) 218925 (null) 734956 (null) (null) 476 (null) (null) (null) (null) 1 E Y (null) 100035417 (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) 740071 (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null)
916076 26-Aug-08 31-Dec-12 122 (null) (null) (null) 3980 1 4 14402 (null) 218925 (null) 734956 (null) (null) 476 (null) (null) (null) (null) 1 B Y (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null)
797386 25-Feb-08 25-Aug-08 122 (null) (null) (null) 3980 1 (null) 14402 (null) 218925 (null) 734956 (null) (null) 476 (null) (null) (null) (null) 1 E Y (null) 100035417 (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) 740071 (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) (null) -
How to find out the account group information in customer master record?
how to find out the account group information in customer master record?
in which tab? thanks in advanceHi
Go to XD02 and select the Extras from the main menu , you will find Account group info -> click on the No.ranges.
reward if it helps
SR -
How to find out the common things between two rpds?
How to find out the common things between two rpds? And place the common things in a common RPD.
I thought of one solution.
Original RPD = A
Modified RPD = B
XML Patch created for A-B = X
Now open the XML Patch in IE or Mozilla and delete the columns/tables/variable/etc,. from the Original RPD A.
But its a cumbersome process, if the XML file is of very less size its Ok. If its 10-20 MB then going line by line and deleting the change is not the process to be followed.
I have to check whether its just the delete or modify or drop.
Let me know your thoughts. -
How to find out the structure stored field value in a standard program
Hi Gurus,
Please suggest me how to find out the structure field stores the value in which table.
Exanple : i have a strutured field in T.code cj31 is BPDY-WERT1 and it is stotring value 10,000,000.00. know i need to find out in which table this value is storing .
Please suggest me its urgent.
Thanks in Adavance!!!
Points will be rewarded.......
Regards,
Kranthihi,
Go to transaction ST05,Click activate trace with filter,Give the transactio name as cj31,Go to the transaction and navigate to the place where the particular field is present, then again go to st05 ,Deactivate the trace and display the trace.
Now u can see how the data is fetched ,U can even go to display mode of the same transaction cj33
Thanks
San -
Hi,
I am trying to find out the latest delivery date(EINDT) for each purchasing document (EBELN) through graphical way.
The view contains other fields apart from the above mentioned two fields.
When only the two fields (EBELN, EINDT) are there, then in semantics, I can select 'Max' as aggregation to get the maximum value for each document.
If I do like this, then I need to join more than 3 views and also so many joins in calculation view. Taking so much time for data preview.
Hence , please help me in getting the solution while the view contains other fields also.
Thanks in advance.
Thanks,
JyothirmayiHi Sreehari/Vinoth,
Thank you for your replies.
if only two fields are then I can get the max/min values of one field corresponding to other field.
But more than two fields are there with different values, then let me know how to find out the max/min value of a particular filed corresponding to the 2nd field with other fields also should be in the output.
I hope you understood my issue.Please revert in case of questions.
Thanks & Regards,
Jyothirmayi -
How to find out the n number of records inserted??
In File to JDBC Scenarios, i am inserting n records in Oracle.
How to find out the n number of records inserted??Hi,
If you are using the statement "UPDATE_INSERT", get the response on element <insert_count>count</insert_count>. It will give you the inserted rows.
This link can be very helpfull.
[http://help.sap.com/saphelp_nw2004s/helpdata/en/2e/96fd3f2d14e869e10000000a155106/frameset.htm]
regards.
roberti
Maybe you are looking for
-
Itunes won't open or reinstall
When I try to open Itunes it says it can't because some of the needed files are missing, please reinstall. When I try to reinstall or uninstall, it says the feature I'm trying to use is on a network resource that is unavailable . . . enter a new path
-
Why on my screen is the text not all showing, it is overlapped by other txt or graphics?
on some windows the graphics are out of place and over lap text, in other cases text overlaps text as if the entire page is not showing as it should, it makes reading the window, page impossible.
-
Hi Plz send me the answer of the following questions: 1). What are the two possible ways of control for the cost of material in the material master card ? 2). What is the valuation class? Thanking You, Raj.
-
Two BW systems connecting to an OLTP system
We are upgrading our BW systems(3.5) to BI 7.0. We are planning for a parallel Break-fix path. so we made a copy of our BW dev system(BWS) BWS-BWQ-BWP BWS2-BWQ2 BWS2 is a copy of BWS and plan to upgrade it to BI 7.0 .we plan to retire BWS after upgr
-
I recently changed country associated with my itunes account. My music has stayed on my iphone but I am outraged to discover that when moving country and you change your bank details that your previous movie purchases seem to disappear. Is this corre