Which one is the right answer?

SELECT LPAD(salary,10,*)
FROM EMP
WHERE EMP_ID = 101;
Thanks everybody for your reply. well without '*' its always going to be an error...should've seen it earlier. Sorry for wasting your time. I am still trying to learn pl/sql and found this sample question somewhere on the net.
I have a new question:
Can we delete a row from a table if the table is referenced by a foreign key in another table but the second table doesn't hold any relevant data for that row?
Thanks for your time.

I know that trying these things by oneself is really, really difficult. It is much easier to ask on the forums or on the internet.
So I will provide you with a console session.
SQL> connect test/test
Connected.
SQL> create table emp ( emp_id number, salary number);
Table created.
SQL> insert into emp values (101, 17000);
1 row created.
SQL> commit;
Commit complete.
SQL> SELECT LPAD(salary,10,*)
   2  FROM EMP
   3  WHERE EMP_ID = 101;
SELECT LPAD(salary,10,*)
ERROR at line 1:
ORA-00936: missing expression
SQL> 1
  1* SELECT LPAD(salary,10,*)
SQL> c/*/'*'/
  1* SELECT LPAD(salary,10,'*')
SQL> l
  1  SELECT LPAD(salary,10,'*')
  2  FROM EMP
  3* WHERE EMP_ID = 101
SQL> /
LPAD(SALARY,10,'*')
*****17000Based on the above, you need to make up your own mind as to the correct answer.

Similar Messages

  • Lost my iphone dont know my IMEI number tried to get it from ituens about and clicking the Control key but there is one imei and i have 2 phones backed up on my ituens is there a way to know which one is the right one?

    Lost my iphone dont know my IMEI number tried to get it from itunesby clicking about and the Control key but there is one imei and i have 2 phones backed up on my itunes is there a way to know which one is the right one? and is there another way to find my phone and its offline so i cant use find my phone! Help

    Other ways? Check the box? Call your carrier?

  • Lost one cd, Apple has sent me 5!! which one is the right one?

    Hello everybody!
    this is my first post on this forum,but i'm a long time lurker..
    I am having troubles re-installing Leopard on my macbook:
    when I've bought it, I ve received the 2 grey disks to install OsX, but it was the old operating system, so Apple has sent me for free a cd with the upgrade to Leopard.
    Unfortunately,I ve lost that upgrade cd, so I went to the apple store to re-order it, and I ve recently received an envelope with 5 cd, all marked just with a serial number, so I don't know which one is the Upgrade disk..
    I ve managed to recognise the 2 copies of the "grey cds" from the S.number, then I went again to the apple store, where they pointed one cd and said: just use this one..
    I ve tried this morning, and that is a installation disc number 2, so NOT an upgrade to Leopard.
    Has anyone any idea of how I could recognize that upgrade cd?
    the 3 serial numbers are:
    2Z691-6023-A
    2Z691-6040-A
    2Z691-5993-A
    and my 2 grey cds are:
    2Z691-6089-A
    2Z691-6113-A
    Thank you in advance for help!!
    Stefano

    I would strongly suggest you go the apple store and have them explain to you what exactly is on every DVD they sent you. those serial number won't tell anything to any of us here.
    but in general, a leopard install disk is very easy to spot if you open it in finder. there will be an icon with a leopard logo which looks like this
    !http://img216.imageshack.us/img216/5378/leopardlogo.jpg!
    and caption "install os x".

  • Which one is the Right Approach - Re Using Page Layouts or adding Web parts directly to pages instead of page layouts in SP 2013 online site ?

    Hi Team,
    I am SharePoint 2013 developer. Before asking question I would like to explain the requirement in clarity.
    We are developing one O365 SharePoint online site which is having 10 different page layouts with different and some common webparts and we are reusing these page layouts by deploying a sandboxed solution which is having page layouts. These page layouts contain
    filter and query to display data using some condition and predefined values. By using these layouts we have to create 100+ pages. All pages will show data according to that page name and category (if it belongs any). We have not written any code to develop
    the site, everything is OOB feature.
    We have used below feature/list/lib of SP Online 2013:
    - Document Library
    - Survey
    - Calendar
    - Lists
    - Discussion forum library
    - OOB Search feature
    Now, I would like to know whether this is the right approach to reuse the page layouts. Or can we add webparts directly where the logic resides in the webparts and add them to the pages instead of page layouts?
    Also how to deploy page layouts/pages from one server to another? Currently we are deploying everything as a feature using sandbox solution. 
    Could you please let me know the right approach to follow. I am asking this question because we are facing below issues:
    - Sometime page layouts gets corrupted, showing nothing.
    - All written filters/logic disappear when we open layouts in Designer
    - Deployment is pain using Sandbox solution
    Waiting for your reply.
    Thanks in Advance,
    Shifa Mittal

    Interesting question, to which i do not know a definitive answer.
    Output Caching is used to increase performance and to reduce load on the box. However since you're in the MS Cloud you don't need to worry about the latter and MS do the worrying about the former. I wouldn't be surprised if MS have updated the behaviour
    for O365 and not updated the documentation. That first office.com article is using 2010 screenshots which doesn't fill me with confidence about it's continuing relevance. Don't forget that SharePoint 2013 and O365 are technically different versions and have
    very different behaviour in places.
    Generally i'd say not to worry, but in this case if you do find any more information i'd love to see it.

  • Inbox vs. Gmail 5.0: Which one is the right fit for you?

                                        Inbox vs. Gmail 5.0: Which one is right for you? | PCWorld

    I would strongly suggest you go the apple store and have them explain to you what exactly is on every DVD they sent you. those serial number won't tell anything to any of us here.
    but in general, a leopard install disk is very easy to spot if you open it in finder. there will be an icon with a leopard logo which looks like this
    !http://img216.imageshack.us/img216/5378/leopardlogo.jpg!
    and caption "install os x".

  • Which one is the right one?

    http://www.amdcompare.com/us-en/desktop/details.aspx?opn=ADV4400DAA6CD
    since cpu temperature is important in cpu o/c (dooh), i dont know which one is important the cpu temp or cpu core temp?
    lets take the example from amd: 49-71c? what does it mean? is 49 the max or 71 is the max? is that the max for cpu or cpu core?
    im asking this because my cpu and core temps are different with 10C. so at full load my cores go up to 48C, but my cpu temps stays max at 36C.......i would to know i still have room for o/c, cuz my core temp a bit high, but if its the cpu temp that matters then im blasting it. those temps are from 2.6ghz 1.4 vcore 100% stable o/c.
    thanx

    Quote from: Svenomous on 13-November-06, 08:17:10
    Mine runs hotter on one core too, same for many other people as well, I'm pretty sure it's normal and has nothing to do with the paste application. I don't get the 49-71c thing either 22c max range?, but I prefer to play it safe with a very expensive chip and not let the "core" reading get too high.
    i dont quite understand what youmean by 22C, is that your temps?
    btw. tigerdirect screwed up. uctually its purolator. let me tell the story. my friend chose a system for his car pc and ordered it from tigerdirect, but the guy from purolator left the package at his front door with no siggy. so my friend called up tiger and acted like he didnt recieve nothing, so tiger asked puro for a siggy and there was none, so they sent another 4400+ and a biostar tforce. so ended up with 2 of each. i helped him build his car pc and he sold the brand new 4400+ for 70 bucks.
    so i dont really care if it fries, i dont want it to but if it happens it not a big deal. but it wouldve been if i paid the 300$ + for it so i do get your point.

  • T430 screen. Which one is the right one ?

    Hi there, 
    My laptop is a lenovo T430 Type 2349-JV2
    I need to replace the screen.
    I had a look on the website and found this list:
    http://download.lenovo.com/parts/ThinkPad/t430_t430i_fru_bom_20130410.pdf
    I saw that there is some 14HD+ screen
    04W3329 N LGD 14.0"HD A
    04W3330 N CMI 14.0"HD A
    04W3331 N LGD 14.0"HD+ A
    04W3651 N AUO 14.0"HD A
    04W3707 N SEC 14.0"HD A
    93P5685 N SEC 14.0" HD+
    93P5693 N AUO 14.0" HD+
    I need help, please which of these would be better for my computer.
    Thanks for reading.

    Hi Dongus,
    Welcome to Lenovo Community!
    As per your query we understood that you are looking LCD panel for ThinkPad T430.
    As per the parts list which you have provided in that you can go for 04W3331 - LGD 14.0"HD+ A which is suitable for your system.
    Hope this helps.
    Best regards,
    Hemanth Kumar
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • T60 lost power adapter - which one is the right one?

    Hello folks,
    I lost the power adapter to my lenovo t60.
    How do I find out, which Voltage i need
    for this special model of lenovo?
    On the back is written:
    ID: 1951VBM
    Thanks a lot
    Solved!
    Go to Solution.

    You'll need a 90W adapter. See an example here: click me!
    /L40SX/240/240X/2*340CSE/360PE/365XD/380D/380E/380XD/380Z/390/560E/560X/2*570/2*600/600E/750Cs/755C/760CD/760EL/760XD/770E/A20p/A22p
    A31/i1600/G40/R50p/R61i/S30/SL510/2*T22/4*T4x/11*T6x/6*T4x0x/6*T5x0/3*W5x0/W700/3*X2x/4*X3x/3*X4x/5*X6x/3*X6xT/10*X2xx/2*X200T/4*X30x/Z60m/3*Z61x
    Comunidad en Español  English Community  Deutsche Community   Русскоязычное Сообщество

  • How can i find out which Macbook is the right one for me?

    I am looking into buying anew laptop and I'm currently considering a macbook as oppose to a windows laptop. which one is the right one for me?
    1. I will be using it for my work at college and university so it will need to have a reasonable amount of storage and have the correct programs.
    2. I use the internet alot.
    3. I have an ipod touch so i will need storage for my music.
    4. It will need it to be quite quick.
    5. It will need to support some software that i use on windows.
    Also, do you think a macbook is what i need as oppose to windows. what are the pros and cons of the macbook

    Prongs wrote:
    1. I will be using it for my work at college and university so it will need to have a reasonable amount of storage and have the correct programs.
    This is the most important question. I would check with your school. They may have a recommendation for what you need and the software you will need to use. They also may have a discount program for you to purchase your computer. If not Apple does have an education discount plan to give you a break.
    5. it will need to support some software that I use on windows.
    Hard to give an answer for this as we have no idea what your going to be using or what your school requires you to use. My sons college had specific programs he had to have.

  • Which one is the best practice!!

    hi all,
    i have one doubt with the lov
    can we show the data in the LOV by decode function or its better to write two LOV's based on the condition.
    which one is the best practice.
    right now i am using decode function. according to the condition the data will come in the LOV.
    Thanks..

    can we show the data in the LOV by decode functionAs you already do, you can.
    its better to write two LOV's based on the condition.It depends. If its a complex lov and only one column varies based onsome condition, it might less work to use just one lov. Personally, i prefer two different lov's

  • Adobe Cloud has 2 different Muse programs.... how do I know which one is the newer better version?

    So I am new to Muse, and my Adobe Cloud has 2 different programs from Muse... how do I know which one is the newer better version?
    One Must program (Muse CC 2014.2)  has a black background when working on it... it looks like other Adobe programs such as Photoshop.
    The other one is light color (Muse CC) very similar to the black color Muse on functions.....
    One of the difference I notice is that the light color Muse has a few widgets in the library, while the black background Muse seems to have an empty library
    So... why are there 2 different Muse programs in my Adobe Cloud?

    Hi
    The latest version of Muse is 2014.2, so you need to uninstall another version of Muse manually.
    regarding the items in Library, you can add items in your library manually, as shown in this article
    Adobe Muse Help | Organizing and reusing design elements using Library panel
    Please let me know if you have any other query.

  • TS4006 I have several iphones on  find my iphone. How do I know which one is the correct iphone. None of them are labeled Iphone4 or 5 etc.

    I just had my iphone stolen from me. In the past I have always set up my phones an ipads on to the find my iphone service. I have never deleted them from the find my iphone account and now I have 3 iphones showing and 2 ipads. How can you tell the difference when none of them are labeled as Iphone 4, iphone 4s, iphone 5, etc. No dates are shown as when purchased so it I can't figure out which one is the correct iphone to put on lost mode and send message to.

    Deleting on one device does not affect another device.
    You can delete the App's on the iPhone and nothing will happen to the ones on the iPad.
    1.  You don't need to.
    2.  Settings->Cellular->"Use Cellular Data For" will show the data usage for each App since the last statistics reset
    3.  Settings->General->Background App Refresh Will show which Apps are allowed to get data in the background
    4.  It restricts it to Wifi.  If the App requires internet access and Data is turned off, it will have to wait until the device is connected to a wifi network.
    5.  Nope, You just use up battery since the BT radio will continuously look for nearby BT devices.
    6.  The Personal Hotspot uses your cellular internet connection from your phone or other cellular device; whether you consider that secure or not I cannot say.  It also depends on what you are doing while connected to the Hotel's wifi. I would not do online banking while on vacation though.

  • Session method and call transaction methos which one is the sap recomonded

    hi
    PLease give me the answer to these questions.
    session method and call transaction methos which one is the sap recomonded why .
    2) if we want to maintain BDC program in all the systems.wt to d0

    Hi Revethi,
    Here is the difference between the Session and Call Transaction method.
         Session
    Session method supports both small amount of data aswell as large amount of data
    2) data processing is asynchronus and data updation is synchronus.
    3) it process multiple apllication while perfomaning validations.
    4) in session method data will be updated in data base only after processing session only.
    5) system provide by default logfile for handling error records.
    6) it supports both foreground aswell as background process
    in bdc we use FM ... bdc_open_group " for creating Session
    bdc_insert " adding transaction and bdcdata table for updating database
    bdc_close_group " for closing Session
          Call Transaction
    Call transaction exclusively for small amout of data
    2) it supports only one apllication while perfoming validations
    3) there is no default logfile, We can explicitly provide logic for creating logfile for handling error records.
    we can create logfile by using structure....BDCMSGCOLL
    4) it doesn't support background processing.
    5) data processing is synchronous and Data updation is Synchronous( default), in
    this method also supports daya updation in asynchronus process also.
    Syntax:
    Call transaction <transaction-name> using BDCDATA
    mode <A/N/E> update <L/A/S>
    messages into BDCMSGCOLL.

  • How do i find my newest itunes tv downloads, in my video app.  In the OS7 all my purchases are there so i can find which one is the new ones that i have not watch M

    How do i find my newest itunes tv downloads, in my video app.  In the OS7 all my purchases are there so i can find which one is the new ones that i have not watch

    Hi Bill...
    Read here >  Creating an iCloud account: Frequently Asked Questions

  • I am debating between the 13in 2.9ghz mac book pro or the 13in 2.5 ghz mac book pro with all the same specs bbut for me i am trying to see which one for the money is better becuase the 2.5 will run me 100-200 dollars less than the other

    I am debating between the 13in 2.9ghz mac book pro or the 13in 2.5 ghz mac book pro with all the same specs bbut for me i am trying to see which one for the money is better becuase the 2.5 will run me 100-200 dollars less than the other

    Only you can make that determination. All things being equal the 2.5 GHz model is slower.

Maybe you are looking for

  • What is node and how to create a node in logical database in reports.

    What is the purpose of this nodes. Show me one example program using these nodes.Clearly show me an example with explanation. If this is taking any table means.Plz give me a clear example with my ztable. Tables : zptable1 fields in this table are f1,

  • Where is the CS5.5 to CS6 Web Design Premium upgrade download link?!

    I purchased the CS5.5 Web Design Premium equivalent to avail of the free upgrade to CS6 when it came out. After too much fluffing around with Adobe's customer services (weeks upon weeks), I eventually received the upgrade disk through the post (I'm b

  • Reading in a file with BufferedReader

    I haven't used Java for anything beyond calculations and simulations so my programming skills aren't great. I'm trying to read in a file which contains scientific data. I want to skip two digits, read 5 into one element of an integer array, skip 14 d

  • F.01 Financial statement - Change Item itself

    Dear all, I have created a new financial statement version in FSE3, so I can extract the report via F.01, although the ITEMS seems wrong, i.e., I didn't associate any item when I've created the structure and  adding the accounts from this setting. I

  • 'SET_NO_OUTLINES'  Error while Importing

    Hi, all While Importing the table into oracle 9i rel2 database,Win 2000 And Export Dump is taken from Oracle 10g rel2 , Win Xp Professional the Following Errors are given, IMP-00058: ORACLE error 6550 encountered ORA-06550: line 1, column 33: PLS-003