Forum Replies Created

Viewing 12 posts - 1 through 12 (of 12 total)

  • RE: change column values to row

    femi.olaniyan - Wednesday, August 29, 2018 9:43 AM

    If there can be potentially more items you need to use a dynamic pivot:
    [code...

  • RE: change column values to row

    It is working for me, can you try it again?

  • RE: Sql server upgrade

    Thank you Chris

  • RE: Query to give sum of items with condition from multiple tables

    bmg002 - Wednesday, November 15, 2017 8:17 AM

    for others wanting to help, here is the DDL
    DECLARE @tblLineItems TABLE
        (
            [LineItemID] INT ,
            [JobID]...

  • RE: Query to give sum of items with condition from multiple tables

    Thank you for the tip.
    I will post it using the guide

  • RE: Query to give sum of items with condition from multiple tables

    Sorry I thought I attached all the tables.
    Here are the other tables attached.
    What I want to get is something like this:

    November 14, 2017 at 2:35 pm

    #1968089

  • RE: Stored procedure to pass date ranges

    Thank you very much sgmunson, this seems to work. I also...

  • RE: Stored procedure to pass date ranges

    For example I wanted to get the total quantity of Bids and Complete Orders separately for the dates between 6/1/17-8/30/17.
    For between those dates I wanted to get BidQty =...

  • RE: Stored procedure to pass date ranges

    CREATE TABLE [dbo].[tblOrders](
        [OrderID] [int] NOT NULL,
        [JobStatus] [nvarchar](50) NOT NULL,
        [JobType][nvarchar](50) NOT NULL,
        [BidDate] [datetime] NULL,
        [BidTotals] [money] NULL ,
        [Qty] [int] NULL ,
        [OrderDate] [datetime] NULL,

  • RE: Stored procedure to pass date ranges

    how do I post the sample date. I can post the create statement but the insert into will be too much. If I just insert a sample data, it might...

  • RE: Stored procedure to pass date ranges

    There are actually rows within that date range

  • RE: stored procedure to copy a record

    thanks for the reply but I found out that the problem was during execution. This is the correct one
    Declare @ItemSubPartID_New int
    Exec [dbo].[ItemSubPart_TEST1] @ItemSubPartID = 464, @ItemID_New =...

  • Viewing 12 posts - 1 through 12 (of 12 total)