Is it possible to create a Column with Conditional Mandatory with another Column?

Is it possible to create a Column with Conditional Mandatory with another Column?
For example
In a Table we have column A, B, C.
A is Primary Column.
B is Optional
C is Conditional Mandatory.
A B
C
12345 ABC
OK
12346 NULL
NULL
12347 ABC
OK
Only if the B Column has the value then only C column should be mandatory

I guess you can't create a condtional mandatory column directly. However, you can use check constraint to on the column
create table YourTable
  A int primary key,
  B char(3),
  C int,
  constraint ch_con check(
                            B
is not null
or C is null

Similar Messages

  • Is it possible to create a playlist and share it with another itunes user?

    Is it possible to create a playlist and share it with another itunes user?

    try this out
    Select distinct   
    v_R_System.Netbios_Name0 AS [Computer Name],  
    v_GS_COMPUTER_SYSTEM.UserName0 AS [User Name]
     from v_R_System
    left join v_GS_COMPUTER_SYSTEM on (v_GS_COMPUTER_SYSTEM.ResourceID = v_R_System.ResourceID) 
    inner join v_fullcollectionmembership as b on (b.ResourceID = v_R_System.ResourceID) 
    left join v_GS_SYSTEM_CONSOLE_USAGE_MAXGROUP ON v_GS_SYSTEM_CONSOLE_USAGE_MAXGROUP.ResourceID = v_R_System.ResourceID
            inner join v_GS_SYSTEM e on e.resourceid = b.resourceid
     Where
    b.CollectionID = @collectionid
    Blog: http://theinfraguys.com
    Follow me at Facebook
    The Infra Guys Facebook Page
    Please remember to click Mark as Answer on the answer if it helps you in anyway

  • Is it possible to create a menu structure within iWeb with a so called tree layout? iWeb only provides automatically a horizontal layout

    Is it possible to create a menu structure within iWeb with a so called tree layout? iWeb only provides automatically a horizontal layout

    Not in iWeb itself.
    You have to create these menus yourself. Start here :
         A List Apart: Articles: Suckerfish Dropdowns
    Also, see podcast episode 9 of
         CSS Tricks and Tips
    and then add them to a webpage with the HTML Snippet.
    Or add the menu to the webpage with a JavaScript.
    Here's a sample page :
         http://www.wyodor.net/mfi/roodhout/
         http://www.wyodor.net/mfi/spelling/
         http://www.wyodor.net/mfi/Maaskant/Some_Menus.html
    The how-to-do page are here and here.
    More sample pages on my Made for iPad with iWeb pages.
         http://www.wyodor.net/mfi/
    You may have to learn HTML, CSS, JavaScript, AJAX, DOM and how iWeb creates its pages.

  • Is it possible to create in R/3 the invoices with status u0091parkedu0092?

    Hi ppl.
    We are working in EBP with extended classic scenario.
    We want to create invoices in EBP, but we want to create all invoice documents via EDI with status ‘parked’ in R/3.
    We read note 501524 (EDI: Generally parking incoming invoices). The note describes all that we want to do, but the problem is that the Function exit ‘EXIT_SAPLMRMH_014’ does not work for ‘BBPIV’ message type and the ‘IDOC_INPUT_BBP_IV’ function module.
    Is it possible to create in R/3 the invoices with status ‘parked’ for all incoming invoices created in EBP?
    Thanks and regards.

    Raul,
            Did you find a solution for this.
    We want to do the same here.
    thanks
    Sanjay

  • Is it possible to create outbound delivery for sales order with FM: GN_DEL*

    Hi all,
    Is it possible to create an outbound delivery for a sales order using the FM: GN_DELIVERY_CREATE. I am choosing this over a BAPI as I also needed to fill the bill of lading and inco terms.
    Thanks

    Hi Gurus, is there any function module / Bapi that updates the BOL in a outbound delivery  header created for a sales order

  • Summing Selected Rows in Column Depending on Value in Another Column

    I'd like to sum only the values in selected rows in a given column depending on the value of another column in the same row. For example, suppose I have a table (please disregard the underscores, needed for correct alignment):
    ___A____B____C___D
    1__5___10___15___0
    2_20___25___30___1
    3_35___40___45___1
    4_50___55___60___0
    5__sum(D=1)
    In cell B5, I'd like to compute the sum of only rows in column B for which the value of the corresponding column D is 1. In this case B5 would be 65.
    How can I do this using functions? Is it possible to do it for a variable range of rows without specifying each row individually?
    Thanks,
    Dave

    You should place your formula to other collumn then calculated ones or in another table. You will be able to calculate whole collumns with: =SUMIF(D;“=1”;B)
    Formula for your example is: =SUMIF(D1:D4;“=1”;B1:B4)
    VB

  • Color a column based on value in another column in tableview

    I am using a tableview iterator to display data in a bsp page. I want to color a cell in particular column (column 4), when a value in another column (column 2) on that same row is greater than 20. I can color the cell in column 2 but am not able to color the cell in column 4. How can I accomplish this?
    This is what I have. Looks like val1 is losing it's value.
    CASE p_column_index.
        WHEN 2.
          ASSIGN p_row_data_ref->* TO <row>.
          ASSIGN COMPONENT 'ZTGT' OF STRUCTURE <row> TO <col>.
          VAL = <col>.
          IF VAL GT '20'.
            val1 = p_row_index.
            p_style = 'celldesign:CRITICALVALUE_DARK'.
          ENDIF.
        WHEN 4.
            if p_row_index = val1.
              p_style = 'celldesign:CRITICALVALUE_DARK'.
            endif.
        WHEN OTHERS.
    do nothing
      ENDCASE.

    The reason val1 is "loosing its' value" is presumably because you have defined it in the method as a local variable. So each time you call the RENDER_CELL_START method it is is newly initialised. So if you make this an instance attribute it will retain its' contents across method calls.
    Cheers
    Graham Robbo

  • Is it possible to create a new account to use with an existing iPhone?

    My iTunes account was hacked and I want to create a new account. I have an iPhone 3G, and I want to start using my new iTunes account with it. Is it possible do this without losing all of the stuff on my iPhone and having to re-purchase all of the apps that I've bought?
    Thanks for any help.
    Sunil

    You can create a brand new iTunes account and sync to it. However, all of your apps will have to be manually deleted on the old account and newly downloaded to the new account.
    You don't have to do this, until there is an upgrade notification. I don't know what to tell you about those apps that you paid for. I think you might be out of luck with that. But, as another writer said, check with Apple. They may be able to help.
    Good luck.

  • Is it possible to create a PDF/A1a compliant file with SOAP API ?

    I saw that I can create two kind of PDF/A1b (CMJN and RVB), but nothing about PDF/A1a.
    Unfortunately, I see the same limitation in the administration pages of the LiveCycle server.
    -              Here is my code (using SOAP api) :
          Document inDoc = new Document(new FileInputStream(wordFile));
          String adobePDFSettings = ?????;
          String securitySettings = "";
          String fileTypeSettings = "";
          // Convert the Word document to a PDF document
          CreatePDFResult result = pdfGenClient.createPDF2(inDoc,
                                                    "dummy.doc",
                                                    fileTypeSettings,
                                                    adobePDFSettings,
                                                    securitySettings,
                                                    null,
                                                    null);
    -              I tried before using the OutputClient, but I had this exception :
                    com.adobe.livecycle.output.exception.OutputException:
                                    com.adobe.idp.DocumentError: com.adobe.idp.DocumentError: 403:
                                                    Authentication with DSC invocation permissions required.
    Any help, any idea will be greatly appreciated.
    Best regards,

    Hi CeeCee725,
    There is no longer a way in the Acrobat/Reader interface to do this.  Several conflicting methods were available via Adobe Acrobat, Adobe Reader, and multiple web browsers.  Each could conflict with the other including the settings for Acrobat and Reader installed on the same computer.  So, Adobe decided that the best way to handle this operation was through the web browser plug-in interface. 
    Best,
    Sara

  • Is it possible to create a MDI like applicatio​n with labview?

    I would like to create a main VI and all the sub vi's that have visible front pannels to be within the main vi. As a result when the user minimize a sub vi his frame will go inside the main vi and not in the windows task bar (only the main vi will be able to go there. Is that possible ?

    This question has been asked many times here. You can search this news gourp to find out.
    Or you can do a search on www.info-labview.org.
    George Zou
    http://gtoolbox.yeah.net
    George Zou
    http://webspace.webring.com/people/og/gtoolbox

  • Is it possible to create a dolby 5.1 video with HDV clips in Premiere Elements 9

    I am trying to take the stereo input of the HDV clips and use those for Front Left and Front Right.  I would like to add some stereo music in the two back channels and add a narrative for the center channel.  Is this possible in Premier Elements 9?
    Thanks for any pointers...

    No, unfortunately you did not miss something.
    The same, or very similar, question comes up in the PrPro forum, quite often. There, it's usually along the lines of "why do I have to buy the SurCode plug-in? Why is it not included in the price of the program?" There, the answer is that if it WAS included, the price would go up by about US $ 250 for every copy of PrPro, whether the user ever needed to do DD 5.1 SS, or not.
    Personally, I was so impressed by the SurCode plug-in for PrPro, that I bought two licenses (no discount for multi-user licenses), and nearly every Project contains DD 5.1 SS, that gets authored in Encore. I also got the SurCode DTS Encoder (not a plug-in, but a stand-alone), and many Projects also have DTS as a supplemental Audio Stream.
    Not sure if PrE will ever have DD 5.1 SS output, due to the cost of the DD licensing.
    Now, some NLE programs DO offer 5.1 SS, but not sure how many are fully DD (Dolby Digital) compliant.
    Good luck,
    Hunt

  • Is it possible to create crystal reports on IBM RAD with Java Bean as Data Source

    <p>Hi,</p><p>&#160;</p><p>          Our company wants report generation in IBM RAD 7.0  using crystal reports with a Java Bean as data source. i HAVEN&#39;T FOUND ANY ARTICLES TO WORK ON RAD. Any inputs appreciated..</p><p>&#160;</p><p>Thanks,</p><p>Manju</p>

    Look for Java POJO in the doc, i'm using RAD 7.0 and it's working like RAD 6.0

  • Possible to create .app of .jar which links to another project's .jar?

    Hi,
    I have 2 Projects. One uses simple java and the other one uses java fx 2.2.3.The executable .jar of the simple java project needs to be linked with the data files and .jar of the java fx project.
    I have created a .app of the java fx project,but then the .app links with its jar.What I want is,the .app of the simple java project should refer to the jar of java fx.Is it Possible?
    Thanks

    Presumbly locking wouldn't work?Not really: Locking would mean that only one client/person could use the library using the Java wrapper. That in fact is the shortcoming I'd like to overcome by instantiate multiple processes.
    Thanks,
    Soeren

  • Macro/VBA script to merge rows with same values in another column

    Hi.
    I'm developing a dance competition application, using Excel 2010, and have so far managed to put judges' marked scores into a worksheet through a userform.
    Now I would like to make the worksheet more presentable as a scoreboard, as you would manually, but via VBA scripts.
    Exhibit Numbers (Column G) are unique identifiers (per competition) for contestants and each contestant is typically judged by three judges.  The scores in three separate categories from one judge would spread in one row so each contestant would have three
    rows.
    I would like to merge rows of columns where the totals from the judges go (Columns P to U) for each contestant.
    I've considered using some kind of loop but I don't have enough experience in vba scripting, it gets overcomplicated. Could someone please help?
    Many thanks.
    Maki Koyama (Canberra, AUS)

    Hi,
    You cannot add a static "Y" inside a when looping over "i". You need to ensure that "Y" changes along with X. Try the modified code below.
    List elements = new ArrayList();
    for (int i=0; i<XXX; i++) {
    IZZZ.IVisibilityElement el = wdContext.createVisibilityElement();
    el.setVisAttr(i); // Change Y to i
    elements.add(el);
    wdContext.nodeVisibility().bind(elements);
    That should give you an idea of what is erroneous in the code.
    Thanks.
    HTH.
    p256960

  • Possible to create a pool of JVM's from another JVM's ?

    Hi all,
    currently I'm researching on a small task where a native "black box" C++ library needs to be integrated into Java, developing some kind of JNI-based wrapper. I've done this already with SWIG two times before, worked quote well, but this time it's different: The wrapper will be used from a multiuser application (i.e. various parallel working calls) but the native library is not only not threadsafe, but it also utilises static variables at central places.
    My idea is the follwing
    1) The standard solution part: create a wrapper application in it's own JVM which exposes the native interfaces as Java interfaces
    2) Instantiate multiple of these wrappers as separate processes (i.e.: separate JVMs, the "inside JVM") from another JVM ("outside JVM").
    3) The outside JVM uses the multiple instances in a kind of "round-robin" or "next free" pattern to assign new calls to a set of "worker JVM".
    The interesting part of this question is in 2): How can I instantiate a [set of] new JVM from inside another JVM so the inside JVM are really their own processes? Only by having the multiple instances as separate processes I can overcome the problem of the single-threaded native lib becoming "quasi-multithreading"?
    The easiest approach would be likely to start new JVMs using the "Process" object and to start new JVMs with the usual shell scripts. But I'd like to have some more elegant ,-)) Is there any way to have this done in a better way?
    Thanks a lot,
    Soeren Gerlach

    Presumbly locking wouldn't work?Not really: Locking would mean that only one client/person could use the library using the Java wrapper. That in fact is the shortcoming I'd like to overcome by instantiate multiple processes.
    Thanks,
    Soeren

Maybe you are looking for

  • Lightroom 4.4: Only 3 thumbnails will display at a time in both Grid view and the Film Strip

    Hi. I have Lightroom 4.4. and Windows 7--both of which have been working fine for several months. Starting a few days ago, however, thumbnails have refused to load for any NEW photos I import. They appear gray/blank in both Grid view and the film str

  • Trying to install CS 5.5 on new macbook pro laptop (10.8.3) and having trouble :(

    hi there!  i'm trying to install CS 5.5 Design Premium on my new macbook pro.  i have the original dvds *with the serial number* but this new laptop doesn't have a dvd driver SO, i've downloaded the CS 5.5 files from the adobe site and i was hoping d

  • Nokia Lumia 710 WP 7.8 Equalizer

    Do Nokia realy think that WP 7.8 owners will buy Nokia once more??? We use it not only for calling we also listen music, but its inpossible with 7.8, the sound is like from deep hole, that why we need equalizer!!!! Do it pls!!!

  • BPC 7.5 NW Logc validation

    Hi to all, I have a logic to run allocation whrere allocation parameters (what, where, using and total) user variables defined at package level. In detail I have creater a package that contains %SEND% and %RECE%: both variables are built on the dimen

  • Multiple iCloud Backups (Issue Deleting)

    Hi, I noticed that my iCloud storage space has drastically dropped and crunching the numbers, they don't add up. I recently did a fresh install of my iPhone and wanted to restore my iPhone from an older backup. Low and behold, I found many older iPho