User Profile

Collapse

Profile Sidebar

Collapse
cryptotech2000
cryptotech2000
Last Activity: May 19 '08, 08:38 PM
Joined: Jun 12 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • cryptotech2000
    replied to Using Round in a sql query
    Also if i modify my query like the following.. it only rounds to the nearest whole number but leaves the decimal place

    Code:
    CASE WHEN tbl_CCMonitorSheetAnswer.Answer = 'False' THEN Round(tbl_CCMonitorFormQuestion.Points - tbl_CCMonitorFormQuestion.Points, 0) 
    WHEN tbl_CCMonitorSheetAnswer.Answer IS NULL THEN NULL ELSE Round(tbl_CCMonitorFormQuestion.Points, 0) END AS [Achieved Points], 
    CASE WHEN tbl_CCMonitorSheetAnswer.Answer
    ...
    See more | Go to post

    Leave a comment:


  • cryptotech2000
    replied to Using Round in a sql query
    I can do it on the reporting end and use Round(Fields!Ac hieved_Points.V alue) but it then rounds all Null Values to 0 and null values need to remain Null
    See more | Go to post

    Leave a comment:


  • cryptotech2000
    replied to Using Round in a sql query
    Yes that is correct (I want to remove the decimal place).. and i have read over that but I cannot figure out how to use round in conjunction with the case syntax (my example above) how would i incorporate round into that select?
    See more | Go to post

    Leave a comment:


  • cryptotech2000
    started a topic Using Round in a sql query

    Using Round in a sql query

    I have the following two cases in my sql query I would like to round the results (round 0) however I cannot figure out the correct syntax to use round in this instance.. any help on this would be greatly appreciated

    Code:
    CASE WHEN tbl_CCMonitorSheetAnswer.Answer = 'False' THEN (tbl_CCMonitorFormQuestion.Points - tbl_CCMonitorFormQuestion.Points) 
                          WHEN tbl_CCMonitorSheetAnswer.Answer IS NULL THEN NULL ELSE tbl_CCMonitorFormQuestion.Points
    ...
    See more | Go to post

  • cryptotech2000
    replied to Query Help
    Thanks for the edit :P

    um anyone able to help me on this? It is kind of high priority and as i said i can't seem to figure it out
    See more | Go to post

    Leave a comment:


  • cryptotech2000
    started a topic Query Help

    Query Help

    When I run this query it outputs the dates from the 14th of Nov to the 31st (well up to the last date in the db which atm is the 6th of dec) twice for each date because we have two order status values for each day.. Which is what I would like it to do..

    However I would like to make it so if a particular row does not have a value <> 0 in any of the Orders fields that row is not displayed hence only displaying days/orderstatuses...
    See more | Go to post
    Last edited by debasisdas; Dec 13 '07, 09:02 AM. Reason: formatted using code tags

  • Nevermind was a stupid question lol I figured it out needed to have the date range on the from orders line...
    See more | Go to post

    Leave a comment:


  • cryptotech2000
    started a topic Help with a sql query between date ranges

    Help with a sql query between date ranges

    I am trying to filter this query based on date ranges but it don't seem to be working correctly, its probably something really simple if anyone can help me with this

    Code:
    select ReceivedDate,orderstatus WHERE RecieveDate BETWEEN ''20071101' AND '20071231'
            ,count(case when dcoc = '88' then 1 end) as cnt88
            ,sum(case when dcoc = '88' then ordertotal end) as sls88
    from orders
    group by ReceivedDate,orderstatus
    ...
    See more | Go to post

  • Ok I think i figured it out.. unless someone knows a better way

    Code:
    @echo off
    REM - File: iisrestarter.bat
    REM - Description: checks for the existence of iisrestart.txt then restarts iis and deletes the txt file
    
    IF EXIST restartiis.txt (GOTO :true) ELSE GOTO :false
    
    :true
    echo Restarting IIS and FTP.....
    echo ===================================================
    net stop "World
    ...
    See more | Go to post

    Leave a comment:


  • cryptotech2000
    started a topic Restarting IIS with a batch file if x exists
    in IIS

    Restarting IIS with a batch file if x exists

    I am trying to write a batch file to do this basically and i know i dont have it right so if anyone could help me i would appreciate it.. Basically the reason i need to do this is we have an outsourced project and the company will not give the outsourced company sufficient access on the server to restart iis through VPN

    I tried just a simple batch file and had them run it but that then ran it on their machine and not on our server.....
    See more | Go to post

  • cryptotech2000
    started a topic If Then Statement Help

    If Then Statement Help

    What I am looking to do is create an if then statement for a particular access query, here are the facts

    Tables used
    Mainframe Report List

    Fields Within the table that are used for the if then statement
    GENERATIONS
    FREQUENCY
    EXTENDED

    what i would like is to say if FREQUENCY = Daily5 then Divide value in GENERATIONS by 5 and Place the Result in EXTENDED ELSE IF FREQUENCY = WEEKLY...
    See more | Go to post

  • cryptotech2000
    replied to MaxLocksPerFile Error
    I would lower it from 300k to 200k or so and try that 300k is imo a bit high unless you actually need it to be that high 200k is normally what i would reccomend as a max
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...