Forum Replies Created

Viewing 15 posts - 31 through 45 (of 62 total)

  • RE: Help with tables & SQL behind Matrix-like GridView

    Try a case statement

    Something like this:

    SELECT Customer,

     SUM(CASE graphname = 'Current Month Collections' THEN do something END) AS 'Current Month Collections'

    FROM table

    Keep in mind this is for display purposes.

    Thanks,

     

  • RE: If condition is not working properly

    Thanks everyone for your help.  My issue is not with the sproc, but rather with the .NET grid that I purchased.  Apparently it evaluates only checked off items, therefore the...

  • RE: If condition is not working properly

    Thanks for the quick response;  Here is the stored procedure script for the second sproc.  Nothing special:

    ALTER     PROCEDURE dbo.Supplyrequest_Updateoktoprocessexceptions

    (

    @Proposalno INT,

    @Requestid INT

    )

    AS

    DECLARE @Error INT

    SET NOCOUNT ON

    UPDATE Request_for_quote

     SET OKToprocessexp = 1, qtyException...

  • RE: Trying to do a cumulative total based on year/month

    Hi,

    Thanks for your reference snippet.  Worked great.

  • RE: Looking for Newgroups/forums for VB.NET

    Have you tried http://www.ASP.NET - that works well. 

    I think this forum is the one I used to use for VB6 (not sure) but it looks very familiar: http://www.vbwm.com/

    I...

  • RE: BOM - Demand VS Supply trying to accomplish this in SQL Server 2000

    Hi,

    This is what I'm trying to accomplish.

    The reason why this structure is set this way is because of the MRP methodology in place.  Procurement needs to identify the total available...

  • RE: BOM - Demand VS Supply trying to accomplish this in SQL Server 2000

    Need assistance why my if conditions are failing:

    DECLARE @Itemno varchar(32),

     @currentAvailable smallint,

     @AvailableCount smallint,

            @currentDemand float,

     @previousDemand float,

     @currentSupply float,

     @previousSupply float,

     @deliverydate smalldatetime,

            @RunningTotal float

    SET @RunningTotal = 0

    SELECT @currentAvailable = 0,@previousDemand = 0

    DECLARE rt_cursor CURSOR

    FOR

    SELECT...

  • RE: BOM - Demand VS Supply trying to accomplish this in SQL Server 2000

    Hi This it take two I lost my initial repsonse.  The reason why this structure is set this way is because of the MRP methodology in place.  Procurement needs to...

  • RE: the opposite of join?

    Have you tried using a LEFT or RIGHT JOIN with a WHERE eliminating all the values where the two table join.  Your resultset would be something like this

  • RE: Update the first row only

    Thanks all for the help here is my final query that did the trick:

    UPDATE a SET totalavailable = b.projstocknumb + b.stocksupply

    FROM procurement_wo_supply a INNER JOIN procurement_initialprojectstock b

     ON a.itemno = b.stockitemno

    WHERE...

  • RE: Query same table to search for children nodes

    I didn't quite do recursion. My solution albeit a bit cryptic (was successful and somewhat messy) and since I didn't have a true starting point I did however have two...

  • RE: Reporting database for an ERP system

    Thanks,

    I reset the database to "simple".

  • RE: compress null values in sql server case statement

    Thanks a bunch.  Being a contractor or consultant eases the pain a little bit.  You have a great weekend too

  • RE: compress null values in sql server case statement

    Hi,

    Unfortunately I can only give pseudo code.  IT policy here.  However once you mentioned to add <> 0 I included the column in question into my where clause and everything...

  • RE: compress null values in sql server case statement

    Hi,

    What happens if I have three revenues columns and some values contain negatives.  You still have to report those values otherwise your results will be skewd.  I tried using the...

  • Viewing 15 posts - 31 through 45 (of 62 total)