Little problem.............two days trying to find the error

hey people, I am trying to get two values of two different tables, at put it in one that link both of them, I already have it working, but I am trying to make it simpler and smaller.
create or replace procedure baba
var_a number,
var_b varchar2
AS
BEGIN
insert into bebe ( c, d)
select (c, d from table_c, table_d where table_c.a = var_a and table_d.b = var_b);
END;
I am trying to make two select within one and the insert the value directly to the third table. three days on this.
When I compile it gives me the error that misses one bracket, weird.
Thanks.

Welcome to OTN. ;)
Always mention your DB version.
Now, regarding your question - why do you need to implement this using Procedure when a single DML will suffice?
Always, ask yourself about whether you should implement it using SQL or PL/SQL.
In general, try to achieve using SQL. If you can't then only go for PL/SQL.
Now,
create or replace procedure baba
var_a number,
var_b varchar2
AS
BEGIN
insert into bebe ( c, d)
select c, d
from table_c, table_d
where table_c.a = var_a
and table_d.b = var_b;
END;So, those braces i've removed.
It should work.
N.B.: Not Tested...
Regards.
Satyaki De.
Added: Also you need to use join condition between the two table - otherwise it will produce curtesian product. ;)
Edited by: Satyaki_De on Feb 20, 2010 10:54 PM

Similar Messages

  • My phone was not worked for last two days  it happen after the instalation of new os,this is happen one of my friiends also plssssss find some solution

    my phone was  not worked for last two days  it happen after the instalation of new os,this is happen one of my friiends also plssssss find some solution

    We are all just phone users here, and no-one can hope to provide any advice with so little information to go on as to what exactly has happened.  You need to provide some detail.

  • Hi there, i'm trying to change a PDF document written in arabic to Word document, the problem is (( i can't find the arabic language in adobe )) the question is how to install the arabic language

    hi there, i'm trying to change a PDF document written in arabic to Word document, the problem is (( i can't find the arabic language in adobe )) the question is how to install the arabic language

    <moved from Downloading, Installing, Setting Up to Creating, Editing & Exporting PDFs>

  • I lost an xcel doc. Tried to find the Library folder in Users not there when use Finder. But when trying to upload a photo, iphoto found the library folder I can see my doc in Office 2011 Autorecov, but can't access it! How do I get User to show Library

    I lost an xcel doc a couple of days ago. Tried to find the Library folder in Users but not there when I use Finder (even when I do shift-command-G). But when trying to upload a photo in iphoto I found the library folder in Users. I can see my doc in Office 2011 Autorecovery, but can't access it! How do I get User to show Library then I can get to my long lost document?

    The auto recovery dat should be in the Microsoft User Data folder in your documents folder, not in the Library. However, I Haven't had to look recently.

  • My dad bought an ipad 2 of my uncle for cheap since its a little broken but i tried to earse the ipad so all the password and thing from my uncle go away but i was stuck on the activation when i need an email and password but my uncle cant remember it

    My dad bought an ipad 2 of my uncle for cheap since its a little broken but i tried to earse the ipad so all the password and thing from my uncle go away but i was stuck on the activation when i need an email and password but my uncle cant remember it because he has medical problems and he does not remember the email since he has alot of emails he thinks he remembers the password since he always keep the same password. So does anyone know what i can do because the ipad is locked and my parents are like very mad at me xD

    http://support.apple.com/kb/PH13695
    Activation Lock cannot be bypassed, you will have to recover the email and password used to activate it.

  • All my photos in the iphoto have disappeared, not sure if this related to any iphoto upgrade or other issue, tried to find the photos through the finder (JPG or photo) but failed, can you help me to get back my photos please?

    All my photos in the iphoto have disappeared, not sure if this related to any iphoto upgrade or other issue, tried to find the photos through the finder (JPG or photo) but failed, can you help me to get back my photos please?

    Help us to help you: There are 9 different versions of iPhoto and they run on seven different versions of the Operating System. The tricks and tips for dealing with issues vary from version to version and OS to OS. So before anyone can help, they need information to work with. Basic stuff:
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. What were you doing when the problem arose?
    - Did it ever work properly?
    - Are there error messages?
    - What steps have you tried already to solve the issue.
    Anything else you can think of that might allow someone else to understand your issue.
    With this kind of information somebody can develop a starting point for troubleshooting the issue.
    Posts that consist of "iPhoto doesn't work. Help" or "iPhoto won't print" or "Suddenly I have no photos!!!!!!!!!!" mean that any helper is simply guessing. More information means you get better assistance. (And no, more exclamation marks do not get help faster or make your issue seem urgent. They just make it seem like you have a stuck key )

  • Server crashed trying to find the cause

    I'm trying to find the cause of our server crashing. It creates a memory.dmp file. I used a tool to look at it and the below is the output. But I can't find the cause in here can anyone else read these?
    Microsoft (R) Windows Debugger Version 6.3.9600.16384 AMD64
    Copyright (c) Microsoft Corporation. All rights reserved.
    Loading Dump File [C:\User Data\MEMORY.DMP]
    Kernel Bitmap Dump File: Only kernel address space is available
    ************* Symbol Path validation summary **************
    Response                         Time (ms)     Location
    Deferred                                       SRV*C:\Windows\symbol_cache*http://msdl.microsoft.com/download/symbols
    Symbol search path is: SRV*C:\Windows\symbol_cache*http://msdl.microsoft.com/download/symbols
    Executable search path is: 
    Windows 8 Kernel Version 9600 MP (2 procs) Free x64
    Product: Server, suite: TerminalServer SingleUserTS
    Built by: 9600.17041.amd64fre.winblue_gdr.140305-1710
    Machine Name:
    Kernel base = 0xfffff803`23272000 PsLoadedModuleList = 0xfffff803`2353c2d0
    Debug session time: Thu Dec 18 13:05:51.341 2014 (UTC - 6:00)
    System Uptime: 22 days 5:21:12.521
    Loading Kernel Symbols
    ..........................................Page 1219dd not present in the dump file. Type ".hh dbgerr004" for details
    Loading User Symbols
    Loading unloaded module list
    *                        Bugcheck Analysis                                    *
    Use !analyze -v to get detailed debugging information.
    BugCheck EF, {ffffe001e3a74080, 0, 0, 0}
    Page 1219dd not present in the dump file. Type ".hh dbgerr004" for details
    Probably caused by : wininit.exe
    Followup: MachineOwner
    0: kd> !analyze -v
    *                        Bugcheck Analysis                                    *
    CRITICAL_PROCESS_DIED (ef)
            A critical system process died
    Arguments:
    Arg1: ffffe001e3a74080, Process object or thread object
    Arg2: 0000000000000000, If this is 0, a process died. If this is 1, a thread died.
    Arg3: 0000000000000000
    Arg4: 0000000000000000
    Debugging Details:
    Page 1219dd not present in the dump file. Type ".hh dbgerr004" for details
    PROCESS_OBJECT: ffffe001e3a74080
    IMAGE_NAME:  wininit.exe
    DEBUG_FLR_IMAGE_TIMESTAMP:  0
    MODULE_NAME: wininit
    FAULTING_MODULE: 0000000000000000 
    PROCESS_NAME:  WmiPrvSE.exe
    BUGCHECK_STR:  0xEF_WmiPrvSE.exe
    DEFAULT_BUCKET_ID:  WIN8_DRIVER_FAULT
    CURRENT_IRQL:  0
    ANALYSIS_VERSION: 6.3.9600.16384 (debuggers(dbg).130821-1623) amd64fre
    LAST_CONTROL_TRANSFER:  from fffff80323881dbc to fffff803233c5fa0
    STACK_TEXT:  
    ffffd000`3ca7fae8 fffff803`23881dbc : 00000000`000000ef ffffe001`e3a74080 00000000`00000000 00000000`00000000 : nt!KeBugCheckEx
    ffffd000`3ca7faf0 fffff803`237a42ae : ffffe001`e3a74080 00000000`00000000 00000000`00000000 00000000`00000000 : nt!PspCatchCriticalBreak+0xa4
    ffffd000`3ca7fb30 fffff803`236010e9 : ffffe001`e3a74080 ffffe001`ef20a900 ffffe001`e3a74080 ffffe001`e3a74080 : nt! ?? ::NNGAKEGL::`string'+0x7bce
    ffffd000`3ca7fb90 fffff803`23600e76 : ffffffff`ffffffff ffffe001`ef20a900 ffffe001`e3a74080 ffffe001`efc3c080 : nt!PspTerminateProcess+0xe5
    ffffd000`3ca7fbd0 fffff803`233d17b3 : ffffe001`e3a74080 ffffe001`efc3c080 ffffd000`3ca7fcc0 00000001`00c3a7d0 : nt!NtTerminateProcess+0x9e
    ffffd000`3ca7fc40 00007ffd`5629ae4a : 00007ffd`5388c1f9 00000000`00000000 00000001`00000000 00000000`00000444 : nt!KiSystemServiceCopyEnd+0x13
    00000001`00ded7d8 00007ffd`5388c1f9 : 00000000`00000000 00000001`00000000 00000000`00000444 00000000`00000000 : ntdll!NtTerminateProcess+0xa
    00000001`00ded7e0 00007ffd`4e886ae2 : 00000000`00000000 00007ffd`4e83ffd8 00000001`00ded890 00000000`00000444 : KERNELBASE!TerminateProcess+0x25
    00000001`00ded810 00007ffd`4e88282c : 00000000`00000003 00000001`00c3a260 00000001`0000019c 00000001`00c045a0 : cimwin32!Process::ExecTerminate+0x12e
    00000001`00ded880 00007ffd`502b76f2 : 00000001`00c3a650 00000000`00000000 00007ffd`4e9b8930 00000001`01e210f0 : cimwin32!CSecureKernelObj::AllAccessMask+0x110be
    00000001`00ded8c0 00007ffd`502b7456 : 00000001`00c3a650 00000000`00000000 00000000`00000000 00000001`00c3a7d0 : framedynos!Provider::ExecMethod+0x9a
    00000001`00ded940 00007ff7`66c7a1c7 : 00000001`01e3bdf0 00000001`00118630 00000001`00118620 00000001`01e7d3e0 : framedynos!CWbemProviderGlue::ExecMethodAsync+0x3ca
    00000001`00dedf50 00007ff7`66c79e24 : 00000000`00000000 00000000`00000000 00000001`00dee091 00000000`00000000 : wmiprvse!CInterceptor_IWbemSyncProvider::Helper_ExecMethodAsync+0x2f7
    00000001`00dee010 00007ffd`55cf2385 : 00000001`00000000 00000001`01d34828 00000001`01e51468 00000000`00000000 : wmiprvse!CInterceptor_IWbemSyncProvider::ExecMethodAsync+0x134
    00000001`00dee0e0 00007ffd`55cfae16 : 00000001`00dee590 00007ffd`49ef1a42 00000001`00143768 00000001`0017f9b0 : RPCRT4!Invoke+0x65
    00000001`00dee160 00007ffd`54084bd2 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : RPCRT4!NdrStubCall2+0x38b
    00000001`00dee7e0 00007ffd`54080f13 : 00000000`00000001 00000001`0013f120 00000000`00000000 00007ffd`54083eb1 : combase!CStdStubBuffer_Invoke+0x99 [d:\blue_gdr\com\combase\ndr\ndrole\stub.cxx @ 1582]
    00000001`00dee810 00007ffd`53f13efc : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : combase!SyncStubInvoke+0x300 [d:\blue_gdr\com\combase\dcomrem\channelb.cxx @ 1664]
    00000001`00dee9b0 00007ffd`540811ed : 00000000`00000000 00000000`00000000 000083ad`95b58220 00000000`00000000 : combase!CCtxComChnl::ContextInvoke+0x27c [d:\blue_gdr\com\combase\dcomrem\ctxchnl.cxx @ 1377]
    00000001`00deebc0 00007ffd`5408096b : 00000001`0013f120 00007ffd`53fb3fd8 00000001`00def130 00007ffd`54080791 : combase!AppInvoke+0x18d [d:\blue_gdr\com\combase\dcomrem\channelb.cxx @ 1481]
    00000001`00deecf0 00007ffd`5408182a : 00000000`00000000 00000000`00070005 00000001`00124220 00000000`00000000 : combase!ComInvokeWithLockAndIPID+0x661 [d:\blue_gdr\com\combase\dcomrem\channelb.cxx @ 2314]
    00000001`00deef30 00007ffd`55cf2614 : 00000000`00000000 00000000`00000000 00007ffd`53fb3460 00000001`015edb20 : combase!ThreadInvoke+0x488 [d:\blue_gdr\com\combase\dcomrem\channelb.cxx @ 5488]
    00000001`00def000 00007ffd`55cf2517 : 00000002`00000002 00000fb0`00001000 00000001`00def1b8 00000000`8b0c1a26 : RPCRT4!DispatchToStubInCNoAvrf+0x14
    00000001`00def050 00007ffd`55d06ebf : 00000001`00142fb0 00000000`00000000 00000001`00000000 00000001`001318a0 : RPCRT4!RPC_INTERFACE::DispatchToStubWorker+0x177
    00000001`00def150 00007ffd`55cf2cc1 : 00000000`8b0c1a26 00000001`001318a0 00000000`00000000 00000001`001318a0 : RPCRT4!LRPC_SCALL::DispatchRequest+0x531
    00000001`00def250 00007ffd`55cf2a97 : 0000159d`00000000 00000000`00000001 00000001`00000000 00000000`00000000 : RPCRT4!LRPC_SCALL::HandleRequest+0x201
    00000001`00def300 00007ffd`55cf1d04 : 00000001`00120c80 00000000`00000002 00007ffd`55d49b24 00000000`00000000 : RPCRT4!LRPC_SASSOCIATION::HandleRequest+0x237
    00000001`00def390 00007ffd`55cf1afe : 00000001`00def758 00000000`00000000 ffffffff`ffffffff 00007ffd`55d49b24 : RPCRT4!LRPC_ADDRESS::ProcessIO+0x36d
    00000001`00def4d0 00007ffd`5622af76 : 00000000`00000001 00000000`00000000 00000000`7ffe03b0 00000001`00def588 : RPCRT4!LrpcIoComplete+0xae
    00000001`00def570 00007ffd`562291e3 : 00000000`00000000 00000000`00000000 00000000`00000000 00000001`001eeb80 : ntdll!TppAlpcpExecuteCallback+0x1d6
    00000001`00def5e0 00007ffd`559716ad : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!TppWorkerThread+0x3b3
    00000001`00def9d0 00007ffd`56274629 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : KERNEL32!BaseThreadInitThunk+0xd
    00000001`00defa00 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x1d
    STACK_COMMAND:  kb
    FOLLOWUP_NAME:  MachineOwner
    IMAGE_VERSION:  
    FAILURE_BUCKET_ID:  0xEF_WmiPrvSE.exe_IMAGE_wininit.exe
    BUCKET_ID:  0xEF_WmiPrvSE.exe_IMAGE_wininit.exe
    ANALYSIS_SOURCE:  KM
    FAILURE_ID_HASH_STRING:  km:0xef_wmiprvse.exe_image_wininit.exe
    FAILURE_ID_HASH:  {dd961e7f-9fb2-75de-5c19-5602ba5ccdd2}
    Followup: MachineOwner
    Jason

    Hi Jason,
    Do you install Exchange 2013 on your server? If so, the issue could be due to an Exchange Service process terminated WININIT.EXE. You could refer to the article below to resolve the issue:
    Exchange Server 2013 restarts frequently after Cumulative Update 2 is installed
    http://support.microsoft.com/kb/2883203
    If the issue still exists, it is not effective for us to debug the crash dump file here in the forum. Therefore, I would like to suggest that you contact Microsoft Customer Service and Support (CSS) via telephone so that a dedicated Support Professional can
    assist with your request.
    To obtain the phone numbers for specific technology request please take a look at the web site listed below:
    http://support.microsoft.com/default.aspx?scid=fh;EN-US;OfferProPhone#faq607
    Best Regards,
    Mandy 
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Book Module---I have spent 3 days trying to edit the book I am in the process of making. None of the changes are ever saved even after I go to the Preview area and create book. IHow do I save the changes in my editing ?

    I have been trying to edit my Book and have worked three days trying to save the edits. Every time I leave the LR Program, and return to it, my edits are unchanged. The Adobe instructions say to Save the Book by clicking on the Preview, then Create Book dialog box, then name the Book, and click Create. Every time I do this I have a new name in the left panel with nothing in it for photos. I am frustrated...please help. I am sure I am doing something stupid.

    I am having the EXACT same problem and am so frustrated I am about to go to one of the web services to create my book!!!  Help!!!

  • I am having Macbook Pro, I have recently tried updating my operating system to OS Yosemite, but after that its giving problem in connecting to Wifi. The error is "Connection Time out Occurred". Its getting connected by Ethernet cable.

    I am having Macbook Pro, I have recently tried updating my operating system to OS Yosemite, but after that its giving problem in connecting to Wifi. The error is "Connection Time out Occurred". Its getting connected by Ethernet cable.

    Take each of the following steps that you haven't already tried, until the problem is resolved. Some of these steps are only possible if you have control over the wireless router.
    Step 1
    Turn Wi-Fi off and back on.
    Step 2
    Restart the router and the computer. Many problems are solved that way.
    Step 3
    Change the name of the wireless network, if applicable, to eliminate any characters other than letters and digits. You do that on your router via its web page, if it's not an Apple device, or via AirPort Utility, if it is an Apple device.
    Step 4
    Run the Network Diagnostics assistant.
    Step 5
    In OS X 10.8.4 or later, run Wireless Diagnostics and fix the issues listed in the Summary, if any.
    Step 6
    Back up all data before proceeding.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    Enter the name of your wireless network in the search box. You should have one or more "AirPort network password" items with that name. Make a note of the name and password, then delete all the items. Quit Keychain Access. Turn Wi-Fi off and then back on. Reconnect to the network.
    Step 7
    You may need to change other settings on the router. See the guidelines linked below:
    Recommended settings for Wi-Fi routers and access points
    Potential sources of interference
    Step 8
    Make a note of all your settings for Wi-Fi in the Network preference pane, then delete the connection from the connection list and recreate it with the same settings. You do this by clicking the plus-sign icon below the connection list, and selecting Wi-Fi as the interface in the sheet that opens. Select Join other network from the Network Name menu, then select your network. Enter the password when prompted and save it in the keychain.
    Step 9
    Reset the System Management Controller (SMC).

  • Attempting to save a bookmark, i get "a problem occured while trying to save the bookmark. Please try again later". ???

    When I try to save any page to my yahoo bookmarks, I get a blue box and at the top it says, "A problem occured while trying to save the bookmark. Please try again later. All of my bookmarks are there but I can't add any more. I reloaded the toolbar, but still the same...thanks...

    To help other users find solutions, please return to this Thread and '''Sign-in''' to the forum with your Username and Password:
    click on '''"Solved It"''' Next to the reply ABOVE that '''BEST''' solved your Question
    '''DO NOT click "Solved It" next to this reply

  • I'm actually trying to find the date i visited a site. adding columns allow the order to be sorted but not show a date. Please tell me it there's a way to see t

    I'm actually trying to find the date i visited a site. adding columns allow the order to be sorted but not show a date. Please tell me it there's a way to see the date. the sidebar no longer has the option for date. the most recent only shows the time.

    If you only see the time then that would mean that you see an entry of the current day (today).
    History items from past days should have the date as well in the Most Recent Visit column.
    You should be able to see this changing if you open the last 7 days folder and scroll down.

  • I live in Australia but when I upgraded to IOS6 it changed my App Store region to the US. How can I change it back? I have been trying to find the answer.

    I live in Australia but when I upgraded to IOS6 it changed my App Store region to the US. How can I change it back? I have been trying to find the answer.

    Contact iTunes support & request they clear the balance:
    http://www.apple.com/support/itunes/

  • I'm trying to find the download for Adobe Creative Suite that I bought.

    I'm trying to find the download for Adobe Creative Suite that I bought.
    I have it in my order history with the serial clearly displayed, but no download button and it can't be found on the adobe site. I know it's old, but I don't care. I paid for it and I want to use it.

    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7 win | 8 mac | 7 mac
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7 win | 8 mac | 7 mac
    Lightroom:  5.7| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • Trying to find the number of rows in a ResultSet

    I am trying to find the number of rows in a ResultSet, using the following code:
    rs = st.executeQuery(query);
    rs.last(); // to move the cursor to the last row
    System.out.println(rs.getRow());
    However, I am getting this error:
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Unsupported method: ResultSet.last
    Whats going wrong??

    praveen_potru wrote:
    You might have not used scrollable result set..
    Try like this:
    stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);rs = stmt.executeQuery(sqlString);
    // Point to the last row in resultset.
    rs.last();
    // Get the row position which is also the number of rows in the ResultSet.
    int rowcount = rs.getRow();
    System.out.println("Total rows for the query: "+rowcount);
    cheersAnd I hope the OP would read it because the thread is a year old.

  • I'm trying to find the plugin for camera raw, but all I can find is the page with the cameras that are supported. But I don't find how to find and install the actual plugin. The end name is ARW

    I'm trying to find the plugin for camera raw, but all I can find is the page with the cameras that are supported. But I don't find how to find and install the actual plugin. The end name is ARW, and all I need is to find WHERE I can download it. Thanks.

    cr is installed by updating your app.  use help>update, or update manually
    pre cc updates:  http://www.adobe.com/downloads/updates/
    cc updates:  http://prodesigntools.com/adobe-cc-updates-direct-links-windows.html
    cc 2104 updates:  http://prodesigntools.com/adobe-cc-2014-updates-links-windows.html

Maybe you are looking for