What is the default value whe data type is numaric

dear
can you tell me the defult value of the coloum when we set it to numaric
i want to pull the data from the table using blank or default valu in that colum
i had done the following qry
SELECT T2.[U_NoofSpl] FROM [dbo].[@MINSPL]  T0 INNER JOIN  [dbo].[@SPLPLAN]  T1 ON T0.Code=T1.U_BasCode INNER JOIN  [dbo].[@SPLPANRF]  T2 ON T1.Code = T2.Code
WHERE T0.[U_ItemCode]='CON00001' AND
T2.[U_QtyTo]='' *
here i want to set the valu like = 0 or ''
thanks in advance

Hi Kishor,
Try This....
SELECT T2.[U_NoofSpl] FROM [dbo].[@MINSPL]  T0 INNER JOIN  [dbo].[@SPLPLAN]  T1 ON T0.Code=T1.U_BasCode INNER JOIN  [dbo].[@SPLPANRF]  T2 ON T1.Code = T2.Code
WHERE T0.[U_ItemCode]='CON00001' AND
T2.[U_QtyTo]=0
or
SELECT T2.[U_NoofSpl] FROM [dbo].[@MINSPL]  T0 INNER JOIN  [dbo].[@SPLPLAN]  T1 ON T0.Code=T1.U_BasCode INNER JOIN  [dbo].[@SPLPANRF]  T2 ON T1.Code = T2.Code
WHERE T0.[U_ItemCode]='CON00001' AND
T2.[U_QtyTo]=Null
Thanks
Shafi
Edited by: shafi_sunshine on Aug 23, 2011 1:44 PM

Similar Messages

  • What is the default value of boolean type transient attribute in VO?

    Hi All,.
    jdev version-11.1.2.1.0
    i have created one vo based on eo where i add one boolean type transient attribute Marked(uihint checkbox).
    now i have apply view criteria on this vo.
    like---
         ViewObject vo=getView(iterator);
         vo.setQueryMode(ViewObject.QUERY_MODE_SCAN_VIEW_ROWS);
         ViewCriteria vc=vo.createViewCriteria();
         ViewCriteriaRow vcr=vc.createViewCriteriaRow();
         vcr.setAttribute("Marked", "true");//Setting attribute on view criteria.
           vcr.setConjunction(ViewCriteriaRow.VCROW_CONJ_AND);
           vc.setCriteriaMode(ViewCriteria.CRITERIA_MODE_CACHE);
         vo.applyViewCriteria(vc);//Apply view criteria on vo.
         vo.executeQuery();
         vc.add(vcr);
       vo.executeQuery();this code running fine and that is selected only those row which i have cheked.
    but now i want to apply view criteria that select select those rows that are not checked.
    like-
    vcr.setAttribute("Marked", "false");but it is not return any row.
    if select checked any row and then uncheked that row so marked attribute for this row set false. but rows that are unchecked by default not return.
    so my question is that what is default value of Marked attribute when user not take any action i will try
    vcr.setAttribute("Marked","null");
    but not working.

    i have tried this but this is not working.
    follwing code working for Null case not for False
    vcr.setAttribute("Marked","is null"); this code display all rows who has null but when i checked any row and then unchecked so that row get value "false" also not display.

  • How to set default value to date type attribute.

    Hi,
    How to set default value to date type attribute.
    E.g I want to set u201C01/01/1999u201D to date attributes.
    First i want to set value and then i want to fetch the same & want to check equals.
    please suggest solution.
    Regards,
    Smita

    Hi,
    In wdinit() method u can set the date
    DateFormat df = new SimpleDateFormat("MM/dd/yyyy");
    Date today = Calendar.getInstance().getTime();
    String reportDate = df.format(today);
    wdContext.currentContextElement().setFromDate(reportDate);
    Another way you have set the this formate like that
    1. Create a Simple type under "Dictionaries->SimpleType" called DateFormat
    2. Select the type as "date"
    3. Go to the "Representation" tab and set the format as "dd/MM/yyyy" (or whatever u want, but month should be MM)
    4.Bind the context attribute to the type created now.
    Hope this helps u.
    Best Regards
    Vijay K

  • SRM 4.0- How to set the default values for product type (01) only for SC

    The radio button “Service” should not be visible.
    Also for search help (e.g. search for internal products) where a search should only be possible for product type 01 (goods). The system should not display the product type and internally always search for goods only.
    How to set the default values for product type (01) only for SC
    We needs to use Search help BBPH_PRODUCT which having parameter PRODUCT_TYPE
    Here we can set defalut value 01 but it is not correct one since same search help is using several places.
    We need to limit the search help results only for SC.
    Kindly help out me ASAP.

    The easiest way to set defautl values is to edit the batch class.
    Goto the characteiristic and go to update values.
    In here you probably have something like 0 - 100 as a spec range.
    On the next line enter the default value within this range.  At the end of the line, click in the box in the column labelled "D".  This indicates the defautl value for the characteristic.
    If you need to you can do this in the material classification view as well.
    Just to be clear, these values will only show up in the batch record.  You can not have defautl values in resutls recording screens.
    FF

  • What is the default value of EO_INBOUND_PARALLEL

    Hi Gurus,
    We are on PI 7.0 EHP 1. We have not set the parameter EO_INBOUND_PARALLEL. Does this mean there is only one inbound queue registered by default if the default value is 1? However, I seem to recall that when we had issues with messages stuck in queues, I have seen more than one XBTI8 queues.
    Please help me with my doubt. thanks!

    Hi,
    Thanks for the replies.
    How about the parameter EO_INBOUND_TO_OUTBOUND and EO_OUTBOUND_PARALLEL?
    I assume by default EO_INBOUND_TO_OUTBOUND is set to 1?
    Then what is the default value for EO_OUTBOUND_PARALLEL? Plus to set this parameter you need to specify the receiver, in this case, is it true that EO_OUTBOUND_PARALLEL is not set at all so only one outbound queue? this does not make sense. Or maybe by default EO_INBOUND_TO_OUTBOUND is set to 0 so EO_OUTBOUND_PARALLEL is not used at all?
    Thanks.

  • What is the size of number data type.

    what is the size of number data type (in term of memory storage ;byte ).
    Does it make different in size if mention number(38,0)?
    Thanks all in advance...:)
    Edited by: user10648897 on Jan 7, 2009 6:43 AM

    NUMBER (p,s)
    Number having precision p and scale s. The precision p can range from 1 to 38. The scale s can range from -84 to 127.number(38,0) = number(38)
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14196/schema002.htm#sthref472

  • What is the default value of Vector?

    what is the default value of the Vector? now another main thing i have generate one vector with fix size like
    Vector v=new Vector(5);
    now the thing is that suppose i add sixth element at that time it's size will be 10 or will be 15.
    Vector v1=new Vector(15);
    now i add 16 the elment so at that time vector size is 25 or it will be 30??

    ya i get it your point let's i explain which i understand from your side ok
    Vector v=new Vector(10,15)
    so in this case it's size is 10 right when i add 11the element at that time it's size is 25 right?
    Vector v1=new Vector(5);
    in this case the it's size is 5 right and when i add 6th element at that time it's size will be double in short 10 in this case right.
    Vector v2=new Vector();
    in this case the default size is 10 right when i add 11th element at that time it's size is 20 right
    If my understanding is wrong then pl'z explain this thing with examples
    waiting for your reply.

  • What is  the default value of iterator's rangesize in pageDef.xml

    there are two jspx file,one named by browsePage,another editPage.they use the same VO. and i can go into editPage from browsePage by commandButton or commandLink .
    the rangesize of the iterator in browsePage is 10, like this
    <iterator id="SysTabColorView1Iterator" RangeSize="10"
    Binds="SysTabColorView1"
    DataControl="SysManageAppModuleDataControl"/>
    usually in editPage, it like the following
    <iterator id="SysTabColorView1Iterator" RangeSize="10"
    Binds="SysTabColorView1"
    DataControl="SysManageAppModuleDataControl"/>
    now i have a question ,when i dont set the value of RangeSize in editPage, what is the default value of this iterator.
    other business, when i set the value to 1 , it will occur the famous error ,
    JBO-

    Hi,
    if you are browsing to the edit page from the browse page it doesn't matter what the range size is. If you've navigated though the ranges on the browse page then you will be in the correct range set and ranging won't be a problem.
    Brenden

  • What are the default values for "default if unwired"?

    How do you know what the default value for an object will be...if using a "use default if unwired" with an event case?
    Is there a listing somewhere of what default values will be?
    Thank you,
    cayenne

    tst wrote:
    Personally, I would highly recommend disabling this on every single tunnel coming out of an event structure (with the possible exception of the tunnel going to the loop's stop terminal). If you use this option, you are almost guaranteed to forget to wire a required value into a tunnel at some point in the future when you add a new case.
    More generally, I think that this option should not be the default for these tunnels. You can see more about this here and I would suggest voting it up if you agree with it - http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Outp​ut-tunnels-from-event-structure-should-default-to-​...
    VERY much agreed!  Disabling the "default if unwired" option makes absolutely certain that you have considered the correct value for every case.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • What are the default values for dom.max_chrome_script_run_time for FFVersions 25 through 30 ?

    I have run across issues that creep up. The timeout setting of
    dom.max_chrome_script_run_time
    seems to be 20 seconds in FF 25.0.1 and 10 seconds in FF 30
    I was wondering if you have release notes for all versions from
    [25, 30] so that I can know all of the different timeout values?
    Thanks,
    -Charlie

    Can you post a screenshot that shows a different default value of one of those prefs?
    Note that it is possible to modify the default value via a mozilla.cfg file in the Firefox program folder.
    See:
    *http://kb.mozillazine.org/Locking_preferences
    *http://mike.kaply.com/2012/03/16/customizing-firefox-autoconfig-files/

  • What are the default values for the NetStream.multicast***** properties

    I read the api document about NetStream.multicast**** properties, but found no default values were given. Will the default values be changed when FP10.1 release?? Or, the values are always changing at runtime?
    I have a web-tv application, it broadcast some live videos created by my friends, I think that the latency and lag-time can be bigger in my app, I want to know the recommended default values for the multicast*** properties.
    I think the multicastWindowDuration and liveDelay are the keys. And I am confused between NetStreammulticastWindowDuration and NetStream.bufferTime..they like the same...
    Sorry for my poor english, Thanks.

    the publisher can set the multicast properties you listed to be the defaults for all of the subscribers of the stream.  in addition, the publisher can select whether or not "push" mode is used by changing NetStream.multicastPushNeighborLimit.  setting the limit to 0 disables push, setting it to non-zero enables push in the mesh, but only changes the actual push neighbor limit for the publisher.  if push is enabled for the stream, each peer will use push mode, but will start out with the global default limit (which is currently 4).  this is for safety.  we recommend you always leave push enabled.
    each peer (including the publisher) can change the multicast stream parameters dynamically.  changes are local to that peer.
    for the publisher to set the initial parameters for the stream that all peers will inherit as the default, the parameters must be changed on a new NetStream *before* NetStream.publish() is called.  example:
       var ns:NetStream = new NetStream(netConnection, groupSpecification);
       ns.multicastWindowDuration = 10; // change default for everybody
       ns.publish("mystream");
       ns.multicastWindowDuration = 15; // change window duration just for publisher, everybody else will start with 10 for this stream
    each subscriber can override the multicast stream properties locally, but the overrides must be set on the NetStream *after* receiving a NetStream.MulticastStream.Reset NetStatusEvent.NET_STATUS event in order for the override to stick.  overrides must be reapplied each time the NetStream.MulticastStream.Reset event is received.

  • What is the default value of  license_max_users in oracle 9i/10g

    hi,
    may i know the default value of license_max_users in oracle 9i/10g.
    plz reply the solution.
    thanks.

    user10492712 wrote:
    may i know the default value of license_max_users in oracle 9i/10g.Consider (as a typical Oracle professional might do):
    - This sounds very much like an Initialization Parameter.
    - Initialization Parameter defaults, descriptions, usage and warnings are documented in the Oracle Database Reference manual
    - The Reference manual is part of the doc set
    - The doc set is available at http://tahiti.oracle.com
    For your convenience, the information is at http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams093.htm#CHDBJCJC

  • Default values for data types

    what are default values for all the data types that exist  in abap
    Title was edited by:
            Alvaro Tejada Galindo

    Hi
    For CHAR data type default is SPACE
    for INTEGER,PACK and FLOAT types it is ZERO '0'
    for NUMERIC also so many Zeros
    for Time(TIMS) it is 6 zeros and Date(DATS) it is 8 zeros
    Regards
    Anji
    Message was edited by:
            Anji Reddy Vangala

  • What are the different values available for type attribute

    Hi,
        I am working with IDOC to Stored Procedure. For each field we need to give the values for 'isInput' and 'type' attributes. I need to pass values for 'datetime' and 'numeric' fields. What are the list of values availabIe for 'type' attribute. I know only about 'CHAR' attribute.
         Can anybody please tell me what all the values availabe for attribute 'type'. I am facing this problem while giving the value for type attribute.
    Thanks in Advance,
    Murthy.

    Does this help
    tring
        Data that contains a combination of letters, numbers, and special characters. String data types are listed below:
    CHARACTER: Fixed-length character strings. The common short name for this data type is CHAR.
    VARCHAR: Varying-length character strings.
    CLOB: Varying-length character large object strings, typically used when a character string might exceed the limits of the VARCHAR data type.
    GRAPHIC: Fixed-length graphic strings that contain double-byte characters.
    VARGRAPHIC: Varying-length graphic strings that contain double-byte characters.
    DBCLOB: Varying-length strings of double-byte characters in a large object.
    |BINARY: A sequence of bytes that is not associated with a |code page.
    |VARBINARY: Varying-length binary strings.
    BLOB: Varying-length binary strings in a large object.
    |XML: Varying-length string that is an internal representation |of XML.
    Numeric
        Data that contains digits. Numeric data types are listed below:
    SMALLINT: for small integers.
    |INTEGER: for large integers.
    |BIGINT: for bigger values.
    DECIMAL(p,s) or NUMERIC(p,s), where p is precision and s is scale: for packed decimal numbers with precision p and scale s. Precision is the total number of digits, and scale is the number of digits to the right of the decimal point.
    |DECFLOAT: for decimal floating-point numbers.
    REAL: for single-precision floating-point numbers.
    DOUBLE: for double-precision floating-point numbers.
    Datetime
        Data values that represent dates, times, or timestamps. Datetime data types are listed below:
    DATE: Dates with a three-part value that represents a year, month, and day.
    TIME: Times with a three-part value that represents a time of day in hours, minutes, and seconds.
    TIMESTAMP: Timestamps with a seven-part value that represents a date and time by year, month, day, hour, minute, second, and microsecond.
    Regards
    Ravi

  • Conversion failed when converting the nvarchar value to data type int when returning nvarchar(max) from stored procedure

    Thank you for your help!!! 
    I've created a stored procedure to return results as xml.  I'm having trouble figuring out why I'm getting the error message "Conversion failed when converting the nvarchar value '<tr>.....'
    to data type int.    It seems like the system doesn't know that I'm returning a string... Or, I'm doing something that I just don't see.
    ALTER PROCEDURE [dbo].[p_getTestResults]
    @xml NVARCHAR(MAX) OUTPUT
    AS
    BEGIN
    CREATE TABLE #Temp
    [TestNameId] int,
    [MaxTestDate] [DateTime],
    [Name] [nvarchar](50),
    [Duration] [varchar](10)
    DECLARE @body NVARCHAR(MAX)
    ;WITH T1 AS
    SELECT DISTINCT
    Test.TestNameId
    , replace(str(Test.TotalTime/3600,len(ltrim(Test.TotalTime/3600))+abs(sign(Test.TotalTime/359999)-1)) + ':' + str((Test.TotalTime/60)%60,2)+':' + str(Test.TotalTime%60,2),' ','0') as Duration
    ,MaxTestDate = MAX(TestDate) OVER (PARTITION BY TM.TestNameId)
    ,TestDate
    ,TM.Name
    ,Test.TotalTime
    ,RowId = ROW_NUMBER() OVER
    PARTITION BY
    TM.TestNameId
    ORDER BY
    TestDate DESC
    FROM
    Test
    inner join TestName TM on Test.TestNameID = TM.TestNameID
    where not Test.TestNameID in (24,25,26,27)
    INSERT INTO #Temp
    SELECT
    T1.TestNameId
    ,T1.MaxTestDate
    ,T1.[Name]
    ,T1.Duration
    FROM
    T1
    WHERE
    T1.RowId = 1
    ORDER BY
    T1.TestNameId
    SET @body ='<html><body><H3>TEST RESULTS INFO</H3>
    <table border = 1>
    <tr>
    <th> TestNameId </th> <th> MaxTestDate </th> <th> Name </th> <th> Duration </th></tr>'
    SET @xml = CAST((
    SELECT CAST(TestNameId AS NVARCHAR(4)) as 'td'
    , CAST([MaxTestDate] AS NVARCHAR(11)) AS 'td'
    , [Name] AS 'td'
    , CAST([Duration] AS NVARCHAR(10)) AS 'td'
    FROM #Temp
    ORDER BY TestNameId
    FOR XML PATH('tr'), ELEMENTS ) AS NVARCHAR(MAX))
    SET @body = @body + @xml +'</table></body></html>'
    DROP TABLE #Temp
    RETURN @xml
    END
    closl

    Your dont need RETURN inside SP as you've declared @xml already as an OUTPUT parameter. Also you can RETURN only integer values using RETURN statement inside stored procedure as that's default return type of SP.
    so just remove RETURN statement and it would work fine
    To retrieve value outside you need to invoke it as below
    DECLARE @ret nvarchar(max)
    EXEC dbo.[P_gettestresults] @ret OUT
    SELECT @ret
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Maybe you are looking for

  • Oracle error "ORA-01843: not a valid month" when trying to run sqlldr

    Hi all, I'm trying to load some data into a staging database via a CSV file using sqlldr, and am running into an issue where it doesn't like the date format I'm using. Here is my input data: 2012-01-09 16:28:12 -05:00Here is the entry in the .ctl fil

  • Bex dynamic header problem

    Hi All, I have 2 problems.. 1) I have to print the vendor statement of account for 1 year. Now for each vendor the vendor code name and address comes followed by other columns of account information related to it. My requirement is that i want the ve

  • Garageband 11: lagging or unresponsive interface; frequently crashes; and is using way too much memory

    Since updating to the newest version of Garageband I've noticed a distinct slow down in interface and functionality; makes editing incredibly difficult having to wait 2-3 seconds after selecting a note or section; sometimes the whole app becomes unre

  • Problem after securing network

    I secured my network and now i can't use my network on my work laptop. According to my deskside support i need to figure out my SSID. How do i find my encryption type? Where can i find my password or network key?

  • Problem putting music on my zen micro. Pleease help

    Okay, so i'm having a problem syncranizing my music onto my zen micro for some reason. I've had my my zen micro player for almost a year and i've always been able to sync music onto it with no problem but i haven't put any new music on it for about a