How to divide the totalorderprice in 1st query with totalorders in 2nd query and save the result in new column
SELECT o.OrderID,SUM((od.UnitPrice * od.Quantity) - (od.Discount/100))+ o.Freight AS TotalOrderPrice
FROM [Order Details] as od join Orders as o on o.OrderID=od.OrderID
GROUP BY o.OrderID, o.Freight
select distinct o.employeeid, count(o.OrderID)as totalorders from Orders o group by o.EmployeeID
As suggested above, you need a common key for JOINing the queries (CTE-s):
WITH CTE1 AS
(select distinct o.employeeid, count(o.OrderID)as totalorders from Orders o group by o.EmployeeID)
CTE2 AS (SELECT o.OrderID, SUM((od.UnitPrice * od.Quantity) - (od.Discount/100))+ o.Freight AS TotalOrderPrice
FROM [Order Details] as od join Orders as o on o.OrderID=od.OrderID
GROUP BY o.OrderID, o.Freight)
SELECT
FROM CTE1 INNER JOIN CTE2 .....
CTE example: http://www.sqlusa.com/bestpractices2005/cte/
Kalman Toth Database & OLAP Architect
Free T-SQL Scripts
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012
Similar Messages
-
Who knows: How to divide the request.getInputStream()?
I use a form in a web page to update files, the form code is
<form action="/Mywork/servlet/fileupdate1" method="post" enctype="multipart/form-data">
<p>
Please select a file1 to upload: <input type="file" name="foo">
</p>
<p>
Please select a file2 to upload:<input type="file" name="foo1">
</p>
<input type="submit" value="Upload File!">
</form>
and the "fileupdate1" servlet which the "action" in the form tag refers to will get the inputstream by
"ServletInputStream servIn = request.getInputStream();", and create new OutputFileStream in the disk. But
new files which the servlet stored always have some additional codes "
-----------------------------7d419320202be
Content-Disposition: form-data; name="foo"; filename="H:\Documents and
Settings\administrator\desktop\ee.java"
Content-Type: application/octet-stream
If I updating two files, each file will has these kinds of codes and the two files only have one inputstream. I don't
how to remove these additional codes and how to divide the stream into pieces according to the updated-file-size.
I don't know wether I say it clearly?And
does anyone know the reasons and can help me?
Thank you very much.Use something like Jakarta Commons FileUpload to process the multipart/form-data request:
http://jakarta.apache.org/commons/fileupload/ -
How to divide the request.getInputStream()?
I use a form in a web page to update files, the form code is
<form action="/Mywork/servlet/fileupdate1" method="post" enctype="multipart/form-data">
<p>
Please select a file1 to upload: <input type="file" name="foo">
</p>
<p>
Please select a file2 to upload:<input type="file" name="foo1">
</p>
<input type="submit" value="Upload File!">
</form>
and the "fileupdate1" servlet which the "action" in the form tag refers to will get the inputstream by
"ServletInputStream servIn = request.getInputStream();", and create new OutputFileStream in the disk. But
new files which the servlet stored always have some additional codes "
-----------------------------7d419320202be
Content-Disposition: form-data; name="foo"; filename="H:\Documents and
Settings\administrator\desktop\ee.java"
Content-Type: application/octet-stream
If I updating two files, each file will has these kinds of codes and the two files only have one inputstream. I don't
how to remove these additional codes and how to divide the stream into pieces according to the updated-file-size.
I don't know wether I say it clearly?And
does anyone know the reasons and can help me?
Thank you very much.Well, if you know the format, you'd know that the file data starts after the first blank line (\r\n\r\n).
But why don't you just use Jakarta Commons File Upload or some other existing free package to handle multipart forms and save yourself the trouble. -
How to achieve the results by Query ??
Hello Guys,
I have couple tables which I need to join to get the result....This is what is in the tables...
CList Table
CID, Name
A, ABC
B,CDE
C,JFK
JList Table
JID, Name
1, Something
2, Another
3, Else
4, Should be something
JOb_2_Courses
JobID, CourseID
1,A
1,B
2,C
Employee Table
EID, Job_ID
1A, 1
2A,1
3B,1
2C,2
23D,3
CStatus Table
StatusID, Desc
1,Completed
2,Pending Approval
3,Declined
4,Scheduled
5,Register
Now user can only register the course which are related with their job....NO course else.....
When they register it is moved to temp_course_registration and then once completed to COURSE_HISTORY
For Example : So Employee : 1A will see two courses to register A and B...
Say he registers A....it makes an entry in temp_course_registration table with the course id, employeeid and date....
With further steps once that status is updated to '1'.....the course is deleted from temp_course_registration and is moved to course_history........
Now to show to the user...I need to include all my tables in the query and on the basis of status, show necessary things to the user....
Output :
Course_ID, Status.............
Say if they completed the course will come from course_history, if in the process will come from temp_course_registration.....if nothing is in the tables for the specific employee...this means status is '5' and they need to register everything...
Can someone let me know, how to achieve the results....
Thanks,
HarsimratHello
I'm off home now so I can't look at the query, but for future reference, if you want to improve your chances of getting help, you need to provide simple create table statements, and test data to go with it. I've done that with what you provided and hopefully someone else will be able to help. Also, you were asked if you could provide this in your other thread...
CREATE TABLE CList(CID varchar2(1), Name varchar2(3))
insert into clist values('A', 'ABC');
insert into clist values('B','CDE');
insert into clist values('C','JFK');
CREATE TABLE JList(JID number, Name varchar2(30))
insert into jlist values(1, 'Something');
insert into jlist values(2, 'Another');
insert into jlist values(3, 'Else');
insert into jlist values(4, 'Should be something');
CREATE TABLE JOb_2_Courses(JobID number, CourseID varchar2(1))
insert into job_2_courses VALUES(1,'A');
insert into job_2_courses VALUES(1,'B');
insert into job_2_courses VALUES(2,'C');
CREATE TABLE Employee (EID varchar2(3), Job_ID number)
INSERT INTO employee VALUES('1A', 1);
INSERT INTO employee VALUES('2A',1);
INSERT INTO employee VALUES('3B',1);
INSERT INTO employee VALUES('2C',2);
INSERT INTO employee VALUES('23D',3);
CREATE TABLE CStatus(StatusID number, Descr varchar2(30))
insert into cstatus values(1,'Completed');
insert into cstatus values(2,'Pending Approval');
insert into cstatus values(3,'Declined');
insert into cstatus values(4,'Scheduled');
insert into cstatus values(5,'Register');HTH
David -
How to divide the partitions in AIX 5L
Hi Guru's
Friends i am installing AIX 5L, How to divide the partitions in AIX5L
please tell me if anybody know.
ThanksWhat kind of partitions do you mean? Do you mean logical partitions?
Message was edited by:
Ivan Kartik -
How to divide the CRM transaction data by company cord?
How to divide the CRM transaction data by company cord?
CRM transaction have not company cord, so how to divide the data on BI report by company cord?
Do I have to get the sales organization from customer master?
Some transactions have not master data like lead. I want to know your experience.Hi
This is self reply.
I should use the sales organization instead of company cord.
But some business like lead from contact from customer can not separate the company, in situation one call center for multiple companies.
We should use another field to divide the company. Ex. Product, campaign, etc.
If someone knows better way to solve this issue, let me know the reply.
Regard
u1 -
How to divide the iview into frames?
Hi Experts,
Please tell me how to divide the iview into frames.Kindly provide the steps.Its urgent.
Regards,
NutanHi Nutan,
Now its clear!!
If I understand right. You want an overview page full of links to go to your different pages?
Or maybe you want a link form each page to go to another page?
In Portal Navigation through hyperlinks is possible.
You can either do that using EPCM.doNavigate("ROLES://...") {check for EPCM API of help.spa.com}
Or you could do that by simple
<a href="http://www.sdn.sap.com/irj/portal/myql">CLICK</a>
{check for Quicklinks on help.sap.com}
Either way you'll have to make a small JSP for that.
Hope this helped
If so kindly reward with points
Prem -
Af:query - How to get the result rowsets
Hi,
I have a requirement where i need to search the db rows on and append the results the adf rich table on each search.
For this i am using af:query component. And trying to get the result rows for the named criteria.
String mexpr = "#{bindings.DestinDescVOCriteriaQuery.processQuery}";
processMethodExpression(mexpr, queryEvent, QueryEvent.class);
ViewCriteriaManager vcm = getDestinDescViewObj().getViewCriteriaManager();
ViewCriteria vc = vcm.getViewCriteria("DestinDescVOCriteria");
getDestinDescViewObj().applyViewCriteria(vc);
AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
adfFacesContext.addPartialTarget(tblDestinDesc);
However on each click of search the rows searched in the previous attempt are not retained.
Can anyone let me know how to get the result from named criteria and append it the table?
Thanks
AjayCan anyone help?
-
HT1515 How can I use Airport Express (1st generation) with OS X Mavricks?
How can I use Airport Express (1st Generation) with OS X Mavericks?
1st Generation AirPort Express will work fine with Mavericks.
Are you sure that you have a 1st Gen Express?
Check the model number on the side of the Express. 1st Gen is A1264.
If you see A1084 or A1088, these are much older versions of the Express that were sold long before Apple began to use the Generation naming with "n" wireless devices in 2007.
Mavericks will not support the A1084 or A1088. Use another Mac running Leopard, Snow Leopard, or a PC if you need to administer the older Express. -
How to display the result of excutions(insert/update/delete rows)
Hello.
Does anyone know how to display the result of scenario executions just like a scenario executions tab of package (insert/update/delete rows) in other screen (in the intergated operating platform for operators using http)
In additional, I also like to show the hierarchy of scenario in the same view.
So, I need the query using the information of the ODI repository.
If it is possible, I also like to have the decription of the tables in the ODI repository.
Can anyone tell me how can I get the information of the counts of excution?
Thanks in advance.Hi,
You can get that information from the API getPrevStepLog. Does it work for you?
Download the last API reference manual from:
http://www.oracle.com/technology/products/oracle-data-integrator/10.1.3/htdocs/1013_support.html#docs -
How to get the results for given Bind Variable
Hi
Can any one help me how to get the result rows from the View Object after executing the view object query by setting bind variable?
snippet as follows
viewObject.setNamedWherClauseParams("name","hei");
viewObject.executeQuery();
How to get the results from viewObject is my question..?
Thanks in advanceShould be something like
while (vo.hasNext()){
Row r = vo.next();
r.getAttribute....
You might want to read the "most commonly used methods" appendix in the ADF Developer Guide. -
How to display the results in order by based on search value
Hi All,
how to display the results in the below order.
CREATE TABLE TEST( SONGID NUMBER, TITLE VARCHAR2(200))
INSERT INTO TEST(SONGID,TITLE) VALUES (10,'AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)');
INSERT INTO TEST(SONGID,TITLE) VALUES (11,'CICCONE, MADONNA (CA)');
INSERT INTO TEST(SONGID,TITLE) VALUES (12,'DALLIN, MADONNA LOUISE/STOCK');
INSERT INTO TEST(SONGID,TITLE) VALUES (13,'MADONNA');
INSERT INTO TEST(SONGID,TITLE) VALUES (14,'MADONNA (A)/ AHMADZAI, MIRWAIS (C)');
INSERT INTO TEST(SONGID,TITLE) VALUES (15,'MADONNA (CA)');
INSERT INTO TEST(SONGID,TITLE) VALUES (16,'MIRWAIS AHMADZAI, MADONNA');
INSERT INTO TEST(SONGID,TITLE) VALUES (17,'MIRWAIS (CA)/ MADONNA (CA),AHMADZAI');
INSERT INTO TEST(SONGID,TITLE) VALUES (18,'MADONNA (CA),CICCONE');
SELECT *FROM TEST WHERE INSTR (TITLE, 'MADONNA') > 0
output:
SONGID TITLE
10 AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)
11 CICCONE, MADONNA (CA)
12 DALLIN, MADONNA LOUISE/STOCK
13 MADONNA
14 MADONNA (A)/ AHMADZAI, MIRWAIS (C)
15 MADONNA (CA)
16 MIRWAIS AHMADZAI, MADONNA
17 MIRWAIS (CA)/ MADONNA (CA),AHMADZAI
18 MADONNA (CA),CICCONE
Expected output :
13 MADONNA
14 MADONNA (A)/ AHMADZAI, MIRWAIS (C)
15 MADONNA (CA)
18 MADONNA (CA),CICCONE
...if user searches with 'MADONNA' , I have to display the results like title starts with 'MADONNA' first then rest of the records.
Please let me know is it possible to display the results in that order.
Regards,
RajasekharThis may be a bit more accurate:
SQL> SELECT *
2 FROM TEST
3 WHERE INSTR (TITLE, 'MADONNA') > 0
4 ORDER BY INSTR (TITLE, 'MADONNA')
5 ,TITLE
6 ;
SONGID TITLE
13 MADONNA
14 MADONNA (A)/ AHMADZAI, MIRWAIS (C)
15 MADONNA (CA)
18 MADONNA (CA),CICCONE
12 DALLIN, MADONNA LOUISE/STOCK
11 CICCONE, MADONNA (CA)
17 MIRWAIS (CA)/ MADONNA (CA),AHMADZAI
16 MIRWAIS AHMADZAI, MADONNA
10 AHMADZAI, MIRWAIS (CA)/ MADONNA (CA) -
How to display the value of a column in a chart at the top of each column
How to display the value of each column in a chart at the top of each column?
Like this?
Done using chart Inspector.
For details, see Chapter 7, Creating Charts from Numerical Data in the Numbers '09 User Guide. The guide may be downloaded via the Help menu in Numbers.
Regards,
Barry -
mac book running slow I tried etresoft but not sure how to inturpret the results any help would be so awesome, thank you
Problem description:
Computer started running very slowly, when I type there is a delay and internet connection is very slow although it is not the wifi connection because it is running well on all other computers, phones, ect.
EtreCheck version: 2.1.8 (121)
Report generated March 28, 2015 12:02:27 PM HST
Download EtreCheck from http://etresoft.com/etrecheck
Click the [Click for support] links for help with non-Apple products.
Click the [Click for details] links for more information about that line.
Hardware Information: ℹ️
MacBook Pro (13-inch, Late 2011) (Technical Specifications)
MacBook Pro - model: MacBookPro8,1
1 2.4 GHz Intel Core i5 CPU: 2-core
4 GB RAM
BANK 0/DIMM0
2 GB DDR3 1333 MHz ok
BANK 1/DIMM0
2 GB DDR3 1333 MHz ok
Bluetooth: Old - Handoff/Airdrop2 not supported
Wireless: en1: 802.11 a/b/g/n
Battery Health: Normal - Cycle count 640
Video Information: ℹ️
Intel HD Graphics 3000 - VRAM: 384 MB
Color LCD 1280 x 800
System Software: ℹ️
Mac OS X 10.7.5 (11G63) - Time since boot: 24 days 0:56:6
Disk Information: ℹ️
ST9500325ASG disk0 : (500.11 GB)
disk0s1 (disk0s1) <not mounted> : 210 MB
Macintosh HD (disk0s2) / : 499.25 GB (422.45 GB free)
Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB
MATSHITADVD-R UJ-8A8
USB Information: ℹ️
Apple Inc. Apple Internal Keyboard / Trackpad
Apple Inc. BRCM2070 Hub
Apple Inc. Bluetooth USB Host Controller
Apple Inc. FaceTime HD Camera (Built-in)
Apple Computer, Inc. IR Receiver
Thunderbolt Information: ℹ️
Apple, Inc. MacBook Pro
Launch Agents: ℹ️
[running] com.Affinegy.InstaLANa.plist [Click for support]
[loaded] com.google.keystone.agent.plist [Click for support]
Launch Daemons: ℹ️
[loaded] com.adobe.fpsaud.plist [Click for support]
[unknown] com.Affinegy.InstaLANd.plist [Click for support]
[loaded] com.google.keystone.daemon.plist [Click for support]
[loaded] com.microsoft.office.licensing.helper.plist [Click for support]
User Launch Agents: ℹ️
[loaded] com.adobe.ARM.[...].plist [Click for support]
[failed] com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist [Click for details]
[running] com.spotify.webhelper.plist [Click for support]
User Login Items: ℹ️
iTunesHelper Application Hidden (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
GrowlHelperApp Application (/Library/PreferencePanes/Growl.prefPane/Contents/Resources/GrowlHelperApp.app)
Belkin Router Monitor Application (/Applications/Belkin/Belkin Router Monitor.app)
AdobeResourceSynchronizer Application Hidden (/Applications/Adobe Reader.app/Contents/Support/AdobeResourceSynchronizer.app)
Dropbox Application (/Applications/Dropbox.app)
Spotify Application (/Applications/Spotify.app)
Internet Plug-ins: ℹ️
FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
QuickTime Plugin: Version: 7.7.1
AdobePDFViewerNPAPI: Version: 10.1.3 [Click for support]
AdobePDFViewer: Version: 10.1.3 [Click for support]
Flash Player: Version: 16.0.0.305 - SDK 10.6 Outdated! Update
OfficeLiveBrowserPlugin: Version: 12.3.5 [Click for support]
SharePointBrowserPlugin: Version: 14.4.7 - SDK 10.6 [Click for support]
Silverlight: Version: 5.1.30514.0 - SDK 10.6 [Click for support]
DirectorShockwave: Version: 12.1.3r153 - SDK 10.6 [Click for support]
JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Check version
3rd Party Preference Panes: ℹ️
Flash Player [Click for support]
Growl [Click for support]
Time Machine: ℹ️
Time Machine not configured!
Top Processes by CPU: ℹ️
22% iTunes
5% ReportCrash
2% WindowServer
1% Microsoft PowerPoint
1% Google Chrome
Top Processes by Memory: ℹ️
241 MB Google Chrome
137 MB Google Chrome Helper
107 MB Microsoft PowerPoint
103 MB Dropbox
94 MB mds
Virtual Memory Information: ℹ️
440 MB Free RAM
2.27 GB Active RAM
536 MB Inactive RAM
1.05 GB Wired RAM
8.03 GB Page-ins
908 MB Page-outs
Diagnostics Information: ℹ️
Mar 28, 2015, 12:01:57 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120157_[redacted].crash
Mar 28, 2015, 12:01:36 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120136_[redacted].crash
Mar 28, 2015, 12:01:36 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120136_[redacted].crash
Mar 28, 2015, 12:01:25 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120125_[redacted].crash
Mar 28, 2015, 12:01:14 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120114_[redacted].crash
Mar 28, 2015, 12:01:14 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120114_[redacted].crash
Mar 28, 2015, 12:00:31 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120031_[redacted].crash
Mar 28, 2015, 12:00:20 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120020_[redacted].crash
Mar 28, 2015, 12:00:20 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120020_[redacted].crash
Mar 28, 2015, 12:00:10 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120010_[redacted].crash
Mar 28, 2015, 12:00:10 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120010_[redacted].crash
Mar 28, 2015, 11:59:59 AM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-115959_[redacted].crash
Mar 28, 2015, 11:59:47 AM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-115947_[redacted].crash
Mar 28, 2015, 11:59:38 AM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-115938_[redacted].crash
Mar 28, 2015, 11:59:29 AM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-115929_[redacted].crash
Mar 28, 2015, 11:59:20 AM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-115920_[redacted].crash
Mar 28, 2015, 11:59:09 AM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-115909_[redacted].crash
Mar 28, 2015, 11:59:09 AM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-115909_[redacted].crash
Mar 28, 2015, 11:58:57 AM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-115857_[redacted].crash
Mar 28, 2015, 11:58:57 AM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-115857_[redacted].crash
Mar 28, 2015, 11:58:45 AM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-115845_[redacted].crash
Mar 28, 2015, 12:01:45 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120145_[redacted].crash
Mar 28, 2015, 12:01:45 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120145_[redacted].crash
Mar 28, 2015, 12:01:03 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120103_[redacted].crash
Mar 28, 2015, 12:00:54 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120054_[redacted].crash
Mar 28, 2015, 12:00:54 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120054_[redacted].crash
Mar 28, 2015, 12:00:42 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120042_[redacted].crash
Mar 28, 2015, 12:00:42 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120042_[redacted].crash
Mar 28, 2015, 11:59:47 AM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-115947_[redacted].crash
Mar 28, 2015, 11:59:29 AM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-115929_[redacted].crash
Mar 28, 2015, 11:59:20 AM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-115920_[redacted].crash
Mar 28, 2015, 12:02:18 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120218_[redacted].crash
Mar 28, 2015, 12:02:06 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120206_[redacted].crash
Mar 28, 2015, 12:02:06 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120206_[redacted].crash
Mar 28, 2015, 12:01:57 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120157_[redacted].crash
Mar 28, 2015, 12:01:25 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120125_[redacted].crash
Mar 28, 2015, 12:01:03 PM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-120103_[redacted].crash
Mar 28, 2015, 12:00:31 PM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-120031_[redacted].crash
Mar 28, 2015, 11:59:59 AM /Library/Logs/CrashReporter/Belkin Router Monitor & Setup_2015-03-28-115959_[redacted].crash
Mar 28, 2015, 11:59:38 AM /Library/Logs/DiagnosticReports/Belkin Router Monitor & Setup_2015-03-28-115938_[redacted].crashUpdate your Belkin router software along with Affinegy software.
-
hi every body...
i want to get the result of any table..
for ex: select * from dept;
the o/p should be like(10~Accounts~new york)
for this i wrote this code.... it run sucessfully;
my prob is how to see the Result..
declare
tn varchar2(35);
sqlstmt varchar2(2000);
rc sys_refcursor;
begin
tn := '&tn';
sqlstmt := 'select * from '||tn;
open rc for sqlstmt;
end;
post u r comments,Hints and suggestion...post u r comments,Hints and suggestion...
SQL> var rc refcursor
SQL> begin
2 open :rc for 'select * from &tn';
3 end;
4 /
Enter value for tn: emp
old 2: open :rc for 'select * from &tn';
new 2: open :rc for 'select * from emp';
PL/SQL procedure successfully completed.
SQL> print rc
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SPENCER CLERK 7902 17-DEC-80 800 20
7499 VERREYNNE SALESMAN 7698 20-FEB-81 1600 300 30
7521 VAN WIJK SALESMAN 7698 22-FEB-81 1250 500 30
7566 MAINGUY MANAGER 7839 02-APR-81 2975 20
7654 KISHORE SALESMAN 7698 28-SEP-81 1250 1400 30
7698 BARRY MANAGER 7839 01-MAY-81 2850 30
7782 BOEHMER MANAGER 7839 09-JUN-81 2695 10
7788 PADFIELD ANALYST 7566 09-DEC-82 3000 20
7839 SCHNEIDER PRESIDENT 17-NOV-81 5500 10
7844 GASPAROTTO SALESMAN 7698 08-SEP-81 1500 0 30
7876 CAVE CLERK 7788 12-JAN-83 1100 20
7900 CLARKE CLERK 7698 03-DEC-81 950 30
7902 JAFFAR ANALYST 7566 03-DEC-81 3000 20
7934 ROBERTSON CLERK 7782 23-JAN-82 1430 10
109 JOMAR 30
8800 VISWARAYAR INTERN 7934 03-OCT-82 0 10
16 rows selected.
SQL> Cheers, APC
Blog : http://radiofreetooting.blogspot.com/
Maybe you are looking for
-
I can no longer manually drag music or podcasts on to my iphone 4. Help?!
i have a PC. First of all, the other day i opened itunes to discover that all of my music had disappeared from it. I then had to get it to find all the music and my computer and import it. I then discovered I have triplicates of multiple songs and ca
-
Hi, I want to obtain (within a process flow) the process flow ID that is executing. Exists any function or variable with the ID? I'm executing this query: select max(execution_audit_id) from runtimes.all_rt_audit_executions where task_name = <PROCESS
-
Get a remote interface from a local instance
hi, I want to construct a bean locally on a server and then I want to pass the remote interface for that constructed bean back to a client. Is this possible? Thanks
-
Plain text print speed thru lpr vs. BBEdit
When I send a plain text file to the Unix lpr command, it prints slowly; when I print with, say, BBEdit, the same text comes out much faster. I'm using an iBook G3 600 MHz with USB 1.0, OS X 10.4.11, and an Epson Stylus CX6000--a recent, non-Postscri
-
Navbar background color desapears!
Hi, When I was working as PORTAL30, everything looks fine! I have a navbar as a portlet in the left side of the page with blue background color. I created other users and usergroups and wanted to test different level of security. When I login as anot