course of action

Hello

I did following steps

step 1

CREATE OR REPLACE TYPE  address_type as object
(
  ad1      varchar2(50),
  ad2      varchar2(50),
  ad3      varchar2(50),
  city      varchar2(20),
  pin      varchar2(10)
);

step 2

CREATE OR REPLACE TYPE  H_address is table of address_type;

step 3

 create or replace function address_details
 (
 brcode in NUMBER,
 prd in varchar2)
 return sys_refcursor
 is
 x_cursor   sys_refcursor;
 vquery varchar2(4000);
 begin
 vquery:='SELECT ADDR1,ADDR2,addr3,citycd,pincd from d010054 where lbrcode='||brcode||' and prdacctid='||prd ||' and addrtype=1';
 open x_cursor for
 vquery;
 return x_cursor;
 IF (x_cursor%NOTFOUND) THEN
       vquery:='select add1,add2,add3,citycd,pincode from d009011 where custno='||t_cust(brcode,prd);
    open x_cursor for vquery;
 END IF;
 return x_cursor;
 end address_details;

function is created without any errors

step 4

create or replace function address_pipe_function (i_cursor sys_refcursor)
   return h_address pipelined is
   vapxrec address_type:=address_type(null,null,null,null,null);
 begin
    loop
    fetch i_cursor into
    vapxrec.ad1,
    vapxrec.ad2,
    vapxrec.ad3,
    vapxrec.city,
    vapxrec.pin;
    exit when i_cursor%notfound;
    pipe row (vapxrec);
    end loop;
 close i_cursor;
 return;
 end;

feature created without error

then I tried the following

SQL > select * from

Table 2 (address_pipe_function (address_details (2, 'SB 000000000003055300000000')));

Table (address_pipe_function (address_details (2, 'SB 000000000003055300000000')))

*

ERROR on line 2:

ORA-00933: SQL not correctly completed command.

ORA-06512: at "RECORD. ADDRESS_DETAILS', line 11

I'm working on 11g

Please guide

HEMU wrote:

Mr President

It's for learning

In fact, I wrote a function average monthly report giving fromdate, parameters to date, once again, it returns a single delimited string

the problem is that I have to put the title of the column for the month are back through (fromdate, to date)

That's why I'm creating a type based on inputdata dynamically, then the pupulate values for dérirez

There may be a number of months from different years

so the heads of column will be 'JAN_2013', feb_2013 and so on

This forum will certainly helps me learn rather than copy the codes

Thank you

This is a misconception.

When you start to dynamically create queries with dynamic column names, you start to need to dynamic code to process the results of the query, because you can not write static code you know not the names of columns... resulting in any of your code more dynamic... that is impassable, unperformant, and may contain bugs which will be not detectable at compile time not to mention the possibility of introducing questions sql injection.

The only time you need to have column names from the data, is purposes, not for purposes of data processing.  Therefore, you must leave such column name up to reporting tools, which are specifically designed to query the data first, then layout of these data report and dynamically generate headings etc. as required.  Do not try and do it in SQL.

Read this: 101 PL/SQL: cursors and Projection of SQL

Tags: Database

Similar Questions

  • I bought a pc used with windows 7, however, the product key is not valid. I would like to get Windows 8. What would be my best course of action?

    I bought a pc used with windows 7, however, the product key is not valid. I would like to get Windows 8. What would be my best course of action?

    In my opinion your best course of action would be to buy and clean, install a license of system builders.

    You never know what comes with a pirate windows.
  • HDV - DVD - need help to determine my next course of action.

    I'm trying to change my project in HD... in CS4 on MacPro.

    In the end, I just burn a DVD using still or iDVD.

    What settings should I export to?

    I want to of course the highest quality before burning the DVD and there must be a file that can be burned to DVD.

    I'm not very well informed on all formats in the Menu export.

    Can someone give me the straight dope on the export of HD sequences that will be burned to DVD?

    Thanks guys, your support means a lot.

    Tutorial HD to SD w/CS4 http://bellunevideo.com/tutorials/CS4_HD2SD/CS4_HD2SD.html

  • Better plan of action if you suspect an infection?

    If I suspect that I have a virus on one of my computers, what all do you consider them be the best course of action to get rid of or to give my auto insurance that I don't have?

    I am running vista with an associated program provided by my ISP anti-virus F-Secure.  I ran Malwarebytes and the most recent Microsoft Malicious Software Removal Tool.  F - Secure, Malwarebytes and Microsoft Malicious Software Removal Tool all come with 0 infection.  If it was insurance enough for me that I don't have an infection or there at - it no more, I have to take?  I try to stay away from links/sites I have a safety question of and I use Mcafee Siteadvisor to check how they rate them as well as comments from the users.

    Thanks in advance.

    Hello

    Some of them you did however here are the methods that I use. Another tool that shows
    a promise is the demo version of Hitman Pro.

    No one program cannot be used to detect and remove any malware. Added that often easy to detect malware
    is often accompanied by a much more difficult to detect and remove the payload. So much better to be too full now
    than to pay a high price later. Check with them to an extreme exaggeration, and then run the cleaning only
    When you are sure that the system is clean.

    It can be made repeatedly in Mode safe - F8 tap that you start, however you must also run them
    the Windows when you can.

    Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone. (If Rootkits run UnHackMe)

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Malwarebytes - free
    http://www.Malwarebytes.org/products/malwarebytes_free

    Run the malware removal tool from Microsoft

    Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.

    You should get this tool and its updates via Windows updates - if necessary, you can download it here.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
    (Then run MRT as shown above.)

    Microsoft Malicious - 32-bit removal tool
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=en

    Microsoft Malicious removal tool - 64 bit
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=en

    --------------------------------------------------------

    Check with:

    Microsoft safety scanner
    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    ----------------------------------------------------------

    also install Prevx to be sure that it is all gone.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Prevx - Home - free - small, fast, exceptional CLOUD protection, working with others
    security programs. It is a single scanner, VERY EFFICIENT, if it finds something to come back
    here or use Google to see how to remove.
    http://www.prevx.com/   <-->
    http://info.prevx.com/downloadcsi.asp?prevx=Y  <-->

    Choice of PCmag editor - Prevx-
    http://www.PCMag.com/Article2/0, 2817,2346862,00.asp

    Try the demo version of Hitman Pro:

    Hitman Pro is a second scanner reviews, designed to save your computer from malicious software
    (viruses, Trojans, rootkits, etc.). who infected your computer despite safe
    what you have done (such as antivirus, firewall, etc.).
    http://www.SurfRight.nl/en/hitmanpro

    -----------------------------------

    If necessary here are some free online scanners to help the

    http://www.eset.com/onlinescan/

    ----------------------------------

    http://www.Kaspersky.com/virusscanner

    Other tests free online
    http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1

    --------------------------------------------------------

    Also do to the General corruption of cleaning and repair/replace damaged/missing system files.

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Run checkdisk - schedule it to run at the next startup, then apply OK then restart your way.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    -----------------------------------------------------------------------

    If we find Rootkits use this thread and other suggestions. (Run UnHackMe)

    http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/a8f665f0-C793-441A-a5b9-54b7e1e7a5a4/

    I hope this helps.

    Rob - bicycle - Mark Twain said it is good.

  • Object hidden in the project after Advanced action

    Scenario:

    I have a slide to preview Quiz set up that allows for the learner to choose to go back to some of the content to look again, or move forward for the quiz.  If they choose to return to the content, I won't have to retake the course (unless they want) so I created a form of "Take the Quiz" I use as button will bring back you to the quiz on any slide.  I placed on the first content slide and set it to display the rest of the way, but then made invisible to begin.

    What I've done so far:

    I have set up variables for each module and created a tip action that has defined the variable for each module to 1 it's over.  Each slide content performs an advanced action on enter to see if all module variables are set to 1.  If they are, the form of "Take the Quiz" appears.

    The problem:

    When the learner clicks to review the documents, the form of "Take the Quiz" don't appears on the initial slide, it was placed on, and not on any other blades.

    The only thing I can think of to get around this problem is to create a distinct "Take the Quiz" form for each slide and have action show them to all.  I would like to avoid that, as some of my courses have quite a few slides.

    Can someone suggest an another course of action for me?  I hope this is enough information, but if you need more, I will be happy to provide it.

    Thank you

    John

    When you set the point where the button shape "Rest of project", have you enabled the option "Always on top"?

  • conditional actions in Captivate 6

    I use the trial version of Captivate 6.  I just started using more complex advanced actions, so I don't know if its me or the software that does not work

    I have a class which forks.  The user chooses a course of action on slide 2, and they move in the course.  However, I need them to see all the path options until the course is completed, so on the last slide, he brings them to slide 2.  I want the possibility that the initial of the user selected grey outside, so they click on a new option.

    Here are 2 Slide.  The transparent blue circle should only when returning to the slide for the second time if the user has clicked this option before.  I even added the variable to the slide (just for me) to make sure that the variable changed from 0 to 1 when you click on it.  The part works.

    Capture.JPG

    Here is the part of the action. If the variable (real estate agent) = 1 show the smartshape (transparency on top) ELSE hide transparency.

    Capture.JPG

    Capture.JPG

    What I am doing wrong?  Thank you

    Ok.  How do you call this conditional Action?  You use the event drag YOU enter?

  • Update iOS 10.0.2

    Hello

    I have my Iphone 5 c running on Ios 9.3.5. As expected, he downloaded the new Ios.

    If I go into settings-> general-> update software, it says downloading 10 Ios (seems to me always the original version of ios 10).

    However if I connect the Iphone to my Imac via Itunes, Itunes offers me the opportunity to go directly to ios 10.0.2.

    I'm a bit confused: my Iphone has downloaded an older version of Ios (and if so why)?

    What is the best course of action (assuming I want to upgrade my phone): forget/remove the update downloaded on my Iphone and the upgrade directly to Ios 10.0.2 via itunes?

    Thank you

    Maurizio

    Hi there MaurizioS,

    Looks like you want to update your phone to the latest version of iOS, but see a discrepancy between what shows the parameters, and shows what iTunes. Without details, it is hard to say why we are witnessing this, but did you ever having installed iOS 10 beta? If Yes, then you can get up-to-date public final version with the section of the following article that is titled "download the latest version of iOS.

    Any software beta iOS

    If not, I would say that the best course of action would be to first backup your phone to iTunes:

    The backup of your iPhone, iPad and iPod touch

    And then go ahead and update the phone with iTunes via the guest. You should get all squared away. Thank you for using communities of Apple Support.

  • My 'friend' stole my phone! Looking for advice please...

    I lost my iPhone there are coming from about 4 weeks after my vacation.  I assumed that I had lost all the unpacking.  I went on icloud and tried to find my iphone, but it had extinguished.  Today, I got an email saying «sound was played on your iphone» "So I'll in icloud, find my iphone and the compass of boots, and there is the point and green on my friend house '". "  They renamed as their own phone, but all my contact information, phone numbers, pictures etc. are still there.   Funny it was, earlier, before I got this email, my friend actually asked me if I wanted to buy an iphone and showed me my own phone!  (didn't know that at the time it was my phone) Who needs enemies huh?  In any case, I just want my phone back, without being mean to my friend (who will then be an ex friend once I pick up my phone).  Do not call the police or something like that, don't want to let know them I know, don't want to erase phone or activate the lost mode.  Really confused what course of action to take. You'll feel so betrayed. I buy my own phone of this horrible person.  Can I change the password via icloud?  (yes they knew my password!).  Can I change the language of the phone and mess with them?  How they have enabled it anyway, I tried ringing but the call wouldn't happen, is that this means they put a new SIM card in, and my info stored in memory?  I tried Googling some of these issues, not vain, alas.  You'll feel so devoid of meaning.  Advice or answers very welcome...

    I suggest you to contact the local police and proceed from there. This isn't a 'friend', and I would put the unit lost Mode. They were willing to sell you the phone. How do have to go before you're ready to contact the police, or lock the phone?

  • iPhone 7 screen purge / uneven edge of the screen

    I noticed on a background of intermediate color as the backlight on my 32 GB iPhone Black 7 is uneven on the right side of the screen and I see dark spots 7 or 8, almost like a series of rectangles will light dark light dark. You don't see them on a white background or against black, but only against colors flat (a gray screen at 50% for example).

    ITI is particularly notable, if I pull the low notification Center or go to multitasking where the wallpaper becomes a pale blur.

    I tried to capture on camera as best as I can as shown on the attached photo (ignore the white line of thinking above).

    I don't know what is my best option, because stocks appear to be low, so I can't even order a new and send that back as the day 14 return policy runs out next Friday and another would not happen for 2-3 weeks. I can't imagine having enough stock to swap Apple stores either.

    I was wondering what think and what would be the best course of action.

    Given that I can't edit my original post, I would also like to add:

    These are dark spots certainly that the screen is uniformly bright above and below the area as apposed to bright spots that you wait with purge of 'normal' screen).

    Scroll the app facebook for example, you notice that it is when an image that goes to the edge of the screen and you saw a difference subtle when the image scrolls clear/dark areas.

  • Drive hard ext appears not

    Hi all

    I'm trying to solve a problem with a hard drive. Yesterday I plugged it into a computer and everything worked, I saved all my files, it ejected safely and put it in my bag back. Today, I went to work on other cases and it is plugged. It does not appear on the computer or disk utility. I tried on 3 different computers, as well as using another cord. I tried all the courses of action on other forums of Mac, but nothing has worked. The hard disk itself seems to work - the unit makes noise when it is plugged properly - but does not at all appear.

    Any help would be great. The drive cannot be cleaned because she important data on this subject.

    It does not appear on the computer or disk utility.

    The next thing to look at is if it seems about this mac >... > report... under SATA or USB.

    If this is not the case, this is often caused by the failure of the interface card, not the drive itself. Move the reader to an adapter or a different case, it can bring back to life.

  • Beware of the MacKeeper

    When installing MacKeeper, claiming to be "clean and protect your Mac" software he installed several pieces of adware and scareware which not only bore you and invites you to buy stuff you don't want or need but are possible phishing sites. I downloaded and installed under the impression that he was free. The announcement led me to download, he stated that he was free. I discovered that it was free to download, but cost money to use. I ran and concluded that he would do nothing unless you paid, I paid for one month of use ($19.95) and he ran. He said that he found and repaired somewhere about 12 000. Immediately I started to receive Web pages popping up trying to sell me software Reimage and foreclosed homes, etc. I ran MacKeeper again and it found and corrected a number of problems. Then, I decided to check it out and ran a battery of 10 times and each time he finds and repaired several different issues. How can issues arise only once to another when I didn't do anything else? I uninstalled MacKeeper and requested a refund. I immediately started to receive Web pages supposed to be Apple and similar to official pages on the Apple site informing me that I had three viruses and that the only course of action was to download MacKeeper (I saved bookmarks to these sites just in case I could find a place to report them to and when I try to go there, I get a warning that it is a suspected phishing site.) This happen several times per hour. In the meantime, I will continue to get windows trying to me but Reimage, foreclosed homes, MacKeeper or what have you. Sometimes, I'd get a vertical Ribbon about 2.5 "wide ALLERT saying me do nothing at all until I called Apple Support to the number they give me or asking me to chat online with Apple support representatives. Finally, I used EtreCheck to find the malicious files on my system and crossed the tedious task to find and remove them. However EtreCheck has provided me with the paths to them.

    All the apps 'cleaning' are scams. There are still worse examples as 'MacKeeper.

    Extract of effective defenses against software malware and other threats:

    • Never install a product that claims to 'clean up', 'speed', 'optimize', 'boost' or 'speed up' your Mac; to "wash", "tune" or to make it "brilliant". These allegations are absurd.
      • These products are marketed very aggressively. They are all scams.
      • They usually operate on the erroneous premise that Mac builds 'junk' that must be systematically 'cleaned' for optimum performance.
      • Trial versions of these programs are successful because they provide more instant gratification of free space on the disk.
      • This increased space is the result of irreversible destruction of files, programs or operating system components normally protected against accidental tampering or removal. The eventual result will be the reliable operation, poor performance and random crashes that may not become evident for months, or even years after their use, when updates of programs or OS X are finally released.
      • Memory "cleaners" that bypass the work of OS x memory management algorithms by purging the memory contents inactive for mass storage, which can only result in performance degradation and accelerated the hardware failure.
  • 10.11.6 updated, perpetual circle in the AppStore

    Hi guys - I'm stuck in a continuous loop, not sure of my best course of action.

    Go to the App Store to download the last update... click 'Refresh'... tab appears asking you to restart my computer now or later, I click on "Restart"... another tab appears, showing available updates have changed, I click on "View details" which disappears, nothing else changes and so I click on "update all"... guess what... documents to restart the computer tab , I select "Restart" tab informs you that the updates have changed and so forth and so around and around we go.

    I tried to restart... the good ol' turn it works... no change.

    I checked there is no incomplete download and it does not exist.

    I am running 10.11.5

    Instructions baby step would be useful, I'm a nervous novice with these things

    Thanks to you all

    Hello, MissAMG!

    Thank you for reaching out by communities of Apple Support about your update to OS X. After reading your post, I understand that you can start the download, but when it comes to reboot to install you're stuck in a loop. Restart manually the computer has not resolved the problem, and you're still on OS X 10.11.5, instead of the 10.11.6. I know stay up to date on your software is important, and I would be happy to help you!

    My first suggestion is to try to install the update in safe mode. The following article will give you more information about the safe mode is and how to access it.

    Try safe mode if your Mac does not end commissioning

    Even if the title of the article is not specific to the problem you are experiencing, it is always a good idea to try to install the update in safe mode. Start in safe mode introduces a series of system checks and also disables some software that may cause a conflict.

    If you are still unable to install the update in safe mode, try to install in a new user account. The article below the link will examine why try in a different user account can be useful and guide you in how to configure a new account.

    How to test a question in another account on your Mac.

    Have a great day!

  • Internal HD not mounted and not disk utility

    Hi Mac community.

    I have an early 2008 Mac Pro with 4 internal drive bays.  For now, they are all busy with special various backup and storage drives.  One of my backup / storage drives (not my boot drive) does not appear as "mounted" on the desktop.  It does not also appear in the disk utility.  System information shows 'Unknown' for 3 Bay where the reader resides.  The missing disk is used to save another internal drive that stores the image files almost exclusively and is not a boot disk.  The missing disk is about 3-4 years of age and is called only in service for a few minutes a day when Super Duper asks it to do his homework, who will quickly backup.  In addition, Super Duper is not able to find the drive to back up either.

    I think one way to obtain the missing disk health trouble would close, exchanging one of the other disks in its place, restart and see if the drive and the system information utility recognize another drive in the Bay (#3) in question.  This way I know if I have a dead drive or if there is some other hardware problem associated with this Bay.

    This sounds like a good approach?  Are there other means within the system to check the status of the missing disk, (not start)?

    Thank you!  Mike

    Yes, it's an excellent course of action.

  • Migration advice

    Hello, everyone.

    I'm going to migrate from Aperture to Photos and need a little advice to make it as painless as possible.

    I currently have a library referenced Aperture of about 190 GBs with the original stored on an external HARD drive files. This library will not fit on the SSD for my MBA. What will be the best course of action to be undertaken to obtain pictures in Photos and then transferred to iCloud.

    Based on what I've read that I can say Photos to open the Aperture library, and that's all I really need to do so that he can import and start downloading the originals in iCloud. I'm not sure everything is trying photo copy only 190 GB storage internal, or can she leave the original files where they are on the external HARD drive, and upload them to iCloud there?

    Any tips will be appreciated.

    TIA,

    Michael

    NO.

    1 - referenced pictures will not download to iCloud photo library - only managed photos

    2 - photos supports referenced libraries but very badly and they are strongly deprecated - lack of ability to use with ICPL is a minor reason

    3 - there is advice here - opening - and how many Photos handles content and metadata for iPhoto and Aperture - Apple Support

    4 - your best bet will probably be to use the library on the EHD as a managed library - you should probably it consolidate before migating

    LN

  • I had my hacked email. I deleted the email address on the SMTP server, but Thunderbird is not allowing me to remove the hacked e-mail address.

    I had my email "[email protected]" pirate. I deleted the email address on the ISP e-mail server and created a new email "[email protected]" - without the H immediately after John.
    Thunderbird, I added the new email address (see table).
    However, every time I try and send an email, Thunderbird ask again me the password to the original email.
    How to make the new e-mail, the primary e-mail address / default and delete old email marked in bold on the seal - which I suppose is the right course of action?

    Concerning

    John Halsted

    Enter the account settings.

    Select the new address to be the default.
    All at the bottom of the list of accounts in the left side is account Actions.
    Under this menu is to set as default.

    FYI: The display of your e-mail is that a public forum is the best way to provider of this info to hackers. I edit this info and refrain from publishing personal information in the future.

Maybe you are looking for