Calculation 3 entries online and other documents
Thanks in advanceWhen I use the following query (1) I get accurate results for all 3 rows
When I use query2 I do not get results for all 3 rows
SELECT A.* 1).
REGR_R2 (average, teacher) OVER (ORDER BY one
LINES BETWEEN CASES
WHEN MOD (a, 3) = 0
THEN 3
When a = (SELECT MAX (a)
OF tableaa
)
THEN MOD (a, 3)
0 OTHERWISE
END PREVIOUS
AND CURRENT ROW
) AS r_square
OF tableaa one
-where a <>3
ORDER BY;
A BEGINNING TEACHER AVERAGE R_SQUARE END
--------------------------------------------------------------
1 0 0.1 159 159
2 0.1 0.2 159 168
3 0.3 0.2 179 159 0.25
4 0.1 0.2 250 300
5 0.2 0.3 320 250
6 0.4 0.3 250 380 0.164520715073488
7 0.2 0.3 388 379
8 0.3 0.4 379 388
9 0.5 0.4 388 400 0.218256852125604
10 1.5 0.6 499 500
11 0.6 0.5 420 448 0.953783619429657
(2) SELECT a.*,
REGR_R2 (average, teacher) OVER (ORDER BY one
LINES BETWEEN CASES
WHEN MOD (a, 3) = 0
THEN 3
When a = (SELECT MAX (a)
OF tableaa
)
THEN MOD (a, 3)
0 OTHERWISE
END PREVIOUS
AND CURRENT ROW
) AS r_square
OF tableaa one
When a <>3
ORDER BY;
A BEGINNING TEACHER AVERAGE R_SQUARE END
-----------------------------------------------------------
1 0 0.1 159 159
2 0.1 0.2 159 168
4 0.1 0.2 250 300
5 0.2 0.3 320 250
6 0.4 0.3 250 380 0.20518925851521
7 0.2 0.3 388 379
8 0.3 0.4 379 388
9 0.5 0.4 388 400 0.218256852125604
10 1.5 0.6 499 500
11 0.6 0.5 420 448 0.953783619429657
create table TABLEAA
(
A NUMBER,
PLEASE THE NUMBER,
NUMBER OF END,
NUMBER OF TEACHER,
AVERAGE NUMBER
)
;
Fast loading TABLEAA...
insert into TABLEAA (A, START, END, TEACHER, AVERAGE)
values (10, 1.5,.6,, 499, 500);
insert into TABLEAA (A, START, END, TEACHER, AVERAGE)
values (1, 0,.1, 159, 159);
insert into TABLEAA (A, START, END, TEACHER, AVERAGE)
values (2,.1,.2,, 159, 168);
insert into TABLEAA (A, START, END, TEACHER, AVERAGE)
values (3,.2,.3, 179, 159);
insert into TABLEAA (A, START, END, TEACHER, AVERAGE)
values (4,.1,.2, 250, 300);
insert into TABLEAA (A, START, END, TEACHER, AVERAGE)
values (5,.2,.3, 320, 250);
insert into TABLEAA (A, START, END, TEACHER, AVERAGE)
values (6,.3,.4,, 250, 380);
insert into TABLEAA (A, START, END, TEACHER, AVERAGE)
values (7,.2,.3, 388, 379);
insert into TABLEAA (A, START, END, TEACHER, AVERAGE)
values (8,.3,.4,, 379, 388);
insert into TABLEAA (A, START, END, TEACHER, AVERAGE)
values (9,.4,.5, 388, 400);
insert into TABLEAA (A, START, END, TEACHER, AVERAGE)
values (11.5.6, 420, 448);
commit;
What:
SELECT d.*
FROM (SELECT c.*, last_value(r_square ignore nulls) over (order by rn_desc) r_square_val
FROM (SELECT a.*,
REGR_R2 (average, prof) OVER (ORDER BY rn
ROWS BETWEEN CASE WHEN MOD (rn, 3) = 0
THEN 3
WHEN rn_desc = 1
THEN MOD (rn, 3)
ELSE 0
END PRECEDING
AND CURRENT ROW) AS r_square
FROM (select b.*,
row_number() over (order by b.a) rn,
row_number() over (order by b.a desc) rn_desc
from tableaa b
where b.a != 3) a) c) d
where trunc(r_square_val, 2) = 0.01
ORDER BY d.a;
Tags: Database
Similar Questions
-
I have windows 8 is installed in my desktop pc
I want to move my account to GO to THE LOCAL because of user setting I m tried to synchronize my app Mail for new emails and other stuff his watch still unavailable then, opting for the account local affect current files and other documents are stored in the pc at this moment before I spend.Hello
Passage of the account Microsoft local account will not affect your personal documents saved on the computer.
Reference: http://support.microsoft.com/kb/2782145
It would be useful that you could provide more information on the problem faced with synchronization.
-What is the exact error you get when synchronization Mail app and other apps?
-Do you use all parameters of proxy to access the internet?
-Remember to make changes before the show?
-What anti-virus software is installed on the computer?
If you encounter the problem of synchronization with all applications, then I ran the http://download.microsoft.com/download/F/2/4/F24D0C03-4181-4E5B-A23B-5C3A6B5974E3/apps.diagcab Apps store
Navigate through the steps mentioned in http://windows.microsoft.com/en-us/windows-8/what-troubleshoot-problems-app
Check if you have any proxy enabled. If so, then delete it.
a. open Internet Explorer.
b. click on tools and select Internet Options.
c. click on connections.
d. click on LAN settings.
e. remove the check mark next to proxy server.
f. click OK and check if you are able to synchronize emails.
If none of the steps work, try to remove the account from the messaging application and add it again and check.
Go through http://windows.microsoft.com/en-IN/windows-8/mail-app-faq
Hope this information is useful. Let us know if you have any questions.
-
Calculation 3 records and other documents
I'm under the table with 10000 lines
for example, I added only 11 lines
I need fill the value r square for each (Column) has 3 rows and so on
If the remianing records are less than 3, so I need to calculate the remaining, those also
What I need like below
A BEGINNING TEACHER AVERAGE R_SQUARE END
--------------------------------------------------------------------------------
1 0 0.1 159 159
2 0.1 0.2 159 168
3 0.3 0.2 179 159 0.25
4 0.1 0.2 250 300
5 0.2 0.3 320 250
6 0.4 0.3 250 380 0.627906977
7 0.2 0.3 388 379
8 0.3 0.4 379 388
9 0.5 0.4 388 400 0.006756757
10 1.5 0.6 499 500
11 0.6 0.5 1 448 420
R - square-> REGR_R2 (AVERAGE, TEACHER)
Select one
beg
end
teacher
average
, case mod (a, 3) when 0 then regr_r2 (average, teacher) (any order by a line between 2 previous and current line) end r_square
of tableaa
A BEGINNING TEACHER AVERAGE R_SQUARE END
-----------------------------------------------------
1 0 0.1 159 159
2 0.1 0.2 159 168
3 0.3 0.2 179 159 0.25
4 0.1 0.2 250 300
5 0.2 0.3 320 250
6 0.4 0.3 250 380 0.627906976744186
7 0.2 0.3 388 379
8 0.3 0.4 379 388
9 0.5 0.4 388 400 0.00675675675675676
10 1.5 0.6 499 500
11 0.5 0.6 420 448 < does not appear in Acrobat one >
create table TABLEAA
(
A NUMBER,
PLEASE THE NUMBER,
NUMBER OF END,
NUMBER OF TEACHER,
AVERAGE NUMBER
)
;
insert into TABLEAA (A, START, END, TEACHER, AVERAGE)
values (10, 1.5,.6,, 499, 500);
insert into TABLEAA (A, START, END, TEACHER, AVERAGE)
values (1, 0,.1, 159, 159);
insert into TABLEAA (A, START, END, TEACHER, AVERAGE)
values (2,.1,.2,, 159, 168);
insert into TABLEAA (A, START, END, TEACHER, AVERAGE)
values (3,.2,.3, 179, 159);
insert into TABLEAA (A, START, END, TEACHER, AVERAGE)
values (4,.1,.2, 250, 300);
insert into TABLEAA (A, START, END, TEACHER, AVERAGE)
values (5,.2,.3, 320, 250);
insert into TABLEAA (A, START, END, TEACHER, AVERAGE)
values (6,.3,.4,, 250, 380);
insert into TABLEAA (A, START, END, TEACHER, AVERAGE)
values (7,.2,.3, 388, 379);
insert into TABLEAA (A, START, END, TEACHER, AVERAGE)
values (8,.3,.4,, 379, 388);
insert into TABLEAA (A, START, END, TEACHER, AVERAGE)
values (9,.4,.5, 388, 400);
insert into TABLEAA (A, START, END, TEACHER, AVERAGE)
values (11.5.6, 420, 448);
commit;
Thanks in advanceHello
You can set the column to r_square like this:
, REGR_R2 (average, prof) OVER ( ORDER BY a ROWS BETWEEN CASE WHEN MOD (a, 3) = 0 THEN 3 WHEN a = ( SELECT MAX (a) FROM tableaa ) THEN MOD (a, 3) ELSE 0 END PRECEDING AND CURRENT ROW ) AS r_square
If you're only computer regr_r2 on 1 row (i.e. the current line more 0 previous lines), it returns NULL.
It may be more efficient to determine which is the last row of a subquery, possibly using ROW_NUMBER () OVER (ORDER BY a DESC).
Then, in the main query, you won't have to repeat the scalar subquery (SELECT MAX (a) tableaa) on 2/3 of the lines.Published by: Frank Kulash, August 19, 2009 14:25
-
Incorrect IMEI in Motoblur account online and other problems
My first Atrix lasted a few weeks due to a problem of speaker and has been changed (so an IMEI change). I had frequent problems with the mail out from the phone - sometimes the emails go straight, sometimes afetr a few hours, sometimes not at all. I am aware that it is a problem acknowledged in the USA and Orange UK have countered the problem on an Atrix with their technicians.
Today, I logged on my account Motoblur to track my phone that I had had problems with the application Android MapmyRide. When I logged I found the IMEI number on the account was incorrect and I have been unable to "find my phone". I'm pretty sure I could follow him in the past but is not sure that it is with the newer phone.
Read the other posts I see that others have had problems with IMEIs incorrect but no real solution
When I bought the phone I thought I was getting about the best phone on the market, but I had nothing other that problems (there is also a bug in the webtop software that causes freeze it and stutter when you run BBCiplayer that requires a reboot battery!)... I'm starting to wish I had moved on.
The phone is not 'rooted' (don't really know what it means anyway.
HELP PLEASE!
Another point to note: my motoblur account says I need to download the new software for it by clicking the button on the account to send a message on the phone - I did several times in the last three days without message on the phone. Update the software of the phone also fails and it's going in a vicious circle of the search for an update and no final results. GREAT! I guess that this problem is related to the incorrect IMEI.
Mark,
email address was like my address of profile... until I went forward with the master reset last night. Lost all the apps that was what I was trying to avoid (but had written a long list before wiping the phone).
The reset seems to have succeeded, I reused the old username and password, the software update also went through OK and the IMEI is now correct.
BUT... some of the apps no longer appear in full screen; Your Orange (latest version), Pocket (secure storage), Solitaire (entertainment favorite girls). All show to about 2/3 of size which is annoying and makes Orange your almost unusable. Any suggestions?
-
It is an intermittent problem - the message says something like the computer can not find attached messages always want to send the email. I can see the attachments so I do not understand why it does this.
all ideasIt is an intermittent problem - the message says something like the computer can not find attached messages always want to send the email. I can see the attachments so I do not understand why it does this.
all ideas1. when it happens again, temporarily disable your anti-virus mail option electronics scannibg. Try to send attachments again.
If it works, that's your problem.2. Please see if one of your settings match the following:
Open Outlook > tools > Options > Mail Format tab, in the compose in this message format: set as HTML > OKt-4-2
-
Can you have bookmarks in a document of fm and other beginner questions?
Hello
I just took an assessment of Framemaker to accelerate the generation of pdf and html, as I currently
Use a single source tool developed in-house. I used latest Framemaker when it was version 6 and I
a few questions about things I would like to be able to do:
Can I view the bookmarks in a document, standard framemaker, like in Word? I find that this makes it easier to
navigate around the documentation, or is there a better way? I don't know their definition in the PDF file, this
is for me as the author...
I got just the Autonumbering once again kick, but have not found out/understood how to keep my legends of the figures
with the images that I imported a framework anchored, if any help you can give me would be appreciated
with that.
Output PDF is great and the speed of the savings is ideal even for large documents. Is there a real advantage
have a lot of several chapters in a book, rather than a long document? My longer document is of approximately
280 pages and consists of four sections, with Appendix, glossary, index and table of contents.
Output HTML seems to be as bad a I remembered 6 years when I used Webworks Publisher to
perform the conversion. RoboHelp is a good alternative I organized an assessment from next week
so have not had the chance to look at this yet, but would be interested in what people think.
Thank you very much in advance for your help.
See you soon,.
Karen
AKACB wrote:
Hello
I just took an assessment of Framemaker to accelerate the generation of pdf and html, as I currently
Use a single source tool developed in-house. I used latest Framemaker when it was version 6 and I
a few questions about things I would like to be able to do:
Can I view the bookmarks in a document, standard framemaker, like in Word? I find that this makes it easier to
navigate around the documentation, or is there a better way? I don't know their definition in the PDF file, this
is for me as the author...
Hi, Karen:
In FrameMaker documents, you can navigate to something that will become a link in a PDF document to its source, with a "hyperclick" on the page entries table of contents and indexes in the generated files and references or hyperlinks not generated documents. A hyperclick is Ctrl + Alt + click. There is no click back. You can lock the FrameMaker documents to make these active links with a single click and use the dos commands and others on the Navigation menu that appears when a locked document is active.
To lock or unlock a document for the type of hypertext navigation and release these keys in order: F Escape (must be uppercase) l (lowercase ' el' not important 'eye' or number one) k (must be lowercase). I remember as "(F) Island (l) oc (k).»
Google search for words like 'Lock of FrameMaker for hypertext Documents' and "FrameMaker navigation Menu" without the quotes, for more information on these techniques.
Also, you can use the dialog box insert reference allows to browse some sort of plan file, by selecting a paragraph format such as a cap, on the left and scroll through these paragraphs on the right. Page numbers, you can see the list below indicate the first and last page of the paragraphs in the list above. It's a little inaccurate, but useful.
You can also generate table of contents or index or list of external cross-references (special > list of > references > external cross references), and then close window of the file generated to fit in the workspace to the sides of the active document. Hyperclick in the generated files, or lock files and a simple click on an entry, to navigate to the location linked in any other file is advanced to.
HTH
Kind regards
Peter
_______________________
Peter gold
Know-how ProServices
-
Up to version 6.22 of entry and other components HTML texts have been with a width. Now, after installing version 7. The entries have increased in size not more about before defined sizes... You can fix this?
I think it's about the size, just differently than before. See the discussion in:
https://Bugzilla.Mozilla.org/show_bug.cgi?id=691157 -
Removal of Documents and data and other
Material: iPhone 5
Software: iOS 9.2 (at day, on this day)
I have an old iPhone 5 that I'm redirecting as music player. I did a thorough cleaning ("erase all content and settings') of the device before you start. I copied the music on it (via iTunes on my MacBook). After a few moments, I noticed that the use of "Documents & data" is now about 900MB, and 'Other' is about 350 MB. What is this, and how do I empty?
There are no installed applications (other than those which are by default on the phone). He has been in flight since the reset mode (but with WiFi and Bluetooth on), and it is an inactive SIM (got a new with my new phone, so this SIM has been disabled by my company). The only active account on my Apple account. No email, social media, etc. accounts are configured. There is no photos, videos, podcasts, or anything else on it. The use of the storage (under 'manage storage') shows some nominal storage by default applications (from 16 KB to 2 MB) and there is nothing further stated within each application.
Then... What is only 1.25 GB of things which are appeared unexpectedly? And more importantly, how can I get rid of him? Other than music files (and the music app), there is no other applications or data on the iPhone that needs to be saved.
Thank you.
'Other' data the iOS itself, as well as any app data, messages or email. 350 MB is low, so it's mainly the iOS. The Documents and the data is most likely the work of art album data, and associated playlists etc.
-
I have a HP Vista. My default Word automatically with WordPad documents. It's terrible! How to spell check and other bars and how to convert to Word base. Thank you.
Microsoft Word is installed?
If so - what version (start it manually.)
-
Error with Facebook and other web pages; document. Body' is null or not an object
Original title: error line: 19 tank: 23004 error line: 20 cha:124
document. Body' is null or not an object line: 19 tank: 23004... object doesn't support this property or method line: 20 char: 124... I get these errors on facebook and other web pages help me please!
Hello
IE - Tools - Internet Options - Advanced tab - navigation on the article - check the BOTH Disable script
boxes of debugging.Close and restart IE.
------------------------
Follow these steps to remove corruption and missing/damaged file system repair or replacement.
Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup
Start - type in the search box - find command top - RIGHT CLICK – RUN AS ADMIN
sfc/scannow
How to fix the system files of Windows 7 with the System File Checker
http://www.SevenForums.com/tutorials/1538-SFC-SCANNOW-Command-System-File-Checker.htmlThen run checkdisk (chkdsk).
How to run check disk in Windows 7
http://www.SevenForums.com/tutorials/433-disk-check.html========================
========================Tips for solving problems with Internet Explorer
http://Windows.Microsoft.com/en-us/Windows7/tips-for-solving-problems-with-Internet-Explorer------------------------------------------
Methods more troubleshooting for Facebook and other questions of the site, if needed:
Try to add to your trusted sites in IE - Tools - Internet Options - Security - Trusted Sites.
http://www.Facebook.com/login.php
http://www.Facebook.com/Farmville
What antivirus/antispyware/security products do you have on the machine? Be one you have
EVER had on this machine, including those you have uninstalled (they leave leftovers behind which)
may cause strange problems).If no joy there's something blocking perhaps.
Start - All Programs - Accessories - System Tools - IE with no Addons - what works best?
IE - Tools - Internet Options - Advanced - tab click on restore, and then click Reset - apply / OK
IE - Tools - Internet Options - Security tab - click on reset all default areas - apply / OK
Close and restart IE or IE with no addons
not better?
IE - tools - manage Addons (for sure disable SSV2 if she's here, it is no longer necessary but Java
installs and it causes more questions - have you never update Java to go back in and turn it off again.) Search
other possible problems.Windows Defender - tools - software explore - look for problems with programs that do not look
right. Allowed are usually OK and "unauthorized" are not always bad. If doubt about a program
ask about it here.Could not be a free - SpyBHOremover - BHO - standalone program, needs no installation, download.
unzip and run - all are not bad, but some can cause your question (toolbars are BHO).
http://securityxploded.com/bhoremover.phpHow to change, add or remove startup programs in Windows 7
http://www.SevenForums.com/tutorials/1401-startup-programs-change.htmlAlso get Malwarebytes - free - use as scanner only.
------------------------------------------------------
Maybe using Compatibility Mode will help you.
Introduction of compatibility view
http://blogs.msdn.com/ie/archive/2008/08/27/introducing-compatibility-view.aspxhttp://www.Microsoft.com/Windows/Internet-Explorer/features/easier.aspx
Some Web sites are not displayed correctly or work correctly in Windows Internet
Explorer 8
http://support.Microsoft.com/kb/956197Hope these helps.
Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.
-
other countries could be bought online and send it to any country?
other countries could be bought online and send it to any country?
Hello
Yes, we do this all day, BUT you should check the tax law in your country.
Kind regards
-
Confused as to why I fill out and sign some documents of player and other times I can only sign the documents. Why is this?
Hi sapconman2812,
It depends on the documents. If the document is configured to enter data, then you will need to use fill & sign tool to complete the form and sign it.
If its only out in the signature, then you will get only the option to sign the form.
Kind regards
Nicos -
Delete record and display of value in other documents
Hi all
I use 11.6 Toad, I don't know if my subject really clarifies what I need assistance. I'm not able to join (if that's the right solution) display below data. The record that contains the value 98,38 should appear in other documents and registration with this value should not display. Can someone help me with this, thanks for reading also.
SELECT THE SID,
ORGANIZATION_ID,
ORGANIZATION,
PERMIT_NUMBER,
GAME_DATE,
BASIS_FOR_FEE,
ADDAMOUNT,
CHGSDESC,
PBPAYAMT
OF ABCGAMING_PRE_POSTING_VW
WHERE ORGANIZATION = "Test of bombers".
SID ORGANIZATION GAME_DATE BASIS_FOR_FEE ADDAMOUNT CHGSDESC PBPAYAMT PERMIT_NUMBER ORGANIZATION_ID247741 243480 bombers test 865 644 3/3/2014 0 0
247750 243480 Bombers Test 644 0 0 98.38
247740 243480 bombers test 644 3/6/2014 162,5 0 0
I would like the results to look like underneath, the PBPAYAMT and the CHGSDESC should appear in the other files. But also to remove the extra record without Game Date, basis for feesand Addadmount values.
SID ORGANIZATION GAME_DATE BASIS_FOR_FEE ADDAMOUNT CHGSDESC PBPAYAMT PERMIT_NUMBER ORGANIZATION_ID
247741 243480 bombers test 865 644 3/3/2014 0 98,38
247740 243480 bombers test 644 3/6/2014 162,5 0 98,38
Thanks for the reply from Frank,
This is my first post since the site has been updated. I'm sorry do not follow the Protocol appropriate seriously. I can extend what you have provided. Thank you for the statement, this will help me.
-
I want to open two different pdf documents and view them at the same time so I can read a whole watching the other document. I use Acrobat DC and whenever I open a document, it creates a tab and I can only examine a document at a time. Is it possible to display two or more documents without having to toggle tabs?
Don't think that will work, but you can drag the tab to a new window. Each window can have a set of tabs.
-
I use Acrobat DC and I'm unable to open a PDF file on a Web site. Whenever I click the link it says that my drive is not updated. I've updated the player several times now and it always used open. Other documents open on this Web site. http://www.cic.gc.ca/english/pdf/kits/forms/IMM1344E.pdf
It is an XFA file that is not detected by the PDF viewers in the web browser.
Please right click on this link http://www.cic.gc.ca/english/pdf/kits/forms/IMM1344E.pdf & select ' Save As... ', now, to save the PDF file to your desktop & open with Adobe Reader.
I'm sure that it will work as it worked on my end.
Kind regards
Nicos
Maybe you are looking for
-
HP probook 450 g1: problem bluetooth windows 8.1
I can't connect my phone and bluetooth headset to my laptop, its computer notebook windows 8.1 64 bit.my can't find my phone and bluetooth headphones, but he found another device on the network. Any suggestions? Thank you
-
Printing problems home network between Windows XP and Windows 7 PC base
I've seen a number of comments about problems between Windows 7 and Windows XP computers print domestic network. In my case, I have a new Windows 7 Desktop connected to my printers and wireless modem and I use several portable Windows XP in the Hous
-
DRIVER_IRQL_NOT_LESS_OR_EQUAL (athw8x.sys)
(athw8x.sys) DRIVER_IRQL_NOT_LESS_OR_EQUAL Error on a blue screen. I copied the contents of minidump and the MSinfo32. https://onedrive.live.com/redir?RESID=B7FB0713E87377A9%21112 https://onedrive.live.com/redir?RESID=B7FB0713E87377A9%21107
-
Adobe Enterprise applications is not a link to a pre existing Adobe account.
User can see that they have been granted access, but when you use the Downloader CC, they are only available tests. This adobe account was created years using an e-mail account of company and then later linked to the Adobe Enterprise Dashboard user f
-
Print the values to increment on a single line in the dynamic instruction
How to print an increment of values in a single statement using dynamic sql? create table test_table (file_id number, start_id number, no_of_id number); insert into test_table(1, 1000, 3); insert into test_table (2, 1500, 4); commit;I want output lik