SQL and Log!

Hi all
I am facing problem in the calculation of LOG base 2 for 0.33

I used this
 
select log(0.33,2) from dual;
the results that showe me is
-0.62521
but the correct answer is
-1.58
y at - it an idea.

Thank you very much
Isabelle

Hi, Isabelle,

Isabelle wrote:
Hi all
I am facing problem in the calculation of LOG base 2 for 0.33

Whenever you have a problem with a built-in function, check the Manual of the SQL language to know if you uisng it correctly. I find certain features not intuitive.

I used this


select log(0.33,2) from dual;

The first argument of JOURNAL is the basis. I think you have the opposite arguments.

the results that showe me is

-0.62521

but the correct answer is

-1.58

Do you mean - 1.5994621...? (Remember,.33 is not quite equal to 1/3).

y at - it an idea.

Try

LOG (2, .33)

or

LOG (2, 1/3)

Tags: Database

Similar Questions

  • Peformance Gain for a different drive for the SQL Server data and log (VM) file?

    Hello

    It is suggested to separate SQL Server 2012 data and log files in different drive for VM.  Is there a performance gain if two of them resided in the same logical (Partition VMDK) unit number?  OR should they (different dives) in different LUNS (Partition VMDK)?

    Thank you

    The General mantra in the physical world goes as follows:

    For optimal performance, you need to separate logs and database of transactions on different physical disks (e.g. disks) stacks.


    This general concept applies naturally agnostically to virtual workloads as well. It essentially translates to:

    For performance, you should put the files of database transactions on various resident on different LUNS VMDK or use separate RDM. You should also use a separate vSCSI controller to each VMDK/RDM as the controller has its own IO queue.

    There is a point more important which is often neglected in the physical and virtual world in particular:

    Ideally, you should make sure that your physical LUN for logs and DB are not a group of common disk same stacks of physical disks. This violates the general concept above.

  • SQL and Exchange on the same material - need help with storage!

    Hi all!

    I am definitely a newbie in the world of virtualization.  A colleague and I have spent hours scouring the Internet and reading white papers for answers and have been unable to find exactly what it takes.  So far, there has not been a lack of trying.  We are a very small company with 75 employees.  We have an Exchange Server and implement our first SQL Server and we want to virtualize both on hardware nine using the ESX 4.0 Essentials.  I don't know, probably not the best two apps to virtualize on a single piece of hardware, but we have about 12 people, using SQL server... at least for the foreseeable

    the future.  I'll try to make this simple in my questioning:

    (1.) what is the difference between a logical unit number, a PIN, a VMFS, a VM data store and how they relate to each other?  I know what means LUNS and VMFS and I know what a brooch is a hard drive, so no links to wikis on the definition of a LUN ;-).  Been there, done that.   These terms seem to be used very freely in all directions and it's confusing about how they relate to storage.

    (2.) we have 6 146 GB SAS drives for storage on my HP ML350G6, the config that I want to work with is the following:

    2 hard drives - RAID 1 - held Exchange OS, T-logs Exchange and SQL OS (possibly install VCenter Server on that as well in another virtual machine)
    4 hard drives - RAID 10 - will hold the Exchange and SQL DB database.

    Y at - it faults with this configuration?

    (3.) if #2 above is OK, how you (and you should in our small store scenario) cover several RAID (spindle?) arrays with a virtual machine.  In other words, how to you create a virtual Exchange computer and upgrade the operating system on a RAID, newspapers on the same value but different partition RAID and the Pb on a completely different RAID set?

    (4.) if #2 not OK, I should just create 2 simple VM Exchange, a for SQL and worry not separate newspapers/operating systems of databases on RAID berries?

    I thank you very much in advance!  These forums are wonderful!

    Confused in Cincinnati,

    -Bryan

    Thanks for your reply Wes!   I have a few questions for follow-up

    make sure that I understand.

    Therefore a unit logic simply number a "partition" carved on a storage space (if that)

    storage is a single hard drive or a RAID array)?   And of course each hard

    drive is a PIN, but when you take 3 discs and their RAID together.

    they, in fact, become a PIN, especially when it comes

    on reduncanc and no performance?

    VMware "" still does not see the storage, particularly the way in which you install. ESX will simply see a drive, format it with VMFS, so you can create files of your virtual hard disk on top of that (.vmdks) and your virtual configuration (.vmx)

    I'm not sure I understand the concern with VCenter Server?   It can not

    be on the same box as ESX running a VM couple?   My opinion is that

    VCenter Server would be just an another VM on this box?   Maybe I need to

    Read more on the VCenter Server!

    vCenter may work in esx, but it is preferable to have an another box, also don't forget that vcenter has its own SQL database and needs 3 + GB of ram. In your configuration, you can do better leaving vcenter out of the picture completely.

    Thanks again!

    -Bryan

    More like this:

    RAID 1 array: LUN1-> Datastore1-> ExchangeOS.vmdk, ExchangeLogs.vmdk, SQLOS.vmdk RAID 10 Array: LUN2-> Datastore2-> ExchangeDB.vmdk, SQLDB.vmdk

  • How to access Mobile Oracle using PL/SQL Server logs?

    I started using Oracle solutions, so I'm a complete newbie.

    I am doing a project which requires to newspapers to mobile devices using the Oracle Mobile Server (integrated into Oracle Database Lite).
    The mobile server has services that I could use or do I interpret log files?

    Thanks in advance for all support!

    Published by: Hugo Zenha on April 15, 2009 07:40

    Details of base for sync history is MOBILEASDMIN. C$ SYNC_HISTORY. This will give you the id of the customer (name), start and end times, success or failure (and error if failure) as well as the total volume of data uploaded and downloaded.

    You can get more details by joining with c$ sync_his_pub_items on session_id, and this gives details of each downloaded table (phase = UPLOAD) regarding the timings and records and the same for the download. Upload tends to be the complete set of tables (records = 0 for no activity), while the download is only active tables and includes a full refresh occurred

    You can get information for the MGP process via mgp_history c$ and c$ mgp_his_clients

    As all the repository data is stored in the database, there are a lot of possibly interesting things if you look through it.

    We use SQL and PL/SQL to make reports on different users with clocks in a loading time and identification of customers having problems

  • My iPhone 6 s + has been stolen. I got the code to access and iCloud, and I putted in find my iPhone. Here illegally, could unlock iPhone and log in icloud.

    My iPhone 6 s + has been stolen. I got the code to access and iCloud, and I putted in find my iPhone. Here illegally, could unlock iPhone and log in icloud. I only had reference no.. MKV82LL/A, Series n F2 * RWV on the packaging. I wonder how do I get it back?

    < personal information under the direction of the host >

    Hello Miss116,

    I am so sorry your iPhone was stolen, it's a terrible feeling, and I'm here to help you with everything I can.

    1. go to a computer and go to iCloud.com and sign in with your Apple ID and password.

    2. go find iPhone and all devices at the top, click on your iPhone.

    3. click on lost Mode and put in a phone number where you can be reached.

    4. click Next, then enter a message that says something along the lines, "Please find my iPhone, please call this number to return."

    5. click on done

    Best wishes to get your iPhone back safely.

  • Just create a boot SSD drive. You want to minumize what Mozilla wrote in the SSD. You want to change Max and log locations not SSD drive. Anyone know how?

    Just create a boot SSD drive. You want to minumize what Mozilla wrote in the SSD. You want to change Max and log locations not SSD drive. Someone knows how, I could not find where it change?

    See http://kb.mozillazine.org/browser.cache.disk.parent_directory

    You can also install portable Firefox version, if you want to run Firefox on a disc of SS.

  • continuous measurement and logging, LV2014

    In LabView 2012, I examined how project templates QueuedMessageHandler and the measure continuously and logging (CML). In addition, there are all of a lengthy and detailed documentation for the QMS. There is a much shorter documentation for CML, but readers of mention the QMS, given CML is based on this project template of course.

    I just got LV2014, and I began to consider the continuous measurement and model of forestry (DAQmx) inside LabView 2014 project. There is here a change which is not documented: a state machine additional typedef enum in the loop of paremeter. But there is no change in the QMS 2014 version, while this change is not explained in detail.

    You can direct me to some docs or podcasts more explaining the feature of the new version of CML?

    Also, when I try to run the continuous measurement and model of forestry project (DAQmx), just to see how it works, I see strange behavior: even though I always select "connect" in the trigger section, force the trigger button starts to blink, and two messages begin to iterate through the channel indicator : logging and waiting for release. But I always chose "log" is this a bug?

    I was reading an "interesting debate" since the year last too:

    http://forums.NI.com/T5/LabVIEW/buggy-LabVIEW-templates-amp-courses/TD-p/2298766/highlight/true/page...

    I understand that these models are only starting points, but I'd be very happy for some documentation to understand how to properly use these models (I was quite OK with the original models, but the new ones obtained more complex due to the state machine).

    Thanks for the tips!

    Hello

    The additional Typedef is necessary to ensure that only data acquisition-task is started.
    This is because the mechanical action is defined as "lock when released. For example, when you press on the
    Start button, then release, the changes of signal from false to true, and then it goes from true to false.
    It would be two events. During the first event, a new Message is created. Now, when you take a look at the "Message loop will vary."
    you will also see an additional type of def. In this VI data acquisition task is created and started. The problem now is the second event.
    Now another Message is created to start an acquisition process. And if another task-acquisition of data is started, you would get a problem with LabVIEW and DAQ hardware.
    But due to the fact that in the loop of the Acquisition, the State has the value of Acquisition with the first Message, the second Message does not start another DAQ-task.

    In the QMH there no need of this, because you don't start a data acquisition task.

    Two indicators during indexing, strength of trigger is set to false. If the program connects
    and force trigger is disabled. After the registration process, the flag is bit set to Wait on trigger
    because, as already stated, it is disabled. Now Force trigger is true once again, and it connects again. This process
    is repeated and the indicator is switching between these two States.
    When you open the VI "Loop of Message Logging", you will see that the trigger for the Force is set to false.

    Kind regards

    Whirlpool

  • Measure continuously and logging LV2014

    Hello

    I consider the LMC model located in LabView 2014. He's very nice, I'm learning a lot while playing with this model. However, because of the very minimal documentation (virtually zero), some things are unclear why he implemented?

    1, in the UI Message Loop, the business structure has a case of 'leave to confirm. In my view, this case can never get triggered because the stop button is disabled during data acquisition, why is that? I guess to give an example, if someone wants to activate the option to close the application during data acquisition without stopping the acquisition of data?

    2, because it is not explained in the documentation, could someone explain the behavior of the enum type def in the loop of user interface messages? I think that understand that, before stopping the acquisition of data, we are certainly on the first data acquisition is stopped. Second, all the data is stored, so the loop of logging can also be stopped and finally we can go to the idle state, and the "status update" message can be broadcast. Am I wrong? Somehow, it's still a little "fuzzy" for me...

    Thanks for the help!

    Kind regards

    1. confirm that Quit is activated if you click on the Red 'X' to close the main window VI during an acquisition.

    2. Yes, we must ensure that the acquisition and logging loops are in an idle state before you can close the application. It is the purpose of the enum status user interface.

    Our documentation team has already a task update documentation to discuss these issues (it is followed in CAR 397078).

  • Problem with WSUS after upgrade of SQL and SCCM

    A few years ago, we implemented SCCM 2012 R2 on a virtual machine running Server 2008 R2 (Enterprise), using 2012 SQL for databases.  We use it for software deployment, updates/patches via WSUS and imagery of the network.  Everything is smooth enough for most, even if we hit a few snags Windows 10 points when that came out.  After you install the patches and updates to our Server 2008 box to make it compatible with Windows 10 content, everything was good again.  A few weeks ago, I decided to update our version of SCCM 1511 and SQL for 2014.  After the two updates, I tested imaging and software deployment, and everything seemed good.  I forgot WSUS, however... and later visited account it was not working properly for these updates.  Unfortunately, I realized after I deleted the VM snapshot, I got to thinking that everything was good (stupid, I know).  After researching and discovering some of the errors were permissions associated with - why would have changed the permissions on folders of SQL and SCCM upgrade I have no idea - those who have since been smoothed.  Now, my mistakes seem to be related SQL more and I hit a dead end with research.  When I opened WSUS and go look at the clocks, he tries to load the history of synchronization, and after a few minutes-error with the following information:

    The WSUS administration console failed to connect to the WSUS server database.

    Verify that SQL server is running on the WSUS server. If the problem persists, try restarting SQL.

    System.Data.SqlClient.SqlException - Timeout expired.  The delay before the end of the operation or the server is not responding.

    WARNING: The join order has been applied because a local join hint is used.
    Source .Net SqlClient data provider
    Stack trace:

    to Microsoft.UpdateServices.Internal.BaseApi.SoapExceptionProcessor.DeserializeAndThrow (SoapException-soapException)

    at Microsoft.UpdateServices.Internal.DatabaseAccess.AdminDataAccessProxy.ExecuteSPGetSummariesPerUpdate (String computerTargetScopeXml, String preferredCulture, String updateScopeXml, ExtendedPublicationState publicationState)
    at Microsoft.UpdateServices.Internal.BaseApi.UpdateServer.GetSummariesPerUpdate (UpdateScope updatesToInclude, ComputerTargetScope computersToInclude)
    at Microsoft.UpdateServices.UI.AdminApiAccess.BulkUpdatePropertiesCache.GetUpdateSummaries (UpdateScope updateScope, ComputerTargetScope computerTargetScope)
    at Microsoft.UpdateServices.UI.AdminApiAccess.BulkUpdatePropertiesCache.GetAndCacheUpdates (ExtendedUpdateScope updateScope, ComputerTargetScope computerTargetScope)

    at Microsoft.UpdateServices.UI.SnapIn.Pages.UpdatesListPage.GetListRows)

    I found a few forums that suggest to uninstall WSUS and delete the database, and then reinstall WSUS.  Unfortunately, when I try install fails... giving only an error code and no other explanation of why.  The error is 0 x 80070643, which is supposed to be due to the current user not having the "sysadmin" in SQL.  However, I have tried with several accounts I checked to make you have the sysadmin role in SQL (and are also part of the Administrators group on the server itself)-always get the same error message.

    I would really like to try to find that rather than wasting his time with the construction of a new server and redo our whole SCCM environment... get the client reinstalled on all our machines to synchronize with a new server appears as a huge headache.  Is there anyone else out there who know what would cause this?  Any help would be greatly appreciated!

    Hello

    This community is for users.

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    SQL Server TechNet forums.

    https://social.technet.Microsoft.com/forums/SQLServer/en-us/home?category=SQLServer

    See you soon.

  • Difference between standard edition SQL and SQL workgroup edition

    I'm buying the processor SQL License. I'm looking for the standard edition of SQL, but the SQL workgroup edition is less expensive. I wonder what the difference is in two versions

    Hi DBBurns,

    This document compares the editions of SQL and should answer your question. If you need help, your questions there will be better answered in the Forums of SQL.

  • acquire, analyze, and log data using the technique of the statemachine

    I'm technical state machine learning to develop code to acquisitoin of data and logging. I think I wrote the correct code for this purpose, but I couldn't have done the following:

    All the values(>0) of warning should appear on table 1 d on the façade. The code is written only the first value.

    All values must be recorded using to write to the palette of the spreadsheet and written on the excel sheet. Code is only writing first value.

    I wonder what is the error. The code I created is attached, I would be grateful if someone fix the code and post in response.

    Thank you in advance for help

    See you soon

    Hi kwaris,

    "What is the error": well, you use a lot of unnecessary conversions. Really a lot of...

    Why do you convert a dynamic scalar value, then convert to table, then index an element of the array? Why convert to dynamic when everything you needis a simple "build table" node?

    OK, I've included a shift register where you will store your table. It of just a simple 'how to', but not the best solution for all cases. But it should give you a clue...

  • Continuous measurement and logging model - Hang-Up of may because of the lost output

    The model of continuous measurement and logging in LabVIEW 2012SP1 has a flaw in the Acquisition and recording loop.

    Stop messages manager ignores all messages in the queue of messages. The note says:
    "Stop - empty the queue of all pending messages 'Connect'. Close the reference of TDMS files. "See the picture below.

    This concept breaks if the output message is issued while the Stop message is being processed. The time gap critical to do this is small, because the issue is posted on the front of the queue. But it depends on the treatment in the case of the Manager to stop. Large or small - it can happen.

    The symptom is the application block in an infinite waiting on the queue of message - all commands have no effect, as the rest of the loops are completed. Break terminates the application. Pause button doesn't work anymore. (see this entry forum)
    This problem may appear only after enforcement has become more complex and the schedule has changed - the fresco made model works and does not reveal the question.

    The cure: first of all I thought to preview the elements of the queue before they are scrapped selectively, one by one in the loop to stop, but that usually is not working either, because the output can happen precicely in the laps of time between overview and dequeue - don't forget no outputs are displayed on the front of the queue.

    I think the best option is to replace the flush of the queue in the Stop messages with a selective messages waiting managers one by one and check if the output is - if so, reseat it in the front of the queue. All other messages are discared. That look like this, have seen interesting parts...

    Here is the message loop to stop with the problem highlighted.

    As I'm not mistaken, I think it's better that NEITHER updates the model to avoid this problem.

    Here is the case of the resting State in the case of stop message:

    Us do not hang the CPU run a constant stream of messages ineffective because we only "Log" enqueue messages when we are in the valid state logging (a State of rest here is again a passthrough).

    The worst case, it's that there are number of register requests already in the queue when the system shuts down. After receiving the stop idling message, state transitions and other Log messages become non - ops due to the State.

    I consider the opportunity to post a few screws update

    ~ Simon

  • When I turn on my PC and before opening of session (before entering password and log in) internet connection exists?

    When I turn on my PC and before opening of session (before entering password and log in) internet connection exists?

    Yes.  The network stack is active as soon as Windows is running.  You can prove this by yourself, if you wish, if you can review your summary router network.  It should show the PC in question as being active.

  • Folder my documents opens at startup and log on

    Folder my documents is opens at startup and log on how to stop why it behaves?

    See if it works (I'm not your configuration): Command Options Panel\Folder.
    Select the VIEW tab, uncheck the RESTORE PREVIOUS FOLDER WINDOWS at the CONNECTION.

    Here's another option to remove this problem: http://www.technize.com/my-documents-folder-opens-at-windows-startup/.  Make sure that you are in the registry and I would only delete the Documents folder reference rather than all - but it is up to you.  I would like to make a registry backup system and the restore point before starting this procedure to be on the safe side.

    ==================================================================================================================================

    Here is another similar option worth a try, if others do not work (same for system restore point and registry backup):

    Click Start > run Regedit > move > HKEY_LOCAL_MACHINE\ logiciels\ Microsoft\ Windows NT\ CurrentVersion\ Winlogon

    In RHS Panel, change the value of "Userinit" to: C:\WINDOWS\system32\userinit.exe

     

    Now, go to:

    HKEY_CURRENT_USER\ logiciels\ Microsoft\ Windows\ CurrentVersion\ advanced Explorer\

    In RHS Panel, change the value of "PersistBrowsers" to 0

     
    Reset.

    Click Start > run Regedit > move > HKEY_LOCAL_MACHINE\ logiciels\ Microsoft\ Windows NT\ CurrentVersion\ Winlogon

    In RHS Panel, change the value of "Userinit" to: C:\WINDOWS\system32\userinit.exe

     

    Now, go to:

    HKEY_CURRENT_USER\ logiciels\ Microsoft\ Windows\ CurrentVersion\ advanced Explorer\

    In RHS Panel, change the value of "PersistBrowsers" to 0

     
    Reset.

    Click Start > run Regedit > move > HKEY_LOCAL_MACHINE\ logiciels\ Microsoft\ Windows NT\ CurrentVersion\ Winlogon

    In RHS Panel, change the value of "Userinit" to: C:\WINDOWS\system32\userinit.exe

     

    Now, go to:

    HKEY_CURRENT_USER\ logiciels\ Microsoft\ Windows\ CurrentVersion\ advanced Explorer\

    In RHS Panel, change the value of "PersistBrowsers" to 0

     
    Reset.

    Click Start > run Regedit > move > HKEY_LOCAL_MACHINE\ logiciels\ Microsoft\ Windows NT\ CurrentVersion\ Winlogon

    If this does not work, go tohttp://technet.microsoft.com/en-us/sysinternals/bb963902.aspx and run Autoruns and click all.  You are looking for something, with the documents folder, and when you find it, uncheck the box to prevent it from starting at startup (it probably isn't there because it uses a different process to open it, but it's worth a try since different processes was the one before this one and if you are here it means that you did not).  Check the entire list as there may be several entries.  When you're done, click OK and restart.  The file should no longer start.  If by chance you find explorer.exe listed there, then try disabling that and see what happens.  This can cause a lot of problems, so be ready to CTRL-ALT-DEL and file run Explorer.exe to restart the program and then go back and check the box - it sure is not the solution.

    If this does not work, try a boot minimum http://support.microsoft.com/kb/929135.  If the problem goes away then it's just a matter of tracking down the culprit at the origin of the problem.   Follow the procedures described in the article.  Once found, remove, delete, disable or uninstall.  Once remember to put Vista in normal status, as described in the procedures. If the problem occurs in clean mode then just restore the system to normal and reboot - this solution will not work.

    I hope this helps.

    Good luck!

    In RHS Panel, change the value of "Userinit" to: C:\WINDOWS\system32\userinit.exe

    Now, go to:

    HKEY_CURRENT_USER\ logiciels\ Microsoft\ Windows\ CurrentVersion\ advanced Explorer\

    In RHS Panel, change the value of "PersistBrowsers" to 0

    Reset

    ================================================================================================================================

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • PC won't start-preparation of auto repair. After, there is a message: 'automatic repair is unable to repair your PC' and ' Log: C:\windows\System32\Srt\SrtTrail.

    Original title: help! My PC won't start!

    Hi, my computer Windows 8 really does start. On the screen, I see just the windows logo with "prepare auto repair. After, there is a message: 'automatic repair is unable to repair your PC' and ' Log: C:\windows\System32\Srt\SrtTrail.

    I try with everything I can, recovery CD and USB, refresh, auto repair, I can't back up my files because I have not found any extern with 208 GB storage... So I can't really reset my PC without losing my files.

    What can I do to start my PC, without losing my files.

    PLEASE, I BEG YOU! Help me!!! PLEASE, I BEG YOU!

    Hello

    Thanks for posting your query on the Microsoft Community.

    According to the description, I understand that you are unable to start your computer.

    This could occur due to system conflicts.

    Try the steps.

    If the auto repair is unable to repair your PC, select "Advanced options" and then "Troubleshooting."

    1. Select 'Advanced options', then 'command prompt'.
    2. If you are prompted, enter the password for the user name.
    3. At the command prompt, type the following commands, and press ENTER.

    Bootrec /fixMBR
    Bootrec /Fixboot
    Bootrec /rebuildBCD

    Restart the computer and check the issue.

    Hope this information helps. Please let us know if you need any other help with Windows in the future. We will be happy to help you.

Maybe you are looking for