Newbie Question: Command for only Y or N in a column.

I am just starting on SQL developer and need to know how to enter the command to change a table so that it will only accept a Y or N in the column. I know this is exceedingly simple but how do do it appears nowhere in my textbook.
Thank you!

Hi,
Welcome to the forum!
What you need is a Check Constraint , like this:
CREATE TABLE     table_x
     complete_flag     VARCHAR2 (1)     
               CONSTRAINT x_complete_flag_chk
               CHECK     ( complete_flag     IN ('Y', 'N')
);For details, look up "Check constraints" in the SQL Language manual:
http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/clauses002.htm#sthref3031
This question actually doesn''t have anything to do with SQL Developer or SQL*Plus, which are front-end tools for communicating with the database. In the future, you'll be better off posting questions like this in the SQL and PL/SQL forum:
PL/SQL
I know it's not easy to tell them apart when you're just beginning. When in doubt, it's probably best to guess that it's a SQL question, and post it in the forum above.

Similar Messages

  • SQL Developer usage (newbie) question - using for script development

    I'm new to Oracle, but not to SQL (used MS SQL Server off and on for 3 years prior). SQLDeveloper (v1.5.1) was recommended as a dev tool for the work that I'm doing in in Oracle 10.2.0.4. I'm looking to write some scripts to eventually become stored procedures. The problem I'm having is it seems i can only execute one line even though there are multiple statements in the "Enter SQL Statement" window pane.
    ie.
    select id, Full_Name, unique_name, user_id from srm_resources;
    select id, user_name, last_name, first_name from cmn_sec_users;
    when i highlight those two lines and click the "Excecute Statement" button, only the top line generates results.
    I'm used to using MS SQL's Query Analyzer where I could select one statement or multiple statements to execute, even non-SELECT statements (variable assignments, math, control loops). It does not appear that I have this kind of functionality in SQL Developer - or an I not using the tool correctly?
    Thanks
    Brian

    I'm assuming you're meaning the SQL worksheet here. The green arrow icon is execute statement (F9) The tiny green arrow is execute script (F5). I'm currently on 1.5.4 of SQL Developer.
    Hope this helps some. I would download the documentation also.
    http://download.oracle.com/docs/cd/E12151_01/index.htm
    Evita

  • Newbie Question,preferences for saving images

    Brand new to PS, CS5, how do I change or set preferences so all images, pictures, masters and versions are saved to external hard drive and not the pictures library in iphoto? Thanks in advance.  r ahrens

    Is the limitation of 1000 pixels something that's intended to sell Premiere Pro for people wanting true HD resolution?
    The 1000 x 750 suggestion is for an SD/DVD-Video Project. With a BD Project, you would bump that up to match your intended output, say 1440 x 1080, with a bit of room to Pan on a Zoomed out image.
    Personally, for an SD Project, I will Scale the vast majority of the images to the exact size that I need - 720 x 480. When I have a few images that will be Panned on, while Zoomed out, I will calculate the movement that I need and resize to those dimensions. The 1000 x 750 size takes the possibility of the Pan into account. I like to match things up as perfectly as I can, even if it means Scaling some image to one size, and others to another. Many just want something that will probably work for all images and just Scale to one size for everything.
    The larger the image vs the Project's Frame Size, the more processing power will be needed, and the more Scaling that will be heaped onto PrE, resulting in slightly lower quality, as opposed to resizing in Photoshop.
    I'm not positive about the limit in PrE, but in its "big-brother," PrPro, the limit is 4096 pixels in the largest dimension. Obviously, there are not many instances where one would want images that large, unless they needed to do a major Pan, while Zoomed out. It would not take too many such images, before the program is bogged down too much to function. If someone had such images, I would strongly advise that they look into Adobe AfterEffects to do the animations, and then output as a DV-AVI, or appropriate intermediate format, to be Imported into the NLE.
    Hope that this helps and good luck,
    Hunt

  • Newb Question for burning DVD/CDs

    I have an external DVD writer on my iMac.
    I got the thing last month and an completely new to Apple (sorta)
    Now how do I make a data CD and DVD?
    On Winblows XP all I need to do is select the files, right click and click on SEND FILES TO CD for making data CDs.
    However for DVD I need 3rd party software.
    Will iDVD do the trick?
    Thanks for the looking at this simple newb question.
    GeekyBoy

    Now how do I make a data CD and
    DVD?Drag the files to the icon of the
    blank CD/DVD that appears in the
    Finder.However for DVD I need 3rd party
    software.You might want to try Patc
    hBurn.Will iDVD do the
    trick?No, iDVD is only for making video
    DVDs and it requires a G4 processor.
    Thanks for the tip Duane.
    I was just reading abotu burning CD on another site. It mentions about what you said, drag the files to the CD.
    However I am reading in my profiler that burning is NOT supported by OS X on this CD/DVD writer.
    Will Patchburn or any other software overcome this?
    Thanks

  • Buy License for single edition....newbie question

    Hi, very new to this forum and DPS. I tried to click the "Buy licence for single edition" link on the left of the page, but was not provided with any cost information - only an adobe product notification page. I am a Adober CS5.5 Design Premium subscriber. Keen to know costings before I learn how to do all this. Cheers

    it depends on the adobe store website and may be a legal issue too, because
    you don't buy software but a licence here (in fact, sth. like a serial
    number)
    (mobil gesendet)
    Am 15.10.2011 09:07 schrieb "JeroenVink" <[email protected]>:
       Re: Buy License for single edition....newbie question  created by
    JeroenVink <http://forums.adobe.com/people/JeroenVink> in *Digital
    Publishing Suite* - View the full discussion<http://forums.adobe.com/message/3972473#3972473>

  • Questions on Commands for planning application

    Hi,
    1. Where can i get the information on commands for planning functions?
    2. What is the difference between
    ---Execute planning function simple and -
    Execute planning function
    3. I create planning layout with few buttons
    a. Copy: I clicked on the copy button and can see the data in the layout
    b. Save: Clicked on the save icon, Data saved into the planning cube
    c. Change. : clicked on the change and changed few values and then clicked on SAVE button. Data got saved into my planning cube.
    Now I my requirement is when user open the planning layout, It should only be in display mode. But currently automatically all the keyfigures are in change mode (Is it because in query designer, I checked "Start query in the change mode?)
    When user opens the planning layout, he should run the copy function, then should save the data into the planning cube and then should be allowed to chagne. Change button should be in active until data is saved into the plannigng cube. IS this possible?
    Thanks
    Annie

    Hi Deepthi,
    Thanks for your reply.
    I did as you mentioned and its working as expected.
    User wants something like this
    1. Execute the planning layout.
    2. Click on the copy function
    3. Save the data
    4. Click on the change button so that data can be changed now.
    As per your solution, without have change button its working perfectly. But now i want to have change button on the layout. Initially change button should be disabled. When i save the data then it should get active.
    I did the following things but didnt work
    1. Save button i have two commands
    a. Save data
    b. Set_item_parameters
    2. Change button> disable>set_data_entry_mode.
    After executing the layout. I could copy the data and save it. BUT after saving it change button is not getting active.
    I think i did do something in save button (B). I just mentioned button group but didnt mention the change button. Can you please help me?
    Thanks
    Annie

  • I've forgotten the answers to my security questions, and for some reasons My rescue email is not active now, I can only access to my primary email, I have just redeemed a $25 gift card this morning, I was unable to use the money now. what should I do?

    I've forgotten the answers to my security questions, and for some reasons My rescue email is not active now, I can only access to my primary email, I have just redeemed a $25 gift card this morning, I was unable to use the money now. what should I do?

    You need to ask Apple to reset your security questions; this can be done by clicking here and picking a method, or if your country isn't listed, filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (110676)

  • Newbie questions on fms and actionscript 3

    Ok, like I said I'm a newbie, but I do understand the differance between ssas and as3. Not all, but all most everything I see written in SSAS can be writen into a external AS3 file. This leads me to quite a few questions I'm hoping you kind people can shed some light on for me.
    1)  What is the advantage of writing a SSAS file over an external AS3 file?
    2) Can I write an .asc file in AS3 or do I have to use AS1? Please understand I'm using tuts from fmsguru.com and the books "Learning Flash Media Server" (pdf) and "Programming Flash Communication Server". I'm not a javascript programmer so nothing I do in AS1 seems to make any sence while everything I do in AS3 does. It may not seem like it to you people that are programmers, but to those of us that aren't, AS1 and AS3 are miles apart.
    3) kind of off topic, but a security question. I'm not a "hacker" and don't like the jerks that are. My question is on external AS / SSAS files and swf files. When my fla is compiled into a swf does my external AS files remain external? I assume they do, but then what is the threat of the swf being decompiled? In most projects I would do I could care less if somebody had access to my fla as long as they don't have my actionscript files.
    I don't know. Maybe on questions one and two I'm getting confused becasue I'm using out dated material. Again I assume that even though fms was built off of the javascript engine it should be able to read and execute my AS3 file. Other wise what was the point of the evolution of actionscript into a fully functional programming language?
    Thanks for any help you might have...

    1) I did not get this question correcly - for that matter SSAS can only be in AS1 - so i dont see reason comparing them
    2) It has to be AS1
    3) if you doing "include" stuff - i think code would go into compiled swf and proper decompiler would give you the code.
    Last para - Server-side engine understands only AS1 so it wont be able to read and understand your AS3 file.

  • Can I show a data label for only one point in a series?

    Forgive a newbie question from an Excel convert, but can I show a value label for only one point in a data series? If yes, how?
    There are a number of graphs where I only want to value of either an extreme value or the ending value to show. Having all the labels in a series makes the chart too busy. This is pretty easy to do in Excel.
    If this can't be done, I guess that adding a text box over those points would work.
    Thanks

    Hi W-T,
    Welcome to Apple Discussions and the Numbers '09 forum.
    wahoo_tiger wrote:
    Forgive a newbie question from an Excel convert, but can I show a value label for only one point in a data series? If yes, how?
    Sure. Here's and example labeling only the MIN and MAX points.
    Column B contains the data charted with the blue line.
    Column C extracts the MIN and MAX values using the formula below. Those two values are charted as a separate series, using the green data point markers, and are labeled with their values. The intervening empty string values appear to have doused the lines connecting the two data points.
    Formula: =IF(OR(B=MAX(B),B=MIN(B)),B,"")
    Regards,
    Barry

  • Newbie question (I think you can answer me)

    Hello.
    I am a newbie about EJB. But I am teacher of a Java course and I have
    introduced EJB to my students. I have said them that EJB is good for big
    applications but, when the application is small, is overkill (I read this in
    several books). But then a student has asked me (I don't know how to
    exppress the sentence in English) "How big has to be the application in
    order to take advantage of EJB?". I mean: EJB is overkill for an application
    with two concurrent users. But, if concurrent users are thousand, it is
    necessary. Where is the limit between two situations? Of course, there is no
    exact limit but it must exist some QUANTITATIVE parameter.
    I had no reply for my student. Good question but no answer. I said that I
    will look for this information.
    I am getting mad looking for this information in Internet. I have seen no
    studies that study such a basic question. Even it has been impossible to
    find "a ballpark estimate". I seen EJB FAQs, pages, books about EJBs, but I
    found nothing. Any information of this kind would help me a lot.
    So, please, can anybody help me?
    Any help would be greatly appreciated.
    Thanks,
    Pau Vic.
    (I sent a former copy of this message to an unrelated thread. This was a
    mistake. Please excuse the inconveniences)

    Thank you, Ji.
    Pau Vic.
    "ji zhang" <[email protected]> escribió en el mensaje
    news:[email protected]...
    >
    Hi Pau.
    How big has to be the application in order to take advantage of EJB?There is no measurement standard for developers to decide the utilizationof EJB
    in their applications. It is clearly unnecessary to develop a nonenterprise application
    for only few ( as you mentioned 2 ) routing users with EJBs.
    The question is more likely why using EJBs. Few major considerationslisted below:
    >
    1) A real production internet application is getting to rely on anapplication
    container ( for example: #1 application server WebLogic ) to handleunderly resources,
    backend works and Object life cycles.
    By using EJBs, EJB container handles the sophisticate backend jobs foryou.
    Developers may only focus on their business logics.
    2) A real production internet application may be also a combination ofsome reusable
    logical components. To reduce the application development hardness,modeled and
    specification oriented plugable components such as EJBs may be used. Thatis also
    why the EJB component vendors exist.
    3) There are concepts of scalability and high availability in realproduction.
    EJB components can be easily deployed to be scaled and load balanced inthe EJB
    containers in a cluster. Fully implemented Weblogic Cluster is a goodexample.
    >
    There may be other advantages of using EJB as well.
    Thanks.
    Ji Zhang
    Developer Relations Engineer
    BEA WebLogic Support
    "Pau Vic" <[email protected]> wrote:
    Hello.
    I am a newbie about EJB. But I am teacher of a Java course and I have
    introduced EJB to my students. I have said them that EJB is good for
    big
    applications but, when the application is small, is overkill (I read
    this in
    several books). But then a student has asked me (I don't know how to
    exppress the sentence in English) "How big has to be the application
    in
    order to take advantage of EJB?". I mean: EJB is overkill for an
    application
    with two concurrent users. But, if concurrent users are thousand, it
    is
    necessary. Where is the limit between two situations? Of course, there
    is no
    exact limit but it must exist some QUANTITATIVE parameter.
    I had no reply for my student. Good question but no answer. I said that
    I
    will look for this information.
    I am getting mad looking for this information in Internet. I have seen
    no
    studies that study such a basic question. Even it has been impossible
    to
    find "a ballpark estimate". I seen EJB FAQs, pages, books about EJBs,
    but I
    found nothing. Any information of this kind would help me a lot.
    So, please, can anybody help me?
    Any help would be greatly appreciated.
    Thanks,
    Pau Vic.
    (I sent a former copy of this message to an unrelated thread. This was
    a
    mistake. Please excuse the inconveniences)

  • Newbie - use camera for video and external microphone?

    Hi,
    This is a totally newbie question, but I'm a total newbie to the video part of the mac universe.
    I want to use a camcorder to "stream" live video into iMovie (which will record it to the hard drive), and use an EXTERNAL microphone, plugged into the microphone port of the computer, as the audio source (I want to use a good mic).
    Will iMovie support doing this? Is it automatic that the external mic overrides the mic on the camcorder?
    Thanks,
    Dmitri
    P.S. this is part of a bigger question, which is, how to get the best possible audio using a standard (cheap) camcorder. I haven't bought a camcorder yet, and am open to getting one that can take a good mic through a line-in. Any suggestions? - Thanks, D

    I wrote a reply to your earlier post ..but either the system went offline, or some other glitch occurred, and the post didn't appear. So I'll try to answer your earlier message and the one just above.
    Congratulations on getting the camera, by the way!
    "..play video through camera" option in the preferences, which MUTES the sound in iMovie.." ..Yes, this has been standard in iMovie from the earliest versions. There may be a slight delay between the audio you hear straight from the camera and the audio coming out of your Mac. To stop the annoyance of hearing the audio separately and slightly out-of-sync (..you'll find that the video on the Mac lags very slightly, too, during import..) you can turn OFF the Mac's audio with that preference.
    "..I assume this goes away if I unplug the firewire cable.." ..er..? You mean that the preference switches back when you unplug? I can't remember: try it. But don't unplug the FW cable in the middle of an import!
    What I was previously trying to post was:
    "..instructional/promotional videos to display online.." ..You don't say if you'll be walking around to do these demos, or if you're demonstrating computer software. If walking around you might want to use a "gun" mic to point at you, or a tie-clip mic, so that it's always clipped to your clothes ..but that will trail a cable to the camcorder unless you use a radio mic. [..And you've now bought a tie-clip mic; well done..]
    If you're doing demos of computer software, then you probably wouldn't need a camcorder at all, but just a "screen-recorder" application like 'Snapz Pro' or 'iShowU'. In that case, you'd just want a simple mic to stand on your desk, to record your speech as you work your computer, and for adding extra narration afterwards.
    I still don't understand why you want to capture directly to iMovie. If you're using a camcorder, surely you'd want to capture to tape, in case you need to do three or four "takes" of the same material ..and then you only need to import, and fill up your hard disc with, the best of those takes.
    And if you're recording a computer screen, then you wouldn't capture with iMovie at all, but with one of those other programs, above..

  • Domain name settings - Newbie question

    Sorry for a newbie question!
    I am already pointing a domain name to web hosting for email account. Now, I need an application server to run ERP software and Oracle, and installing Solaris and Oracle need a domain name.
    If I point my domain name to the server, how do I receive emails from web hosting???
    Install an email server to the application server instead? What can I do if I want the same domain name? Any option?

    Setting up a mailserver and making sure it doesn't suddenly turn into a spambox is not something you do with the use of a few commands. I suggest to dive into the Solaris admin guide on docs.sun.com and read up on e-mail and network services.
    If that is asking too much of your time you'll be better off getting your ISP to handle all this for you.

  • CR XI and charts -newb question within

    Hi All,
    Great website and resource!  I'm a CR newbie and need help with charts.  I'll be using CR to develop single page summary sheets that contain only charts and cross-tabs.  The data is identified by dates that range from 2002 to 2008, and certain charts will show data from certain time range. 
    Here is a theoretical sample:
    Date   Sales (units)
    1/01/02      5
    1/02/03      4
    1/03/04      5
    1/04/05      1
    1/05/06      4
    1/04/06      5
    1/03/07      2
    1/04/07      1
    1/05/08      5
    1/11/08      2
    3/04/09      6
    If I want a bar chart that plots all the sales from a certain year, how do I go about doing that? formula? groups?
    If I want a bar chart that plots cumulative sales from 2002 to 2008, how do I go about doing that?
    please help!!
    Thank You in advance,
    Frank

    Hi Raghavendra,
    Thank you for the great and prompt response!! To further clarify, on my first question, if I only want to display the sales of 2008, and not every year, how do I do that?
    New question: If i wanted to track the occurrences of sales, how would I do that?
    Using the same theoratical example:
    Date
    1/01/02
    1/02/03
    1/03/04
    1/04/05
    1/05/06
    1/04/06
    1/03/07
    1/04/07
    1/05/08
    1/11/08
    3/04/09
    I want to plot on a bar graph that in the month of January, 2007, there were 2 occurrences of sales, and in the month of January, 2008 there were 2 occurences of sales.  How would I do that? 
    Thank You very much!!
    Frank

  • Newbie question about saving files

    Hi all,
    A newbie question here, and maybe it is a dumb question, but I can't get my head around this and sofar found no answer in the forums here.
    When I save a file on my macbook, I can only save it to "top" folders.
    What I mean is I try to save a file for instance to documents/worddocs/lyrics just to say something, then I have to save the file first to documents, and the move it to the lyrics folder via finder or move it to :worddocs folder and then move it again to the lyrics folder. Hope you still get my drift here
    Is there a way to just save it to the subfolders without going through all this moving around?
    Thanks in advance for any advice
    Peter

    When you click File>Save As, you will see the Save As window pop up. At the top, you will see a box entitled Save As, which has a space for your to enter the file name. To the right of this box is an arrow pointing down. Click it. The full file hierarchy will be seen. Then you can save directly to the file you want.
    Hope this helps.
    Don

  • WebDynPro Newb question

    Hey All,
    I need to begin working with WebDynPro. I have a couple of Newb questions:
    1) I need to jump right in fairly quickly, so can anyone suggest any good documentation that could help me get the basics down about working with WebDynPro?
    2) I loaded a Sample WebDynPro project into NetWeaverDev Studio, but I am unable to export this to our instance of EP on our Development Server. For a .par file its easy to do exports, but I can't for the life of me find where i go in NetWeaverDev Studio to do an export of a WebDynPro project. When I goto export in the WebDynPro perspective, it appears to only want to allow me to export locally, but I need to push to a different server. Can anyone help me with this?
    I appreciate any advice and suggestions. Thanks All!!
    Take care,
    -Kevin

    Hey Rich,
    I have the Engine setup, but I do not get prompted for the SDM password, do I need to configure that somewhere? I get the following error when trying to deploy:
    <i>Jul 15, 2005 10:13:17 AM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
    [004]Deployment aborted
    Deployment exception : Cannot determine sdm host (is empty). Please configure your engine/sdm correctly !</i>
    Thanks,
    -Kevin

Maybe you are looking for

  • What do i need to connect my mbp to a tv with a thunderbolt port?

    I have an HDMI compatible (?) tv and my macbook pro has a thunderbolt port (instead of the minidisplay port) and i want to hook it up to my tv but i don't know how or what cables i need. thanks in advance!

  • Some pictures missing in EWA

    Hello, some of the pictures of a EWA report are missing. There are no images for "traffic_light_green/yellow/red.gif". Diagrams and the "icon_checked/warning/alert.gif" pictures are displayed properly. SAP EHP 1 for SAP Solution Manager 7.0 SPS 25 Ke

  • Order of execution of VPD policies

    Hi, I have a table on which I have defined two policies (one for column masking and one for row filtering). From whatever testing I have done, it seems the policy functions get executed in the order in which the policies were created. Does oracle gua

  • Where is idvd on my iMac with lion?

    I can´t find iDVD on my new iMac with preinstalled Lion. How do I make DVD´s from iMovie?

  • Contract account pop up screen on va01

    I have modified the program to create business partner(BP) so that it can create a different partner called a one time BP. the difference between these 2 types of BPs is the business group. the problem now is when i am creating a sales order for the