Plz resolve this query
hi..
plz make out the difference between these two queries...........
SQL> select dname,sum(sal) from emp,dept
where emp.deptno=dept.deptno
group by dname having sum(sal)>
(select sum(sal)/3 from emp,dept where emp.deptno=dept.deptno)
order by sum(sal) desc;
solution:
DNAME SUM(SAL)
RESEARCH 10875
SQL> select dname,sum(sal) from emp,dept
where emp.deptno=dept.deptno
group by dname having sum(sal)>
(select sum(sal)/3 from emp,dept) order by sum(sal) desc;
solution:
no rows selected
i honestly can't understand what's happening in the subquery.....
thank u
ramsy
Run the subqueries by themselves:
SQL > select sum(sal)/3 from emp,dept where emp.deptno=dept.deptno;
SUM(SAL)/3
9675
SQL > select sum(sal)/3 from emp,dept;
SUM(SAL)/3
38700The 2nd one is a cartesian join.
Similar Messages
-
iam trying to take input at the prompt in one statement only...
but unable to do it..
so plz correct my query
accept var prompt "enter deptno=>" select * from emp where deptno=&var;
error:
SQL> accept var prompt "enter deptno=>" select * from emp where deptno=&var;
Enter value for var: 20
SP2-0003: Ill-formed ACCEPT command starting as select * from emp where deptno=2
0
SQL>
thank u
rajivThese are two statements you need to exceute separately
SQL> accept var prompt "enter deptno=>"
enter deptno=>10
SQL> select * from emp where deptno=&var;
old 1: select * from emp where deptno=&var
new 1: select * from emp where deptno=10
EMPNO ENAME JOB MGR HIREDATE SAL COMM
DEPTNO
7782 CLARK MANAGER 7839 09-JUN-81 2450
10
7839 KING PRESIDENT 17-NOV-81 5000
10
7934 MILLER CLERK 7782 23-JAN-82 1300
10
SQL> -
Please resolve this query for me.
i have table of supplier(supplier id,comp name,contractname,address, city, region, postal code, country, phone, fax),products(product id,sroduct name,supplier id,categoryid, qtyper unit, unitprice,unists in stock,units on order, reorder level,discontinued),order details(order id,productid, unitprice, qty, discount),orders(orderid,customerid,employee id,orderdate, requieredate, shipped date,shipvia, freight, shipname,shipaddress, shipcity,shipregion), customers(customerid,comp name contact name, contact title, address, city, region,postalcode, country, phone, fax), shippers(shipid,company name, phone), employee(allthe details of employee), categories(category id, catagoryname, description,picture)
1. I want to contact all customers who have received over $1,000 in discounts on orders this year. Give me the name and phone number of the person to contact at the customers site. Also, list the orders where the total discount was greater than $100. Remember, discount is a percentage of the price.
2. Give me a list of suppliers and products where we do not have the stock on hand to fill the orders to be shipped. List out the customer and order information for each of the products involved.
3. Give me a list of all orders that were shipped after the required date for the week of Jan 7, 2001. I want to know the name of the employees that were responsible for the orders.
4. We are having a golf tournament and I need some prizes. Give me a list of the top 5 suppliers by dollar amount in the last year.
5. Some customers are taking us for a ride on shipping. Give me a list of customers and the orders involved where more than ½ of their orders are being shipped to a region other than their home region.Jakas,
This forum is for the "SQL Developer" tool - you might get a better response on the "SQL and PL/SQL" forum (PL/SQL).
theFurryOne -
How to resolve this query ?
Guys,
How do i get the below output ?
I have the following data
12/6/2008 EGG
12/6/2008 CHICKEN
12/6/2008 LAMB
13/6/2008 LAMB
13/6/2008 LAMB
13/6/2008 LAMB
14/6/2008 EGG
14/6/2008 EGG
14/6/2008 CHICKEN
14/6/2008 LAMB
I need out out something like this
EGG CHICKEN LAMB
12/6/2008 1 1 1
13/6/2008 3 0 0
14/6/2008 2 1 1Thanks in advanceME_XE?with data as
2 (
3 select to_date('12/6/2008','dd/mm/yyyy') as col1, 'EGG' as col2 from dual union all
4 select to_date('12/6/2008','dd/mm/yyyy') as col1, 'CHICKEN' as col2 from dual union all
5 select to_date('12/6/2008','dd/mm/yyyy') as col1, 'LAMB' as col2 from dual union all
6 select to_date('13/6/2008','dd/mm/yyyy') as col1, 'LAMB' as col2 from dual union all
7 select to_date('13/6/2008','dd/mm/yyyy') as col1, 'LAMB' as col2 from dual union all
8 select to_date('13/6/2008','dd/mm/yyyy') as col1, 'LAMB' as col2 from dual union all
9 select to_date('14/6/2008','dd/mm/yyyy') as col1, 'EGG' as col2 from dual union all
10 select to_date('14/6/2008','dd/mm/yyyy') as col1, 'EGG' as col2 from dual union all
11 select to_date('14/6/2008','dd/mm/yyyy') as col1, 'CHICKEN' as col2 from dual union all
12 select to_date('14/6/2008','dd/mm/yyyy') as col1, 'LAMB' as col2 from dual
13 )
14 select
15 col1,
16 count(decode(col2, 'EGG', 1, NULL)) AS EGG_COUNT,
17 count(decode(col2, 'CHICKEN', 1, NULL)) AS CHICKEN_COUNT,
18 count(decode(col2, 'LAMB', 1, NULL)) AS LAMB_COUNT
19 from data
20 group by col1;
COL1 EGG_COUNT CHICKEN_COUNT LAMB_COUNT
13-JUN-2008 12 00:00 0 0 3
14-JUN-2008 12 00:00 2 1 1
12-JUN-2008 12 00:00 1 1 1
3 rows selected.
Elapsed: 00:00:00.03 -
Hi,
Can you’ll please help me with this query.
Here is a little bit of background:
One title can have multiple items associated with it.
Table: TITLE has the master list of titles. TITLE_ID is the primary key.
Table: ITEM has the master list of all items. ITEM_ID is the primary. This table also has the TITLE_ID which stores title for this item.
Table: ITEM_STATUS has fields ITEM_ID and STATUS_ID. This field contains statuses for items. But not all items contained in the table ITEM are in this table.
I want to find TITLE_ID’s whose all items (all ITEM_ID in table ITEM having same value for TITLE_ID) have a particular status (for example STATUS_ID = 2) in table ITEM_STATUS.
Let’s say TITLE_ID = 1 has 5 items in table ITEM_ID and only 4 items out of it in table ITEM_STATUS with STATUS_ID = 2, then this TITLE_ID should not come. OR
Let’s say TITLE_ID = 1 has 5 items in table ITEM_ID and all these 5 items are in table ITEM_STATUS but only 1 has STATUS_ID = 2, then this TITLE_ID should also not come
In the above case only if all 5 items are contained in table ITEM_STATUS have STATUS_ID = 2 then this TITLE_ID should be reported by the query.
What should be the query like for this one, I am fairly new to SQL so plz guide me.
Thank you,
RajaI haven't tested the query below. Try it and let me know for any issues:
SELECT DISTINCT t.title_id
FROM title t,
item i,
item_status its
WHERE t.title_id = i.title_id
AND i.item_id = its.item_id
AND NOT EXISTS (
SELECT 1
FROM item_status its1
WHERE its1.item_id = i.item_id
AND status_id <> 'YOUR_ITEM_STATUS'
) -
Plz help to resolve this error during installation of EBS 11i
plz any one can help me to resolve this mentioned issued on last two lines......
error--- RW-50010: Error: - script has returned an error: 2
running command : OSPatchCheck.checkPatch()
OS = Windows XP OSVersion = 5.1
No Patch Information available for this Platform
System Utilities Check
command : cmd.exe /c G:\DISK1\RAPIDWIZ\bin\adchkutl.cmd c:\MKSTOOL\mksnt c:\MSVC\VC98
G:\DISK1\RAPIDWIZ>echo off
Setting environment for using Microsoft Visual C++ tools.
C:\WINDOWS\system32/cmd.exe
'which' command is available.
C:\WINDOWS\system32/gnumake.exe
'gnumake' is available.
c:\MKSTOOL\mksnt/cc.exe
'cc' is available.
C:\MSVC\VC98\BIN/link.exe
'link' is available.
ERRORCODE = 0 ERRORCODE_END
System Utilities Availability test has succeeded
DoInstallPanel - Summary Text
The Rapid Install Wizard will now install the following:
DoInstallPanel - User continued install at warning dialog.
Starting from CD area G:\DISK1
There was an error while running the command - cmd /c rmdir /S /Q C:\WINDOWS\TEMP\rapidinstall
The system cannot find the file specified.
RW-50010: Error: - script has returned an error: 2
Returning - 0Only one log file created. File entries attached below
++++
Disk space on system acceptable:
Database System File Directory = E:\oracle\VIS\db\apps_st\data
required = 16780.0
actual = 377201.943359375
Disk space on system acceptable:
Database Log File Directory = E:\oracle\VIS\db\apps_st\data
required = 3086.0
actual = 360421.943359375
Disk space on system acceptable:
Database Transaction File Directory = E:\oracle\VIS\db\apps_st\data
required = 64649.0
actual = 357335.943359375
Disk space on system acceptable:
Database Archive File Directory = E:\oracle\VIS\db\apps_st\data
required = 44142.0
actual = 292686.943359375
</p>
<p>
-- apps node space checks --
</p>
<hr />
<p>
Disk space on system acceptable:
APPL_TOP = E:\oracle\VIS\apps\apps_st\appl
required = 5232.0
actual = 248544.943359375
Disk space on system acceptable:
APPL_TOP mount 2 = E:\oracle\VIS\apps\apps_st\appl
required = 2362.0
actual = 243312.943359375
Disk space on system acceptable:
APPL_TOP mount 3 = E:\oracle\VIS\apps\apps_st\appl
required = 7988.0
actual = 240950.943359375
Disk space on system acceptable:
APPL_TOP mount 4 = E:\oracle\VIS\apps\apps_st\appl
required = 2736.0
actual = 232962.943359375
Disk space on system acceptable:
COMMON_TOP = E:\oracle\VIS\apps\apps_st\comn
required = 2328.0
actual = 230226.943359375
Disk space on system acceptable:
Apps ORACLE_HOME = E:\oracle\VIS\apps\tech_st\10.1.3
required = 1069.0
actual = 227898.943359375
Disk space on system acceptable:
Tools ORACLE_HOME = E:\oracle\VIS\apps\tech_st\10.1.2
required = 926.0
actual = 226829.943359375
Host/Domain
</p>
<hr />
<p>
command: ping -n 1 leon
</p>
<p>
</p>
<p>
Pinging Leon.apxm.com http://10.10.10.10 with 32 bytes of data:
</p>
<p>
Reply from 10.10.10.10: bytes=32 time<1ms TTL=128
</p>
<p>
Ping statistics for 10.10.10.10:
Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
</p>
<p>
host ping has succeeded
command: ping -n 1 leon.apxm.com
</p>
<p>
</p>
<p>
Pinging Leon.apxm.com http://10.10.10.10 with 32 bytes of data:
</p>
<p>
Reply from 10.10.10.10: bytes=32 time<1ms TTL=128
</p>
<p>
Ping statistics for 10.10.10.10:
Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
</p>
<p>
host.domain ping has succeeded
System Utilities
</p>
<hr />
<p>
command: cmd.exe /c C:\Stage12\startCD\Disk1\rapidwiz\bin\adchkutl.cmd C:\cygwin\bin C:\MSVS8\MSVC\bin
</p>
<p>
C:\Stage12\startCD\Disk1\rapidwiz>echo off
/cygdrive/c/WINDOWS/system32/cmd
'which' command is available.
/usr/bin/gnumake
'gnumake' is available.
/usr/bin/cl
'cc' is available.
/usr/bin/link
'link' is available.
ERRORCODE = 0 ERRORCODE_ENDThe system cannot find the path specified.
</p>
<p>
System Utilities Availability test has succeeded
AllNodesPanel
</p>
<hr />
Service Name: leon
Node Name: _leon<br />
Operating System: _Windows (32-bit)<br />
Service Name: leon
Node Name: _leon<br />
Operating System: _Windows (32-bit)<br />
<strong>DoInstallPanel - Summary Text</strong>
<strong>The Rapid Install Wizard will now install the following:</strong>
<p>
<strong>DoInstallPanel - User continued install at warning dialog.</strong>
<strong>-----------------------------------------</strong>
<strong>Starting from CD area C:\Stage12\startCD\Disk1</strong>
<strong>RW-50010: Error: - script has returned an error: 2</strong>
<strong>Returning - 0</strong>
+++++++
</p> -
Select distinct(a.esal) from employee1 a where &N = (select count(distinct(b.esal)) from employee1 b where a.esal<=b.esal);
this is the query to find Nth largest & Nth smallest value from the table employee1....but, i am unable to understand how this query works ....plz..anybody can explain this query step by step with example....plzHi,
Welcome to the forum!
The first step in understanding any code is to format it so you can easily see what is a sub-query, what the major clauses of each sub-query are, and things like that.
For example:
Select distinct (a.esal)
from employee1 a
where &N = ( select count (distinct (b.esal))
from employee1 b
where a.esal <= b.esal
);The only thing I have added to the code you posted was whitespace: newlines, tabs and spaces.
Now it's easy to see that you're doing a query with a scalar sub-query in the WHERE clause.
It usually makes sense to read complicated queries from the inside out, that is, start with the deepest nested sub-query.
In this example, that means:
select count (distinct (b.esal))
from employee1 b
where a.esal <= b.esalWhat does this query do? Unfortunately, it references something (b.esal) from the super-query, so you can't run it by itself, to see what it does. Let's replace that reference with some hard-coded value, just for now, and run it:
select count (distinct (b.esal))
from employee1 b
--where a.esal <= b.esal -- This is the original WHERE clause
where a.esal <= 1000 -- For testing only
;Experiment with this for a while, and compare it to the values in the employee1 table (or a small test table that resembles employee1). Try different numbers in place of 1000.
You'll see that the query is counting how many different salaries are lower than, or equal to, a given salary (1000 in the example above).
When you understand the sub-query, look at the original query again.
It is testing to see if exactly &N different esals are lower than or equal to the esal on each row, and displaying that esal if it is. (&N is a substitution variable. If you haven't already defined a value for it, SQL*Plus will ask you for a value when you run the query.)
In other words, it is finding the N-th lowest value of esal. -
i need to get each manager name, his department name and for each year that is for 81,82,83,84 count of employee's under that manager from emp and dept tables .
thanks in advance
select distinct deptno, TO_CHAR (HIREDATE, 'YY'), count(*) from emp group by TO_CHAR(HIREDATE, 'YY'), DEPTNO ORDER BY TO_CHAR(HIREDATE, 'YY'), DEPTNO;
the above query returns me count of employees ,year and deptno
SELECT DISTINCT E2.ENAME , E1.ENAME, E1.DEPTNO, E1.MGR, E1.EMPNO, E1.SAL, D.DNAME, D.LOC FROM EMP E1, EMP E2, DEPT D WHERE E1.MGR = E2.EMPNO AND E1.DEPTNO = D.DEPTNO ORDER BY E1.DEPTNO;
this query returned me manager names and employees under them
Message was edited by:
user450660At that point you're not too far off, you have most of what you need. In general, any time you see the use of DISTINCT it's a sign that either your query or your data model isn't designed quite right.
SELECT m.ename,
d.dname,
TO_CHAR (e.hiredate, 'YY') AS hire_year,
COUNT(*) AS emp_count
FROM emp e, emp m, dept d
WHERE e.mgr = m.empno
AND m.deptno = d.deptno
GROUP BY
m.ename,
d.dname,
TO_CHAR (e.hiredate, 'YY'); -
How to resolve this Error ORA-04030: out of process memory when trying to a
Hi
I am connecting as a sysdba and trying to execute a query on the V$Logmnr_contents but getting the following Error
ORA-04030: out of process memory when trying to allocate 408 bytes (T-LCR
structs,krvuinl_InitNewLcr)
Can anyone guide me how to resolve this issue.
ThanksHi,
As root user, edit the /etc/sysconfigtab file, and try to set the udp_recvspace parameter to 262144 and reboot the machine :
inet:
udp_recvspace = 262144
Metalink note 297030.1 Ora-04030 During Execution Of LogMiner Query
Nicolas. -
Resolve this error during installation of EBS 11i
i faced this error when install Oracle 11i on windows XP.
It Bootrstapping to temp. folder and after Bootrstapping log file show below error:
plz any one can help me to resolve this mentioned issued on last two lines......
================================================================
Starting from CD area F:\Stage11i\startCD\Disk1
There was an error while running the command - cmd /c rmdir /S /Q C:\DOCUME~1\Abhi\LOCALS~1\Temp\rapidinstall
The system cannot find the file specified.
RW-50010: Error: - script has returned an error: 2
Returning - 0
===================================================================
Below are the logfile details......
Oracle Applications Rapid Install Wizard Install log
>> Using Rapid Wizard Version : 11.5.10.35
>> Install session started : Sun Mar 21 14:12:43 IST 2010
>> Rapid Wizard source location : F:\Stage11i\startCD\Disk1\rapidwiz
>> Command Line arguments for this execution :
=================================================================
Install Session Information
Host Name : munna.com
Host Operating System : Windows
User running Install : Abhi
=================================================================
InstUpgPanel
User action : Install Oracle Applications
Install type : Standard Install
InstallPanel
User action : Create configuration file
Description : To create a new intance cofiguration.
NumNodesPanel
Install type : Single node Install
Description : Installs all the services on a single node.
InstallSidPanel
Database type : Vision Demo Database
Database name : VIS
RdbmsPanel
Derived Mount Points :
Base Install directory : d:\oracle
Oracle Home : d:\oracle\visdb\9.2.0
Data Top (SYS) : d:\oracle\visdata
Data Top (LOG) : d:\oracle\visdata
Data Top (TXN) : d:\oracle\visdata
Data Top (ARCHIVE) : d:\oracle\visdata
MtierInfoPanel
Configuration Information for Node - munna - Admin Server / Concurrent Mgr / Forms Server / Web Server
Derived Mount Points :
MKS directory : C:\install_soft\MKS
MSDEV directory : C:\install_soft\MVS\VC98
Base Install directory : d:\oracle
APPL_TOP Mount point : d:\oracle\visappl
APPL_TOP aux. 1 : d:\oracle\visappl
APPL_TOP aux. 2 : d:\oracle\visappl
APPL_TOP aux. 3 : d:\oracle\visappl
COMMON_TOP : d:\oracle\viscomn
8.0.6 ORACLE_HOME : d:\oracle\visora\8.0.6
iAS ORACLE_HOME : d:\oracle\visora\iAS
Temp Directory : d:\oracle\viscomn\temp
PortPanel
Selected port pool :
Domain Name : com
Database Port : 1521
RPC Port : 1626
Reports Port : 7000
Web Listener Port : 8000
OProcMgr Port : 8100
Web PLSQL Port : 8200
Servlet Port : 8800
Forms Listener Port : 9000
Metrics Server Data Port : 9100
Metrics Server Req. Port : 9200
JTF Fulfillment Server Port : 9300
Map Viewer Servlet Port : 9800
OEM Web Utility Port : 10000
VisiBroker OrbServer Agent Port : 10100
MSCA Server Port : 10200
MSCA Dispatcher Port : 10300
Java Object Cache Port : 12345
OACORE Servlet Port Range : 16000-16009
Discoverer Servlet Port Range : 17000-17009
Forms Servlet Port Range : 18000-18009
XMLSVCS Servlet Port Range : 19000-19009
AppsConfig temp dir set to: C:\DOCUME~1\Abhi\LOCALS~1\Temp
ConfigFilePanel
Setting temp directory to : C:\DOCUME~1\Abhi\LOCALS~1\Temp <-> C:\DOCUME~1\Abhi\LOCALS~1\Temp\
Writing configuration file to : C:\DOCUME~1\Abhi\LOCALS~1\Temp\config.txt
Port Availability Check :
Database Port Value = 1521...... Available
RPC Port Value = 1626...... Available
Forms Listener Port Value = 9000...... Available
Metrics Server Port Value = 9100...... Available
Metrics Client Port Value = 9200...... Available
Forms Servlet Port Range Value = 18000...... Available
Forms Servlet Port Range Value = 18001...... Available
Forms Servlet Port Range Value = 18002...... Available
Forms Servlet Port Range Value = 18003...... Available
Forms Servlet Port Range Value = 18004...... Available
Forms Servlet Port Range Value = 18005...... Available
Forms Servlet Port Range Value = 18006...... Available
Forms Servlet Port Range Value = 18007...... Available
Forms Servlet Port Range Value = 18008...... Available
Forms Servlet Port Range Value = 18009...... Available
Report Listener Port Value = 7000...... Available
Web Listener Port Value = 8000...... Available
Web Listener PLSQL Port Value = 8200...... Available
Servlet Port Value = 8800...... Available
JTF Fulfillment Server Port Value = 9300...... Available
Map Viewer Servlet Port Value = 9800...... Available
OEM Web Utility Port Value = 10000...... Available
VisiBroker OrbServer Agent Port Value = 10100...... Available
MSCA Server Port Value = 10200...... Available
MSCA Dispatcher Port Value = 10300...... Available
OACORE Servlet Port Range Value = 16000...... Available
OACORE Servlet Port Range Value = 16001...... Available
OACORE Servlet Port Range Value = 16002...... Available
OACORE Servlet Port Range Value = 16003...... Available
OACORE Servlet Port Range Value = 16004...... Available
OACORE Servlet Port Range Value = 16005...... Available
OACORE Servlet Port Range Value = 16006...... Available
OACORE Servlet Port Range Value = 16007...... Available
OACORE Servlet Port Range Value = 16008...... Available
OACORE Servlet Port Range Value = 16009...... Available
Discoverer Servlet Port Range Value = 17000...... Available
Discoverer Servlet Port Range Value = 17001...... Available
Discoverer Servlet Port Range Value = 17002...... Available
Discoverer Servlet Port Range Value = 17003...... Available
Discoverer Servlet Port Range Value = 17004...... Available
Discoverer Servlet Port Range Value = 17005...... Available
Discoverer Servlet Port Range Value = 17006...... Available
Discoverer Servlet Port Range Value = 17007...... Available
Discoverer Servlet Port Range Value = 17008...... Available
Discoverer Servlet Port Range Value = 17009...... Available
XMLSVCS Servlet Port Range Value = 19000...... Available
XMLSVCS Servlet Port Range Value = 19001...... Available
XMLSVCS Servlet Port Range Value = 19002...... Available
XMLSVCS Servlet Port Range Value = 19003...... Available
XMLSVCS Servlet Port Range Value = 19004...... Available
XMLSVCS Servlet Port Range Value = 19005...... Available
XMLSVCS Servlet Port Range Value = 19006...... Available
XMLSVCS Servlet Port Range Value = 19007...... Available
XMLSVCS Servlet Port Range Value = 19008...... Available
XMLSVCS Servlet Port Range Value = 19009...... Available
Operating System Check
command : cmd.exe /c F:\Stage11i\startCD\Disk1\rapidwiz\bin\checkOS.cmd
F:\Stage11i\startCD\Disk1\rapidwiz>echo off
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\Abhi\Application Data
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=MUNNA
ComSpec=C:\WINDOWS\system32\cmd.exe
DISPLAY=:0.0
FP_NO_HOST_CHECK=NO
HOME=C:\Documents and Settings\Abhi
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\Abhi
include=C:\install_soft\MVS\VC98\atl\include;C:\install_soft\MVS\VC98\mfc\include;C:\install_soft\MVS\VC98\include
lib=C:\install_soft\MVS\VC98\mfc\lib;C:\install_soft\MVS\VC98\lib
LOGONSERVER=\\MUNNA
MSDevDir=C:\install_soft\MVS\common\MSDev98
NUMBER_OF_PROCESSORS=4
NUTCROOT=C:\INSTAL~1\MKS
OS=Windows_NT
Path=C:\INSTAL~1\MKS\bin;C:\INSTAL~1\MKS\bin\x11;C:\INSTAL~1\MKS\mksnt;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\install_soft\MVS\common\Tools\WinNT;C:\install_soft\MVS\common\MSDev98\Bin;C:\install_soft\MVS\common\Tools;C:\install_soft\MVS\VC98\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 37 Stepping 2, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=2502
ProgramFiles=C:\Program Files
PROMPT=$P$G
ROOTDIR=C:\INSTAL~1\MKS
SESSIONNAME=Console
SHELL=C:\INSTAL~1\MKS\mksnt\sh.exe
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\Abhi\LOCALS~1\Temp
TERM=nutc
TERMCAP=C:\INSTAL~1\MKS\etc\termcap
TERMINFO=C:\INSTAL~1\MKS\usr\lib\terminfo
TMP=C:\DOCUME~1\Abhi\LOCALS~1\Temp
TMPDIR=C:\DOCUME~1\Abhi\LOCALS~1\Temp
USERDOMAIN=MUNNA
USERNAME=Abhi
USERPROFILE=C:\Documents and Settings\Abhi
windir=C:\WINDOWS
Operating System patch/version test has succeeded
O/S User and Group Check
Domain=MUNNA
,Username=Abhi
,PC-Name=MUNNA
User belongs to the Administrators Group.
Port Uniqueness Check :
All ports are unique.
File System Check :
Database ORACLE_HOME available:
Mount Point = d:\oracle\visdb\9.2.0
Database ORACLE_HOME admin folder available:
Mount Point = d:\oracle\visdb\9.2.0\appsutil
Database ORACLE_HOME temp folder available:
Mount Point = d:\oracle\visdb\9.2.0\appsutil\temp
Database Install Log Directory available:
Mount Point = d:\oracle\visdb\9.2.0\appsutil\log\VIS_munna
Database Install Out Directory available:
Mount Point = d:\oracle\visdb\9.2.0\appsutil\out\VIS_munna\templbac
Database System File Directory available:
Mount Point = d:\oracle\visdata
Database Log File Directory available:
Mount Point = d:\oracle\visdata
Database Transaction File Directory available:
Mount Point = d:\oracle\visdata
Database Archive File Directory available:
Mount Point = d:\oracle\visdata
APPL_TOP available:
Mount Point = d:\oracle\visappl
APPL_TOP admin available:
Mount Point = d:\oracle\visappl\admin
APPL_TOP mount 2 available:
Mount Point = d:\oracle\visappl
APPL_TOP mount 3 available:
Mount Point = d:\oracle\visappl
APPL_TOP mount 4 available:
Mount Point = d:\oracle\visappl
COMMON_TOP available:
Mount Point = d:\oracle\viscomn
JAVA_TOP available:
Mount Point = d:\oracle\viscomn\java
PORTAL_TOP available:
Mount Point = d:\oracle\viscomn\portal
Temp Directory available:
Mount Point = d:\oracle\viscomn\temp
APPL_TOP admin Install Log Directory available:
Mount Point = d:\oracle\visappl\admin\VIS_munna\log
APPL_TOP admin Install Out Directory available:
Mount Point = d:\oracle\visappl\admin\VIS_munna\out\templbac
Apps ORACLE_HOME available:
Mount Point = d:\oracle\visora\iAS
Tools ORACLE_HOME available:
Mount Point = d:\oracle\visora\8.0.6
File Space Check :
Disk space on system acceptable :
Database ORACLE_HOME = d:\oracle\visdb\9.2.0
required = 2800.0
actual = 109910.765625
Disk space on system acceptable :
Database System File Directory = d:\oracle\visdata
required = 12009.0
actual = 107110.765625
Disk space on system acceptable :
Database Log File Directory = d:\oracle\visdata
required = 160.0
actual = 95101.765625
Disk space on system acceptable :
Database Transaction File Directory = d:\oracle\visdata
required = 28438.0
actual = 94941.765625
Disk space on system acceptable :
Database Archive File Directory = d:\oracle\visdata
required = 20186.0
actual = 66503.765625
Disk space on system acceptable :
APPL_TOP = d:\oracle\visappl
required = 5388.0
actual = 46317.765625
Disk space on system acceptable :
APPL_TOP mount 2 = d:\oracle\visappl
required = 2664.0
actual = 40929.765625
Disk space on system acceptable :
APPL_TOP mount 3 = d:\oracle\visappl
required = 4667.0
actual = 38265.765625
Disk space on system acceptable :
APPL_TOP mount 4 = d:\oracle\visappl
required = 2157.0
actual = 33598.765625
Disk space on system acceptable :
COMMON_TOP = d:\oracle\viscomn
required = 2207.0
actual = 31441.765625
Disk space on system acceptable :
Apps ORACLE_HOME = d:\oracle\visora\iAS
required = 1130.0
actual = 29234.765625
Disk space on system acceptable :
Tools ORACLE_HOME = d:\oracle\visora\8.0.6
required = 2425.0
actual = 28104.765625
Host/Domain Check
command : ping -n 1 munna
Pinging munna.com [192.168.1.100] with 32 bytes of data: Reply from 192.168.1.100: bytes=32 time<1ms TTL=128 Ping statistics for 192.168.1.100: Packets: Sent = 1, Received = 1, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms
host ping has succeeded
command : ping -n 1 munna.com
Pinging munna.com [192.168.1.100] with 32 bytes of data: Reply from 192.168.1.100: bytes=32 time<1ms TTL=128 Ping statistics for 192.168.1.100: Packets: Sent = 1, Received = 1, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms
host.domain ping has succeeded
OS Patch Checks
running command : OSPatchCheck.checkPatch()
OS = Windows XP OSVersion = 5.1
No Patch Information available for this Platform
System Utilities Check
command : cmd.exe /c F:\Stage11i\startCD\Disk1\rapidwiz\bin\adchkutl.cmd C:\install_soft\MKS C:\install_soft\MVS\VC98
F:\Stage11i\startCD\Disk1\rapidwiz>echo off
Setting environment for using Microsoft Visual C++ tools.
C:\WINDOWS\system32/cmd.exe
'which' command is available.
C:\WINDOWS\system32/gnumake.exe
'gnumake' is available.
C:\WINDOWS\system32/cc.exe
'cc' is available.
C:\INSTAL~1\MVS\VC98\BIN/link.exe
'link' is available.
ERRORCODE = 0 ERRORCODE_END
System Utilities Availability test has succeeded
DoInstallPanel - Summary Text
The Rapid Install Wizard will now install the following:
DoInstallPanel - User continued install at warning dialog.
Starting from CD area F:\Stage11i\startCD\Disk1
There was an error while running the command - cmd /c rmdir /S /Q C:\DOCUME~1\Abhi\LOCALS~1\Temp\rapidinstall
The system cannot find the file specified.
RW-50010: Error: - script has returned an error: 2
Returning - 0
=======================================================================
PLEASE HELP ME ..................Hi,
DoInstallPanel - User continued install at warning dialog.At what test you get the warning message?
Starting from CD area F:\Stage11i\startCD\Disk1
There was an error while running the command - cmd /c rmdir /S /Q C:\DOCUME~1\Abhi\LOCALS~1\Temp\rapidinstall
The system cannot find the file specified.
RW-50010: Error: - script has returned an error: 2Please set the temporary directory to point to C:\temp instead of "C:\DOCUME~1\Abhi\LOCALS~1\Temp\rapidinstall" and run RapidWiz again.
Regards,
Hussein -
I changed everything and i signed out then i sign in again but
still my. apple id is disabled plz solve this problem!!!!!????Hello jek28,
Thanks for using Apple Support Communities.
If you're getting the message that your Apple ID has been disabled for security reasons, then please follow the directions in the article below to resolve the issue.
If your Apple ID has been locked - Apple Support
Have a good one,
Alex H. -
How to combine this query so that i can display the ouput together
I have no idea how to combine this query together.Someone please help.I want the ouput to display oni 1 result combining all together.
select facility, route, operation, script_id
from F_ROUTEOPER
where facility = 'A01' and operation in ('6910','7976') AND src_erase_date is null
and (script_id not in ('PHQ-LOTCHKRV','PHQ-LOTCHK') or script_id is null)
AND (route NOT LIKE '9EL%' AND route NOT LIKE '9TB%'AND route NOT LIKE 'BLB%' AND route NOT LIKE 'BWR%' AND route NOT LIKE 'CRL%')
select facility, route, operation, script_id
from F_ROUTEOPER
where facility = 'A01' and operation in ('6912','7976') AND src_erase_date is null
and (script_id not in ('PHQ-LOTCHKRV','PHQ-LOTCHK') or script_id is null)
AND (route NOT LIKE '9EL%' AND route NOT LIKE '9TB%'AND route NOT LIKE 'BLB%' AND route NOT LIKE 'BWR%' AND route NOT LIKE 'CRL%')
select facility, route, operation, script_id
from F_ROUTEOPER
where facility = 'A01' and operation in ('7344','7976') AND src_erase_date is null
and (script_id not in ('PHQ-LOTCHKRV','PHQ-LOTCHK') or script_id is null)
AND (route NOT LIKE '9EL%' AND route NOT LIKE '9TB%'AND route NOT LIKE 'BLB%' AND route NOT LIKE 'BWR%' AND route NOT LIKE 'CRL%')
select facility, route, operation, script_id
from F_ROUTEOPER
where facility = 'A01' and operation in ('8344','7976') AND src_erase_date is null
and (script_id not in ('PHQ-LOTCHKRV','PHQ-LOTCHK') or script_id is null)
AND (route NOT LIKE '9EL%' AND route NOT LIKE '9TB%'AND route NOT LIKE 'BLB%' AND route NOT LIKE 'BWR%' AND route NOT LIKE 'CRL%')
Edited by: 965547 on Nov 5, 2012 12:55 AMThe only difference which i am seeing in your queries is the Operation ('6910', '6912','7344','8344')
Then why don't you put all values in One like this
Select facility, route, operation, script_id
from F_ROUTEOPER
where facility = 'A01' and operation in *('6910', '6912','7344','8344','7976')* AND src_erase_date is null
and (script_id not in ('PHQ-LOTCHKRV','PHQ-LOTCHK') or script_id is null)
AND (route NOT LIKE '9EL%' AND route NOT LIKE '9TB%'AND route NOT LIKE 'BLB%' AND route NOT LIKE 'BWR%' AND route NOT LIKE 'CRL%')
Hope this will resolve your problem.
Oracle-911 -
Query takes time to execute. Review this query and give me a possible quere
SELECT DISTINCT A.REFERENCE_NUMBER
FROM A,B,C
WHERE DF_N_GET_CONTRACT_STATUS (A.REFERENCE_NUMBER, TRUNC (SYSDATE)) = 1
AND ( B.CHQ_RTN_INDICATOR IS NULL AND B.CHALLAN_NUMBER IS NULL
AND C.INSTRUMENT_TYPE IN (1, 2) AND C.MODULE_CODE = 5 )
AND ( A.HEADER_KEY = B.HEADER_KEY AND C.HEADER_KEY = B.HEADER_KEY);
This query takes 3 minutes to execute. I want to improve the performance so that it can execute with in seconds.
Table A has 10 lakhs record.
Table B has 3.7 lakhs record.
Table C has 5.3 lakhs record. Consider DF_N_GET_CONTRACT_STATUS as function. REFERENCE_NUMBER is the type of Varchar2(20).
Plz give me a correct logical and fastest execution query for the same.
Thanks in advance.I would agree with the post from Santosh above that you should review the guidelines for posting a tuning request. This is VERY important. It is impossile to come up with any useful suggestions without the proper information.
In the case of your query, I would probably focus my attention on the function that you have defined. What happens if the condition using the DF_N_GET_CONTRACT_STATUS function is removed? Does it still take 3 minutes?
SELECT reference_number
from (
SELECT DISTINCT A.REFERENCE_NUMBER
FROM A,B,C
WHERE ( B.CHQ_RTN_INDICATOR IS NULL AND B.CHALLAN_NUMBER IS NULL
AND C.INSTRUMENT_TYPE IN (1, 2) AND C.MODULE_CODE = 5 )
AND ( A.HEADER_KEY = B.HEADER_KEY AND C.HEADER_KEY = B.HEADER_KEY)
where DF_N_GET_CONTRACT_STATUS(reference_number, trunc(sysdate)) = 1;Of course, the query above really depends on the cardinality of the returned data..... which is impossible to know without following the posting guidelines. This query could return anywhere between 0 rows and 2x10^17 rows. And in the latter case evaluating the function at the end wouldn't make any difference.
Also, do you really need the distinct? Does it make any difference? Most of the time that I see distinct, to me it either means the query is wrong or the data model is wrong. -
Hi,i'm Mizanur Rahman,i want to buy poker chips from my iTunes account, but not do this when i want to buy that say "please contact iTunes support ti complete this transaction" for what is this i dunt understand this.plz solv this probleams.but i parseas software from this account.so why not parseas poker chips? i have lote of blance in my account.so plz plz solve this provleams.
<Personal Information Edited by Host>These are user-to-user forums, you are not talking to Apple here and they don't monitor these forums (I've asked the hosts to remove your email address from your post).
You can contact iTunes support here and ask why you are getting the message and how to resolve it : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page -
My Dear
if I have table like emp table in scott plus new column month_sal
And I write qery like this
select ename,avg(sal) from emp
where month_sal=2
group by ename
no Problem up to now
I need Improve this query to be like this
select ename,avg(sal) current_month,avg(sal) previous_month from emp
where month_sal=2
group by ename
I need make another avgearge but for previuos parametre month
thanks in advanceuser222 wrote:
PLZ I need your helpIt would help if you provided some suitable example data and expected output for us so it was clear what you wanted, as described in the FAQ: {message:id=9360002}
Perhaps this helps...
SQL> ed
Wrote file afiedt.buf
1 with t as (select 1 as item_code, 20 as item_price, 1 as mnth, 2011 as yr from dual union all
2 select 2, 30, 1, 2011 from dual union all
3 select 3, 15, 1, 2011 from dual union all
4 select 4, 7, 2, 2011 from dual union all
5 select 5, 8, 2, 2011 from dual union all
6 select 6, 9, 2, 2011 from dual union all
7 select 7, 10, 2, 2011 from dual union all
8 select 8, 14, 3, 2011 from dual union all
9 select 9, 21, 3, 2011 from dual union all
10 select 10, 7, 4, 2011 from dual union all
11 select 11, 10, 4, 2011 from dual union all
12 select 12, 13, 4, 2011 from dual)
13 --
14 -- end of test data
15 --
16 select mnth, yr, mnth_avg_price
17 ,lag(mnth_avg_price) over (order by yr, mnth) as prev_mnth_avg_price
18 from (
19 select mnth, yr, avg(item_price) as mnth_avg_price
20 from t
21 group by mnth, yr
22 )
23* order by yr, mnth
SQL> /
MNTH YR MNTH_AVG_PRICE PREV_MNTH_AVG_PRICE
1 2011 21.6666667
2 2011 8.5 21.6666667
3 2011 17.5 8.5
4 2011 10 17.5
SQL>
Maybe you are looking for
-
BT says I'm not a customer so can I have a HomeHub...
I've been trying to update my SpeedTouch 330 modem to a Home Hub, but the BT website is refusing to sell me one at the upgrade price because it says I'm not a BT broadband customer. How can I convince it that I have been since 2005? BT is still happi
-
Hi, I am working on SAP CRM .Currently i used the XI system to read a XML file file using a file adapter and posting the information as a inbound idoc in the CRM system using the idoc adapter. Can the same functionality be achieved without using
-
Add a link with command to print some pages document automaticly of a PDF
Hello, I have a PDF document of 200 hundred pages. I would like to create a link which one will print determined pages when I click on. How can I do this ? For exemple, I have a link zone and when I clik on this zone I want to print automaticly the p
-
Custom Function giving compile error
Hi All, I have created a custom function to get the current time stamp. Below is the java code: package com.oracle.determinations.examples; import com.oracle.determinations.engine.CustomFunction; import com.oracle.determinations.engine.EntityInstance
-
Problems Accessing Crossdomain.xml
Ok, so ive been searching for a solution to my problem for 3 days now with no avail... hopefully someone here can help. Im building a website that i want to allow users to post jobs with or without an attached file... here is the site.... http://soen