Need Dinstinct values, not the values for pidm (id) of a cursor
Hello! I use 11g. I'm trying to get values distinct pidm in the crusor to ap_rec for inclusion in a couple of tables. However, I also need the set of values for insertion on another table and do not know how to do this.
Set serveroutput on;
game check
coil ap_credit.txt;
declare
The CNT number;
default varchar2 (6) sbgi_code 'Z00162 ';
user_id varchar2 (7) default 'BANWORX ';
number of trit_seq_no;
number of tram_seq_no;
number of trcr_seq_no;
number of trce_seq_no;
number of credit_hours;
term_desc varchar2 (12);
cursor test_scores
is
Select sortest_pidm,
sortest_tesc_code,
sortest_test_score,
Sortest_Test_Date,
(Select Max (A.Stvterm_Code) in Stvterm
where A.Stvterm_start_Date < = Sortest_Test_Date) STVTERM_CODE;
(Replace select (B.STVTERM_DESC,'Term ", null") Stvterm b)
where b.Stvterm_start_Date < = Sortest_Test_Date
AND B.STVTERM_CODE = (Select Max (A.Stvterm_Code) of Stvterm A
where A.Stvterm_start_Date < = Sortest_Test_Date)) STVTERM_desc;
-STVTERM_CODE,
-STVTERM_DESC,
-f_sgbstdn_fields(sortest.sortest_pidm,'201380','MAJOR_1')
SGBSTDN. SGBSTDN_MAJR_CODE_1,
SGBSTDN. SGBSTDN_MAJR_CODE_CONC_1
of sortest, SGBSTDN
where
sortest_pidm = SGBSTDN.sgbstdn_pidm
and SGBSTDN. SGBSTDN_TERM_CODE_EFF = (select max (b.SGBSTDN_TERM_CODE_EFF)
of SGBSTDN b
where b.SGBSTDN_PIDM = SGBSTDN. SGBSTDN_PIDM)
and sortest_tesc_code in (select distinct sxvapcred_tesc_code from ttubanr.sxvapcred)
- and A.STVTERM_CODE = (Select Max (b.Stvterm_Code) From Stvterm B
(- where b.Stvterm_start_Date < = Sortest_Test_Date)
and sortest_activity_date > sysdate - & & numdays;
cursor ap_rec (pidm_in sortest.sortest_pidm%TYPE, tesc_code_in sortest.sortest_tesc_code%TYPE,
test_score_in sortest.sortest_test_score%TYPE, major_in sgbstdn. SGBSTDN_MAJR_CODE_1% TYPE,
conc_in SGBSTDN. TYPE OF SGBSTDN_MAJR_CODE_CONC_1%, TERM_IN STVTERM. TYPE OF STVTERM_CODE %, TERM_DESC_IN STVTERM. STVTERM_DESC % TYPE)
is
Select pidm_in,
TERM_IN,
TERM_DESC_IN,
SXVAPCRED_TTU_SUBJ_CODE,
SXVAPCRED_TTU_CRSE_NUM,
A.SCBCRSE_TITLE,
When case A.SCBCRSE_CREDIT_HR_LOW > 0
then A.SCBCRSE_CREDIT_HR_LOW
of other A.SCBCRSE_CREDIT_HR_HIGH
end SCBCRSE_CREDIT_HR
--(select case quand A.SCBCRSE_CREDIT_HR_LOW > 0)
-then sum (A.SCBCRSE_CREDIT_HR_LOW)
-of another sum (A.SCBCRSE_CREDIT_HR_HIGH)
(- end of SCBCRSE A sum_hours) sum_hours
of ttubanr.sxvapcred, SCBCRSE A
where
SXVAPCRED_TTU_SUBJ_CODE = A.SCBCRSE_SUBJ_CODE
and SXVAPCRED_TTU_CRSE_NUM = A.SCBCRSE_CRSE_NUMB
and sxvapcred_tesc_code = tesc_code_in
and test_score_in > = sxvapcred_min_test_score
and test_score_in < = sxvapcred_max_test_score
and major_in = SXVAPCRED_MAJR
and conc_in = SXVAPCRED_CONC
and A.SCBCRSE_EFF_TERM = (SELECT MAX (B.SCBCRSE_EFF_TERM) FROM SCBCRSE B
WHERE A.SCBCRSE_CRSE_NUMB = B.SCBCRSE_CRSE_NUMB
AND A.SCBCRSE_SUBJ_CODE = B.SCBCRSE_SUBJ_CODE)
-Group of
-pidm_in,
-SXVAPCRED_TTU_SUBJ_CODE,
-SXVAPCRED_TTU_CRSE_NUM,
-A.SCBCRSE_TITLE,
-A.SCBCRSE_CREDIT_HR_LOW,
-A.SCBCRSE_CREDIT_HR_HIGH;
Union
Select pidm_in,
TERM_IN,
TERM_DESC_IN,
SXVAPCRED_TTU_SUBJ_CODE,
SXVAPCRED_TTU_CRSE_NUM,
A.SCBCRSE_TITLE,
When case A.SCBCRSE_CREDIT_HR_LOW > 0
then A.SCBCRSE_CREDIT_HR_LOW
of other A.SCBCRSE_CREDIT_HR_HIGH
end SCBCRSE_CREDIT_HR
of ttubanr.sxvapcred, SCBCRSE A
where
SXVAPCRED_TTU_SUBJ_CODE = A.SCBCRSE_SUBJ_CODE
and SXVAPCRED_TTU_CRSE_NUM = A.SCBCRSE_CRSE_NUMB
and sxvapcred_tesc_code = tesc_code_in
and test_score_in > = sxvapcred_min_test_score
and test_score_in < = sxvapcred_max_test_score
and major_in = SXVAPCRED_MAJR
and SXVAPCRED_CONC IS NULL
and SXVAPCRED_TTU_SUBJ_CODE = A.SCBCRSE_SUBJ_CODE
and SXVAPCRED_TTU_CRSE_NUM = A.SCBCRSE_CRSE_NUMB
and A.SCBCRSE_EFF_TERM = (SELECT MAX (B.SCBCRSE_EFF_TERM) FROM SCBCRSE B
WHERE A.SCBCRSE_CRSE_NUMB = B.SCBCRSE_CRSE_NUMB
AND A.SCBCRSE_SUBJ_CODE = B.SCBCRSE_SUBJ_CODE)
Union
Select pidm_in,
TERM_IN,
TERM_DESC_IN,
SXVAPCRED_TTU_SUBJ_CODE,
SXVAPCRED_TTU_CRSE_NUM,
A.SCBCRSE_TITLE,
When case A.SCBCRSE_CREDIT_HR_LOW > 0
then A.SCBCRSE_CREDIT_HR_LOW
of other A.SCBCRSE_CREDIT_HR_HIGH
end SCBCRSE_CREDIT_HR
of ttubanr.sxvapcred, SCBCRSE A
where
SXVAPCRED_TTU_SUBJ_CODE = A.SCBCRSE_SUBJ_CODE
and SXVAPCRED_TTU_CRSE_NUM = A.SCBCRSE_CRSE_NUMB
and sxvapcred_tesc_code = tesc_code_in
and test_score_in > = sxvapcred_min_test_score
and test_score_in < = sxvapcred_max_test_score
and SXVAPCRED_MAJR IS NULL
and SXVAPCRED_CONC IS NULL
and SXVAPCRED_TTU_SUBJ_CODE = A.SCBCRSE_SUBJ_CODE
and SXVAPCRED_TTU_CRSE_NUM = A.SCBCRSE_CRSE_NUMB
and A.SCBCRSE_EFF_TERM = (SELECT MAX (B.SCBCRSE_EFF_TERM) FROM SCBCRSE B
WHERE A.SCBCRSE_CRSE_NUMB = B.SCBCRSE_CRSE_NUMB
AND A.SCBCRSE_SUBJ_CODE = B.SCBCRSE_SUBJ_CODE);
Hello
Sorry, I can't say what you want.
Whenever you have any questions, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.
If you ask on a DML statement, such as UPDATE, the sample data will be the content of the or the tables before the DML, and the results will be the State of the or the tables changed when it's all over.
Explain, using specific examples, how you get these results from these data.
Always say what version of Oracle you are using (for example, 11.2.0.2.0).
See the FAQ forum: https://forums.oracle.com/message/9362002
Is the problem you need to do some things for all lines and other things only once by pidm?
If so, maybe you should add ROW_NUMBER... PARTITON OF pidm in the query. What you have to do for the separate pidms, do it when ROW_NUMBER returns 1.
Tags: Database
Similar Questions
-
My win7 is not the driver for my epson stylus sx420w can I download one and where I can get it
My win7 is not the driver for my epson stylus sx420w can I download one and where I can get it
If the Epson support site isn't a win7 driver and he only appears not one avilable via the add printer on win7 Wizard is not a
-
Note: The settings for this page are automatically saved in the Web browser cookies.
I have a printer of C311a e-all-in-one HP Photosmart 7510. When you look at the section of customizing built-in browser page printers, at the bottom of the installation of the list can be found this message:
Note: The settings for this page are automatically saved in the Web browser cookies. If the Web browser cookies are deleted, these settings are lost.
I would like to the file name for this cookie and can then ensure that this cookie is excluded from cleaning in the various tools that I could use for basic maintenance. Thank you.
I suspect that you gave me perfectly fine information. However, given that this cookie file is not on my machine, determine why would come next.
In fact, given the costs associated with this effort, profit generated over the lost time and possible third party website access to this particular cookie. all dictate that I have overcome this effort - for now. I don't respect the time you have invested in answering my question, placing me in your debt in at least a couple of beers. I want to thank you for the information provided.
Mark
-
I need a driver, and the Toolbox for Canon i-sensys MF 4450 printer.
Original title: Canon i-SENSYS MF4450
I need a driver, and the Toolbox for Canon i-sensys MF 4450 printer. It was fine when I used windows xp in my old computer. But now when I bought a new one, who have Windows 8 (x 64), I don't know what to do. Please help me!
LFF
Have you tried to contact Canon for a compatible driver?
-
First pro needs a correction of the lens for GoPro cameras
Premiere Pro needs a correction of the lens for GoPro cameras
GoPro Studio 2 now has fish-eye correction.
-
Hello
I need to create locator in WMS and I use the inv_loc_wms_pub.create_locator API to create the loacator.
When I passed the value is slightest mistake out the index is not created.
I analyzed and concluded that the error is due to the P_CONCATENATED_SEGMENTS that I spent and the error is invalid segment.
I had the random value as 'ABC '. Please let me know is all wrong. SO well wanted me to know where I'm going to need to get the value for him.
IE segment1.segment2.segment3.
Concerning
PAKERYou can have a set of values assigned to inventory locator flexfield segments. And that's why the values of A, B or C may not be valid.
Find the value
Inventory > Setup > Flexfields > key > Segments > request request = inventory, title = Stock locators > go to segments
Enter the name of the set value and then go to
Inventory > Setup > Flexfields > Validation > games > ask the game and look at the validation
Then go to
Inventory > Setup > Flexfields > Validation > values > key Flexfield > Application inventory, Stock locators = title = > findMake sure that the values you pass are included here and also the same combination (for example, a.b.c) is not already set.
Hope this helps,
Sandeep Gandhi -
I asked before, but try to reformulate my question. In my opinion, it miss a driver I need or have bad installed. (of the re - install after a storm)
Charter, my I, said that there is a problem with my drivers or the Ethernet connection. I installed a new Ethernet connection-SMC1244TX. Still no connection. I called SMC customer support number - they me Charter connected - which gave me the number to the catwalk, who want to $99-149 to ask a question because it is not under warranty, because someone changed the Vista to Windows XP, I thought I found the download for the correct drivers, but when I put my flash drive on GT5432 - I was not able to get the files-now I can't locate the download again.
So what are the real drivers that I need on the GT 5432 operating Windows XP so you can connect to the internet?
I just skimmed the old thread. It's too long. I think you should have stayed there.
This has probably already been given to you in the old net but that's...
Go to http://www.smc.com/index.cfm?event=downloads.doSearchCriteria&localeCode=EN_USA&productCategory=9&modelNumber=1537&partNumber=0&downloadType=1&knowsPartNumber=false and download the driver. You will need your card, part number. He also says it's a SMC1244TX-1. Don't know if it's the same thing as what you have.I can offer help any more than that. If you need additional help, go to the old thread.
-
HP Pavilion Notebook - 15-p233: need help to reset the password for notebook 15 "pavilion
I need to reset the password for pavilion notebook 15 "15 p 233
could you please help
The error code generated after that 3 test is 687 47 264
Thanks for your help!
Enter: 77625860
Kind regards
DP - K
-
HP 15-f010dx: need help to find the drivers for Windows 7
Had to load Windows 7 on my laptop for work.
Could not find the drivers for the following items:
PCI device
SM Bus controllers
Ethernet controller
USB controller
Any help would be greatly appreciated.
Hello:
See if these drivers work:
SM Bus controller: Install this driver first and then restart.
FTP://ftp.HP.com/pub/SoftPaq/sp64001-64500/sp64380.exe
PCI device:
FTP://ftp.HP.com/pub/SoftPaq/sp64001-64500/sp64387.exe
Ethernet controller:
FTP://ftp.HP.com/pub/SoftPaq/sp64001-64500/sp64388.exe
USB controller:
-
Need help to activate the NAS for WRT610N
I got this router a long time. I now just trying to attach a hard drive to it. I got it works and can see the drive in Windows Explorer, but when I click to open and view the files it asks for a password. At first, that it seemed to pick up my router signon info. Tried that. No luck. Then another box pops up asking my password of PC. I don't have a password on my computer, so I did not enter a. He did not accept that no more.
Anyone know how I can access it? Is there a tutorial step by step on the activation of SIN? The user manual does not work for me.
Hi, SMaye. This is the prompt for you to access the shared drive. If you have forgotten the password for shared disk (admin), you don't see it, but you can change it via the interface of the router page. It's under storage > Administration > user management. Click on change and enter the new password twice. Click on change user and restart the router after. Tell me if it works.
Information. Share it. Learn the lessons.
-
Need advice to recover the password for WLC 4404
Hi all
I can't reset the password WLC 4404 from our site. I followed the steps in the document from cisco. Are there other ways by which I can reset the same.
Note: Can't console SSH, HTTPS and take the WLC.
Any help will be greatly appreciated...
Concerning
Raja
Here is the DOC...
1. once the controller starts, enter the password to the user restore.
Note: For security reasons, the text you enter does not appear on the console to the controller.
2. at the prompt enter user name, enter a new user name.
3. at the password prompt, enter a new password.
4. at the password prompt enter again, re - enter the new password.
The controller validates and stores your entries in the database.
5. when the user prompt is displayed again, enter your user name.
6. when the password appears, enter your new password.
The controller connects you with your new username and password.
Let me know if that answers your question...
Concerning
Surendra
Note the post was helpful.
-
I installed the version 11 of Pastel partner and the error message "separators from decimals/thaousand for number and currency formats are not the same" how to get this right?
Pastel partner support site through and their instructions/FAQ
-
Export FLV disappeared... need an alpha in the video for Flash channel
Hello, I just noticed that the ability to export video files in FLV format has been removed from the AF CC 2014 version. It's very destructive for our workflow that we need the "alpha channel" of the flv for use in Flash.
Is there a way to restore the flv export feature?
If you need to export an FLV file, then use the previous version of the application.
See this for an explanation of the change in FLV and F4V and workflow recommended:
export FLV and F4V removal characteristics of Adobe Media Encoder, After Effects and Premiere Pro
See this for an explanation of the change about H.264, MPEG-2 and WMV and for the workflow to recommend:
using Adobe Media Encoder to create videos WMV, H.264 and MPEG-2 for After Effects
-
need help to get the account for at least 11 months on my analysis
Hi all
I'm working on an analysis in which I need to get the number of children for a year where children must be at least 11 months in a given year. In my case in the database for each year, the number is 1 to 12. I don't know if there are atleast function or do I have to write an expression, if so please let me know where to write the expression is on the extent or the filter? I am totally new to the tool, and the version is OBIEE 11 g. Your help is greatly appreciated.
Thank you
RaviJust put a filter on the count > = 11
-
Noise from the device Bluetooth becomes intermittent after use is not the device for a few minutes
Qualcomm Atheros Communications - update the Bluetooth controller?
Hello
Check with the mother system/card manufacturer for on-board and/or real device
site of the manufacturer for updated drivers and troubleshooting steps.Check then both of these still newer driver versions.
Atheros - drivers
http://www.Atheros.cz/Qualcomm-Atheros - drivers
http://www.QCA.Qualcomm.com/resources/driverdownloads/I hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">->
Maybe you are looking for
-
How can I go back to the OLD version of Firefox? I've updated to the new version of last week and don't like it at all.
-
I find that in iTunes 'Restore backup' is disabled. (Under backups manually-> the backup and restore-> restore from backup). I supported my phone regularly. And there the last IOS. And his iphone 5. Any suggestions / recommendations. A stupid Outlook
-
On adding folder items to get the new name for the item?
I really have no idea what I'm doing but I'm trying to capitalize on the addition of items in folder / about items in folders to follow or not removing a specific directory exists but cannot for the life of find me a way. Basically I want it to look
-
Synchronize several 9191 chassis
Hello I have a project where I need to use four 9191 chassis Wi - Fi (each of them is containing a module 9239). Each of them will have the right distance between (20-30 m) How to synchronize acquisition on all four frame? Thank you
-
KB2604092, KB2656352, KB2656369, KB2686828 installed but continues to update
Install my computer guard telling me I have to install these updates, even if I was successful.