How to divide two int numbers and get a fraction ?

I am dividing two int numbers and the result should be a fraction but I am always getting a zero
set @result= @num1/@num2  
when num1=50 and num2=100

I am dividing two int numbers and the result should be a fraction but I am always getting a zero
set @result= @num1/@num2  
You can either one of the values as a decimal or float type, or just multiply one of the values by 1.0.
set @result= @num1/@num2*1.0
Dan Guzman, SQL Server MVP, http://www.dbdelta.com

Similar Messages

  • Cisco Aironet 1250 - How to bridge two AP's and get Non-root to talk to Root AP

    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin-top:0in;
    mso-para-margin-right:0in;
    mso-para-margin-bottom:10.0pt;
    mso-para-margin-left:0in;
    line-height:115%;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:Arial;
    mso-bidi-theme-font:minor-bidi;}
          I have two buidlings acroos the street from each other.  I have two Cisco Aironet 1250 wireless AP's with the first one going in the main building with network backbone.  The Second AP goes across the street with the other wired network segment.  Both AP's have long range antenas 2.4 GHZ on top of each building.  I have configured the 1st one as the Root Bridge.  The one across the street is configured as non-root bridge.  I have both AP's configured with the same WEP key and also with the same SSID name with both set to broadcast it.   I am still unsure and confused as to how I get the non-root bridge to talk to and use the root bridge to get on the main network.
            1- It’s main to use the Root parent Mac address.
            2-  Is there another config that I am missing to get the signal? 
    Note: I still not getting any signal from the root although distance between root and non-root is 330m
    My root antenna is AIR-ANT24120 and non-root antenna is AIR-ANT1949 and attached files is my configuration files
    Thank you.

    1.  How are the AIR-ANT24120 and the AIR-ANT1949 installed?
    the AIR-ANT24120 is connected virtically on tower far 11m from the earth and AIR-ANT1949 is connected horizontally on tower far 10m from the earth
    2.  What is the distance between both APs?
    350 m
    3.  Do you have clear line-of-sight between the two?
    there is one tanker in the middle between them but it's far 7m from the earth
    4.  Is the two APs properly aligned?
    i think yes and changed the aligned many times without any news (I don't have any tools for alignment)
    5.  Which point are the antennas connected to?  Primary, Secondary or middle?
    I tried in the primary and secondary but never tried the middle antenna
    Thanks

  • I "sent as gift" two songs to a friend. She can't find them. Are they sent to her in an email? Will they download during a sync? How can we recover the songs and get them to her iPhone?

    I "sent as gift" two songs to a friend. She can't find them. Are they sent to her in an email? Will they download during a sync? How can we recover the songs and get them to her iPhone?

    Try going to iTunes Store from the left column, then Account, then Purchase History, then Manage Gifts.

  • I am trying to fill in a form in adobe exportpdf. How can I fill in numbers and symbols? Parenthesis, dollar sign etc.

    I am trying to fill in a form in adobe exportpdf. How can I fill in numbers and symbols? Parenthesis, dollar sign etc.

    Hi;
    Can you provide a little more detail, maybe a screenshot?  ExportPDF only converts PDFs to other file types, what exactly are you using to try to fill out the form?  The two Adobe form filling tools I would recommend would be:
    1) Adobe Reader - a free download you can install on your computer and can be used to fill out most any form.  For numbers, symbols etc it can depend on the field you are entering data into, some fields have restrictions, but you would use those keys on your keyboard, if nothing is entered then that field probably has restrictions.
    2) Adobe Fill & Sign: https://cloud.acrobat.com/fillsign - using the Fill & Sign tab on the acrobat.com website you can fill out most PDFs.  To enter numbers, symbols, etc you would simply add them using your keyboard.
    Thanks,
    Josh

  • How to monitor OSD TS failure and get alert or report?

    How to monitor OSD TS failure and get some alert or generate an report?
    We have SCCM 2012 R2 CU1 with MDT 2013.
    I have checked the OSD reports in SCCM and everyone is emty, where do SCCM get data to the what to activate?
    (I thinking of "Task Sequence - Deployment Status" reports)
    I am not sure people read report manually or lock at the MDT monitor view. So best I think that generate an email or incident in Service Manager when an TS fails.
    We do have SCOM, SCSM, SCO.
    Is there anyone that can point what way or what option I have?
    /SaiTech

    Specifically you could use this Status Message Query syntax to monitor your Task Sequences for errors:
    select stat.*, ins.*, att1.*, att1.AttributeTime from SMS_StatusMessage as stat left join SMS_StatMsgInsStrings as ins on stat.RecordID = ins.RecordID left join SMS_StatMsgAttributes as att1 on stat.RecordID = att1.RecordID inner join SMS_StatMsgAttributes
    as att2 on stat.RecordID = att2.RecordID where att2.AttributeID = 401 and att2.AttributeValue = "DOJ200A1" and stat.SiteCode = "DOJ" and att2.AttributeTime >= ##PRM:SMS_StatMsgAttributes.AttributeTime## order by att1.AttributeTime desc
    Just replace DOJ200A1 with the Deployment ID of your Task Sequence and DOJ with your SiteCode.
    If you want to generate an alert if the TS fails then you could run a script that calls a utility (or similar) which sends a pre-configured email to a specified address (as an alternative to Torten's response). This could be placed in the built in error
    logging section of the SCCM integrated MDT Task Sequence when it fails which I assume you are using (right at the bottom, called Gather Logs and StateStore on failure).
    There are heaps of ways of generating an email from a TS and controlling error logging just do a search - as you have Service Manager you could even use your instance of Orchestrator and call a run book in your TS which does the email?
    Cheers
    Damon

  • I have a new iPad with wifi. When I send messages I can see my sons and my husbands but not my phone number.  We all have an iPad and all use the same apple ID as iPad the bill.  How can I remove their numbers and add mine?

    I have a new iPad with wifi. When I send messages I can see my sons and my husbands but not my phone number.  We all have an iPad and all use the same apple ID as iPad the bill.  How can I remove their numbers and add mine?

    Add another e-mail account to your messages, so people could reach you on that e-mail from messages. As soon as you are online (if you have wifi only iPad) you are able to send and receive messages. i.e. your son can send you a messages from his iPhone addressing it to your (that additional) e-mail address.

  • My assistant and I are using two Lightrooms (i.e. two serial numbers) and need to share between our two computers. I provide originals to her onto a flash drive. She tags them and returns them to me. I then copy the photos from her flash drive onto my com

    My assistant and I are using two Lightrooms (i.e. two serial numbers) and need to share between our two computers. I provide originals to her onto a flash drive. She tags them and returns them to me. I then copy the photos from her flash drive onto my computer and load them in my LR. The photos appear but witthout any editing or tagging. We need to be able to have her working on the photos on her computer with her copy of LR and me on my computer with my version of LR being able to access what is already tagged and given back to me. This seems hard. We need advice on if it is at all possible to have two computers simultaneously working on LR . I bought her her own version because I was told at the time of purchasing that that was the only way to share. Please advise urgently! Thanks.

    Sounds like your assistant isn't instructing Lightroom to write the tagging and editing to the files themselves, so wehn the files return to you, they don't have editing and tagging information. She need to select the photos in Lightroom and then Ctrl-S (Cmd-S on Mac). Or alternatively turn on the option to autmoatically write this information to the files.
    If you are using RAW photos, then this information will be written to a sidecar XMP file, and your assistant must provide you with the sidecar file. If these photos are not RAW photos, then the information is written directly into the photo file itself.
    Lightroom wasn't designed to be a multi-user program, and so it is truly not possible to have two people working on the same catalog at once. The way you are doing things, as modified above, is probably the way to go.
    As an alternative, you can transfer (portions of) catalogs as well as photos back and forth and then all of these issues disappear, but a catalog might be rather large for a flash drive (or maybe not, it depends)

  • Firefox 5 has lost all my chrome tab's and capabilities which came with 4? how do I un install 5 and get back to my version 4?

    firefox 5 has lost all my chrome tab's and capabilities which came with FF4? how do I un install 5 and get back to my version 4 & retain all my bookmarks at least I's also like to retrieve my Chrome capabilities as well?

    Firefox 4 requires at least OS X 10.5 and an Intel Mac. There is a third party version of Firefox 4 that runs on OS X 10.4/10.5 and PPC Macs, for details see http://www.floodgap.com/software/tenfourfox
    If you prefer, you can get the latest version of Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html
    Mozilla are working to prevent Mac users with non-compatible systems from getting the notification about Firefox 4, and also not displaying the "Download Firefox 4" button on http://www.mozilla.com

  • What is the best way to enlarge a part of a photo in lightroom?  How much cn you enlarge it and get

    what is the best way to enlarge a part of a photo in lightroom?  How much cn you enlarge it and get an acceptable result?

    The way I would do it would be to crop the image so that it only displays what you want, then export that image and specify the dimensions. You will have to experiment with different export sizes to determine what would be acceptable for your situation. You might be more forgiving or more demanding than anyone who would venture to answer that question. That's the nice part about digital photography; you can experiment to your heart's content until you get the result you are looking for.

  • How do I insert new record and get results on a landing page

    how do I insert new record and get results on a landing page

    It's not clear from your post what you are asking. In a SQL database, you use the INSERT statement to insert a row into a table. You use the SELECT statement to retrieve rows. Here's some basic info on how to do that within PHP
    PHP MySQL Insert Into
    PHP MySQL Select

  • When I'm bouncing a project, it freezes or doesnt stop bouncing and keeps going past its cut off. how do i make it stop and get back to normal?

    When I'm bouncing a project, it freezes or doesnt stop bouncing and keeps going past its cut off. how do i make it stop and get back to normal?

    Hi
    chorleyman wrote:
    you do have to actually define the area to be bounced in the dialogue window that comes up - there are some discrepencies in the way that the program behaves like that,
    Apart from the "Include Audio Tail" function, which can leave Logic bouncing for a very, very long time, there are generally, no discrepancies regarding the Bounce Locators:
    If Cycle is enabled, the bounce locators will be set to the cycle locators.
    If Cycle is off, and regions are selected, the bounce locators will be set to the selection.
    If cycle is off, and no regions are selected, the bounce locators will be set from the Project Start to the project end.
    It is smart to actually check that the bounce locators are set where you would like them to be.
    wildfire31 wrote:
    When I'm bouncing a project, it freezes or doesnt stop bouncing and keeps going past its cut off. how do i make it stop
    If you get caught with a bounce that does not stop, Command . (period) should do the trick.
    CCT

  • HT201210 I was updating my itunes on my ipad from my pc and my ipad has now shut down and shows a lock with arrow leading to itunes on screen. How do i unlock my ipad and get it working again?

    I was updating itunes on to my ipad from my pc and now my ipad has shut down and shows a lock with an arrow pointing to itunes. How do I unlock my ipad and get it back to working again?

    Make sure you have the Current Version of iTunes Installed on your computer
    iTunes free download from www.itunes.com/download
    Then... see Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...  Be sure to Follow ALL the Steps...
    Take your time... Pay particular attention to Steps 3 and 4.
    After you have Recovered your Device...
    Re-Sync your Content or Restore from the most recent Backup...
    Restore from Backup  >  http://support.apple.com/kb/ht1766
    Note.  Once the Device is asking to be Restored with iTunes... it is too late to save anything... and you must continue with the Recovery...

  • I was not aware of the automatic renewal of subscriptions and was chareged on 4/27 for another year of The Daily. How do I cancel the suscription and get reinbursed?  I have recently found how to manage and shut off future renewals. Can i get a refund?

    I was not aware of the automatic renewal of subscriptions and was charged on 4/27 for another year of The Daily. How do I cancel the suscription and get reinbursed? I have now shut off automtatic renewals. It would have been nice to know it was there to begin with!

    Edge has very clear restrictions, one being that you must have 6 months of clean payment history which you don't. Either wait until April 14, or good luck at Sprint.
    I am unsure how it can be determined the payment mix up was the fault of CS, but regardless, the mix up was done. There can be any number of reasons why a payment could be missed without any fault on your part, however you are still the responsible party for the account and must live with the repercussions.

  • HT2486 HOw do I transfer contact numbers and email address from my Mac to my new iphone?

    How do I transfer contact numbers and email address from my Mac to my new iphone?

    Connect your iPhone 4S to your Mac using the iPhone’s USB cable, and then use iTunes to transfer your contacts from to the iPhone. (An alternate way is to use iCloud.)
    I’m not sure what you mean by “transferring email address” from the Mac to the iPhone. But if you mean you want to access your email from the Mac and the iPhone, the best way is to configure your email account over IMAP in Mail on both devices.

  • Time machine: I get the following message: The backup disk image "/Volumes/Data-1/Clemens's iMac.sparsebundle" is already in use - what to do? Where and how do I find that file and get rid of it?

    time machine: I get the following message: The backup disk image “/Volumes/Data-1/Clemens’s iMac.sparsebundle” is already in use - what to do? Where and how do I find that file and get rid of it?

    I'm on Mountain Lion and have version 6.1 of AirPort utility so there is no button to "Disconnect All Users"and the only other option of "removing and re-selecting the drive via Time Machine Prefs" doesn't work either. So this will work.
    Launch Airport Utility and select the TC "Edit" button, then select the Disks tab. Deselect "Enable File Sharing" and click "Update". The TC will reboot then follow the same procedure and reselect "Enable File Sharing" and click "Update". After TC reboots again you'll be up and running. Not the neatest way to do it but saves having to unplug the TC which risks disk damage and the whole procedure takes less than a minute.The "Enable File Sharing" button seems to have replaced the "Disconnect All Users" button but with the slight disadvantage that it reboots the TC which takes up additional time.

Maybe you are looking for