Query to find 2 Way Match and 3 Way Match PO numbers
I need the details of a 2 way match and 3 way match PO Numbers. Please provide me the query to find such PO Numbers. Thanks in advance.
Are you trying to query for 3 different PO numbers? PO1 = aaa OR PO3 = bbb?
Similar Messages
-
Query to find universe modified date and modified by
Hi,
Is there a way we can query to find universe last modified by and modified date?.
I was not able to find a field to pull "modified by" info.
ThanksSreedhar,
I'm not exactly sure how you're going to get from Point "A" to Point "B", but here are the two points:
a) using QB you can perform a search as was specified in my last posting, which you point out only provides "owner"
b) if you have the Auditor portion running, then in the Audit_Detail table is the column "Detail_Type_ID" and each time a universe is accessed a code "2" is recorded and Detail_Text is loaded with the Universe name. If you join the Audit_Detail table to the Audit_Event table on Event_ID, then you'll have access to User_name and Start_Timestamp, which will show you who and when a Universe was accessed.
Thanks,
John -
Sql query to find activities between Login and Logout time
Hi ,
I have 2 tables as shown below
User Table
ActivityTable
i have a requirement in which i need to find all the activities done for a particular user inbetween login and logout time can anybody help me how to write sql query for this .Is this what you looking for?
DECLARE @User TABLE
userid INT,
date DATETIME,
type VARCHAR(50),
sessionid SMALLINT
DECLARE @ActivityTable TABLE
activityid SMALLINT,
userid SMALLINT,
activity VARCHAR(50),
activitystarttime DATETIME,
activityendtime DATETIME
INSERT INTO @User
(userid,
[date],
[type],
sessionid)
VALUES (1,
'2002-08-25 16:51:25.107',
'Logon',
111),
(1,
'2002-08-25 17:52:25.107',
'LOGOFF',
111),
(2,
'2007-03-08 19:25:21.170',
'Logon',
222),
(2,
'2007-03-08 21:25:21.170',
'LOGOFF',
222),
(3,
'2007-03-08 19:25:21.170',
'Logon',
234);
INSERT INTO @ActivityTable
(activityid,
userid,
activity,
activitystarttime,
activityendtime)
VALUES (234,
1,
'development',
'2002-08-25 16:53:23.101',
'2002-08-25 16:59:23.170'),
(789,
2,
'Testing',
'2007-03-08 19:53:23.180',
'2007-03-08 20:53:23.180'),
(789,
2,
'Lunch',
'2007-03-08 19:53:23.180',
'2007-03-08 20:53:23.180'),
(456,
3,
'Testing',
'2007-03-08 19:53:23.180',
'2007-03-08 20:53:23.180'),
(781,
1,
'Lunch',
'2002-08-25 17:00:23.101',
'2002-08-25 17:30:00.170'),
(781,
1,
'Lunch',
'2002-08-25 21:00:23.101',
'2002-08-25 22:30:00.170');
WITH logon
AS (SELECT date,
userid
FROM @User
WHERE type = 'Logon'),
logoff
AS (SELECT date,
userid
FROM @User
WHERE type = 'LOGOFF')
SELECT at.*
FROM @ActivityTable AT
INNER JOIN logon Lo
ON at.userid = lo.userid
INNER JOIN logoff LF
ON at.userid = lf.userid
WHERE At.activityendtime < LF.date
AND AT.activitystarttime > LO.date
Regards,
Vishal Patel
Blog: http://vspatel.co.uk
Site: http://lehrity.com -
Query to Find all the Tables and their corresponding columns,dataType in DB
Hi all,
I need a query which can give me all the Tables existing in my DB and their corresponding Columns existed for those tables and Datatype for each column .
Thanks in Advance,
viajyHi,
For your user tables you can use USER_TAB_COLUMNS.
Just give DESC USER_TAB_COLUMNS at your SQL> prompt.
You will know on that object.
Regards,
Sailaja -
Query to find employee competence score and rating against each competence
Hi Guys,
I am looking for a query to retrieve the below information -
1. Job competency requirement value ( stored in competency requirement screen)
2. Actual competenct value ( stored in competence profile)
Basically from these two values, we like to figure out the competency gap for the employee.
Appreciate your help!
thanks,
ABany help guru's!!!!
-
Query to find inter orgnization transfer and recevied through PO
How to segregate quantities in mtl_material_transactions. Like i want to know
1) Which transactions for inter organization transfer
2) which transactions or quantity received against POs
3) which quantify used in production
4) Sold Quantity.
thanksWaiting for replies.
-
Query to find the list of workbooks and worksheets assiciated to those book
Hi Gurus,
Could you help me with the tables / Query to fetch the list of workbooks and associated worksheets names as welll.
Thanks in advance!!
Rgds,
SantoshHi Santosh
The whole point of the STATS table is to allow you to query performance, who did what and when. The database itself does not keep such statistics so if you disable Discoverer's method of capturing these you have no way of knowing who did what and when.
Without this it is impossible to say. I would strongly recommend you enable the capturing of statistics.
The reason you cannot directly query a WORKBOOK to determine what WORKSHEETS are associated with it is because that information is stored as binary information and not in SQL format.
Discoverer 10g has the capability of providing detailed information on the EUL. This feature is not offered "out of the box" but can be easily enabled.
The EUL Administrator can enable the feature by completing the following steps (see also MOS Note 556932.1):
1. Log on to SQL*Plus as the Discoverer Administrator on the machine where Discoverer Administration Edition is installed.
2. Execute the EUL5.SQL script found in the *$ORACLE_HOME\discoverer\util* directory. (This script will create the necessary database objects.)
NOTE: If you are using an Oracle Applications mode EUL, you must also run the eul5_apps.sql file in the $ORACLE_HOME\discoverer\util directory. This script must be run as the EUL owner, and not the Oracle Applications SYSADMIN user.
4. Exit SQL*Plus and log on to the Discoverer Administration Edition product (as the EUL Administrator).
5. From the menu bar, select File | Import.
6. Import the EUL5.EEX file from the ORACLE_HOME\discoverer directory. Once the EUL import is complete, a new business area will be created and visible called The Discoverer V5 EUL. This is the business area that provides the details on the EUL.
EUL Management Workbooks for Discoverer Administrators
The EUL5.EEX file also imports four pre-built Discoverer workbooks. These workbooks are automatically saved to the database during the EEX import and can be executed in Discoverer Plus, Viewer or Desktop:
EUL Workbook Management - shows which workbooks are shared with which users. Examine worksheets to find the folders, items, joins and conditions they depend upon.
EUL Access - This Workbook indicates if a current EUL exists in this users schema. It also displays the EUL's in other user schemas that this user can access.
EUL Query Statistics - Find out which workbooks and worksheets are being used by whom. Examine users ad-hoc queries.
Lineage - Hyper Drill from Discoverer to find a folder or Items Lineage in Oracle Warehouse Builder. To enable the Hyper drill, you will first need to run the Lineage.sql script.
The Discoverer Administrator can use the pre-built workbooks or build their own EUL management workbooks by using the Discoverer V5 EUL business area.
Best wishes
Michael -
Looking for a query to find first/last dates in overlapping dates...
Hi,
I'm looking for a query to find the first dates and last dates in a table conaining overlapping dates.
I have a subscription table which has for each Customer start and end date for different subscriptions.
I want to know the different ranges of date where there is subscriptions active.
so if the table has this:
CustID, Start date, end date
1, 2008-01-01, 2012-06-06
1 ,2009-01-01, 2011-01-01
1, 2011-01-01, 2013-02-02
1, 2013-01-01, 2013-08-08
1, 2014-01-01, 2014-04-04
I want to produce this result:
custid, range start, range end
1, 2008-01-01, 2013-08-08
1, 2014-01-01, 2014-04-04
the first row is the range identified from the 4 rows in my subscription table.
thanks :)I think I found it...
http://stackoverflow.com/questions/5213484/eliminate-and-reduce-overlapping-date-ranges
let me try this method
Hi,
m writing to follow up with you on this post. Thanks for you posting a reply to share your workground. Was the problem resolved after performing the above link? If you are satisfied with the above solution, I’d like to mark this issue as "Answered".
Please also feel free to unmark the issue, with any new findings or concerns you may have.
Thanks,
Sofiya Li
If you have any feedback on our support, please click here.
Sofiya Li
TechNet Community Support -
Query to get Primary ship to and bill to contact details
Hi ,
Please help me to get the query to find primary ship to and bill to contact details for a istore customer .
Thanks
MarkHi Mark,
The following should give you a good starting point.
Regards,
Jon
SELECT
cac_party.party_name as customer
, cac.account_number
, cac_party.party_number as orgnum
, party_site.party_site_number as sitenum
, csu.location
, loc.address1
, csu.site_use_code
, orgcon.title
, cont_party.party_name as contact_name
, orgcon.job_title
FROM
hz_org_contacts orgcon
, hz_party_relationships party_rel
, hz_party_sites party_site
, hz_cust_acct_sites_all cas
, hz_cust_site_uses_all csu
, hz_cust_accounts cac
, hz_loc_assignments loc_assign
, hz_locations loc
, hz_parties cac_party
, hz_parties cont_party
WHERE 1=1
AND orgcon.party_relationship_id = party_rel.party_relationship_id
AND orgcon.party_site_id = party_site.party_site_id
AND party_site.party_site_id = cas.party_site_id
AND cas.cust_acct_site_id = csu.cust_acct_site_id
AND cas.cust_account_id = cac.cust_account_id
AND cac.party_id = cac_party.party_id
AND cas.party_site_id = party_site.party_site_id
AND loc.location_id = party_site.location_id
AND loc.location_id = loc_assign.location_id
AND party_rel.subject_id = cont_party.party_id AND cont_party.party_type = 'PERSON'
ORDER BY cac_party.party_name, loc.address1, csu.site_use_code, cont_party.party_name -
Hi, I purchased itunes match in order to convert the previously purchased songs that reflected copyright and would not copy to other device. Ran itunes match however, I can not find a way to obtain my 62 matched songs to place on hard drive to copy.
Donna,
You have to delete the DRM copies from your library first.
See the section "Can I upgrade my previously purchased music to iTunes Plus?" in this guide: iTunes Store: iTunes Plus Frequently Asked Questions (FAQ) -
I have installed Adobe Premiere Pro cc on my laptop, but I cant find a way to start the program. No Icon, and it is not showing up in the start meny. It is showing up in add/remove programs, but nt anywhere else.
If you are using a Mac, simply hit Command-Spacebar to bring up Spotlight Search. Begin typing the name of the application and when you see what you are looking for, press enter. You should get a hit by the second or third letter you type. Great way to launch apps on computers that you are not familiar with.
Windows 7 and 8 should have something similar. I think you simply press the Windows key and begin typing. Press enter when you see a match.
Both Mac and Windows search tools can be customized to search for applications, files, emails and so forth. For Windows, look for Taskbar and Start Menu Properties. For Mac, go to Preferences Spotlight. Turn off items you know you won't need to speed up searches.
Make Windows 7 Start Menu Search Find Your Applications Faster -
I accidentally set up my new ipad in itunes under the name of my existing ipad and need to set it up as a new device. Help. I cannot find a way to start fresh.
That's probably not a good idea to try to share apps since you will have to switch ID's each time you update apps and sync apps from iTunes.
And technically - according to Apple's terms - you cannot share apps using different ID's. You can actually lock yourself out of an ID for 90 days if you switch ID's and if you associate the iPad with another ID.
The bold type is a copy and paste from the site that I referenced below.
When you turn on iTunes Match or Automatic Downloads, or when you download past purchases on an iOS device or computer, that device or computer becomes associated with your Apple ID. This article describes how to manage these associations.
http://support.apple.com/kb/ht4627 -
SQL Query to find Receipt No.s which are not matched to AP Invoices
Hi
Please help me to frame a query to find list of Receipt No.s which are not matched with AP Invoices.
Please refer to the below query .
SELECT
poh.segment1 "PO No.",
aps.vendor_name "Supplier Name",
pol.item_description "Item Description",
rcvh.receipt_num "GRV No.s",
rcvl.quantity_received "Quantity",
pol.unit_price "Rate/Unit",
rcvtl.tax_name||' - '||initcap(rcvtl.tax_type) "Tax",
(rcvl.quantity_received * pol.unit_price) + nvl(rcvtl.tax_amount,0) "Amount"
FROM
po_headers_all poh,
po_lines_all pol,
po_distributions_all pod,
ap_suppliers aps,
rcv_shipment_headers rcvh,
rcv_shipment_lines rcvl,
rcv_transactions rcvt,
jai_rcv_line_taxes rcvtl
WHERE
poh.po_header_id = pol.po_header_id
AND poh.po_header_id = pod.po_header_id
AND pol.po_line_id = pod.po_line_id
AND aps.vendor_id = poh.vendor_id
AND aps.vendor_id = rcvh.vendor_id
AND rcvh.shipment_header_id = rcvl.shipment_header_id
AND poh.po_header_id = rcvl.po_header_id
AND pol.po_line_id = rcvl.po_line_id
AND rcvh.shipment_header_id = rcvt.shipment_header_id
AND rcvl.shipment_line_id = rcvt.shipment_line_id
AND poh.po_header_id = rcvt.po_header_id
AND pol.po_line_id = rcvt.po_line_id
AND aps.vendor_id = rcvt.vendor_id
AND rcvh.shipment_header_id = rcvtl.shipment_header_id
AND rcvl.shipment_line_id = rcvtl.shipment_line_id
AND rcvt.transaction_id = rcvtl.transaction_id
AND aps.vendor_id = rcvtl.vendor_id
AND rcvt.transaction_type = 'RECEIVE'
AND poh.authorization_status = 'APPROVED'
AND poh.segment1 = '210001079'
I have'nt included the Invoice Tables in the above query.
Please help me in that area.
This is bit urgent.
Please help me.
Regards
Nakul VenkatramanI am using ORACLE 11gR2 If you're licensed for Diangnostics pack then you might want to look at the AWR tables, e.g. DBA_HIST_SQLSTAT and cross-reference with DBA_HIST_SNAPSHOT.
By this will i get the top 5 consumed queries of DEV user in the whole session or its just the top 5 queries at that particular time. The "executions" columns in this query, does it mean that the no. of. times the query has executed... This will get you a random 5 queries that were first parsed by DEV. Depending on your application code/structure, it may well be that all code (except for system-recursive sql) executed by DEV is parsed by DEV, and all code parsed by DEV is executed by DEV but this isn't true for all.
In terms of top N queries, you need to ORDER BY and then restrict by ROWNUM at an outer level to the ROWNUM otherwise the ROWNUM filter is applied before the ORDER BY.
i.e.
SELECT *
FROM
(SELECT ...
FROM ...
WHERE
ORDER BY...)
WHERE ROWNUM <= ....
The "executions" columns in this query, does it mean that the no. of. times the query has executedYes.
http://download.oracle.com/docs/cd/E11882_01/server.112/e25513/dynviews_3064.htm#REFRN30259
Edited by: Dom Brooks on Oct 24, 2011 9:45 AM -
Trying find a way to detect and list the external hard drives/flash drives
Hiya,
I'm trying to find a way to detect and list all the external hard drives or flash drives connected to a machine.
The reason I want it is that I want to make a File Synchronization program in Java which will automatically synchronize from flash drive or external hard drive to the hard drive. So I need to be able to detect the drive before I can go about trying to set up the rest of the problem.
Also, is this the correct forum to put this kind of query in? If not what would be the correct one.
Any help would be appericated, thanks.I'm thinking that this link might be useful.
http://javaalmanac.com/egs/java.sql/ListDrivers.html
But I can't seem to get it to work, I'm probably done the surrounding code wrong in some way.
import java.io.*;
import java.lang.*;
public class ListDrivers
List drivers = Collections.list(DriverManager.getDrivers());
for (int i = 0; i < drivers.size(); i++) // error 1
Driver driver = (Driver)drivers.get(i);
// Get name of driver
String name = driver.getClass().getName();
// Get version info
int majorVersion = driver.getMajorVersion();
int minorVersion = driver.getMinorVersion();
boolean isJdbcCompliant = driver.jdbcCompliant();
// error 2
illegal start of type at the line indicated by "//error 1"
<identifier> expected at the line indicated by "// error 2"
(Sorry for the double post, but I can't seem to be able to edit it) -
SQL Query to find DN and phone Load
Hi All,
We are using Call Manager 8.6 [one PUB and 4 SUBs] and have different IP phone models .
IP phone model have different LOAD working with them like few 3905 have cmterm-3905.9-2-2-0 while some have cmterm-3905.9-2-2ES7 .
Is there any way/SQL Query to find out what all phone model with DN are running 3905.9-2-2.0 LOAD?
regds,
amanHey Aman,
Hope all is well my friend!
Just to add a note to my friend Carlo's good info here (+5!)
Try;
Device> Device Settings> Firmware Load Information>Device Not Using Default Load
This will show you any phones that deviate from the "device defaults" Fimware And if you click
on any device listed here it will show the actual Firmware that is being used on the specified device.
Cheers!
Rob
Maybe you are looking for
-
Can I copy and past iPhoto from one computer to another?
I just bought a used Mac Mini to give to my in-laws. I used the original boot disks to reinstall the software. I then upgraded to Leopard. When all was said and done, everything was wonderful except that iPhoto was nowhere to be found. Going back to
-
Icloud does not accept my appleID
Icould asks to change it but the website link appleid.apple.com does not work. Any tips?
-
Hello, I am trying to convert an existing legacy application developed in LabVIEW 6 (Traditional DAQ) into LabVIEW 2012 (DAQmx). The operation requires generating one counter output that is gated by another counter output. I have attached a fully
-
I can go to this site ( http://www.adobe.com/devnet/security/security_zone/apsb06-03.html) and read about security issues but I need to present my boss with the consequences of having a lower version. I am talking about the type of vulnerabilities an
-
Type on a Path grayed out in CS3
I am new to Illustrator, following Help to run type around a circle. It tells me to select the type object and then select "Type on a Path," however, that option is mysteriously grayed out. What might I be doing wrong. Please help! thanks!