Forum Replies Created

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

  • RE: Hide multiple Columns based on Parameter value in SSRS 2004

    yudy.varma (9/1/2012)


    Can anybody tell me how to hide/show multiple columns based on multivalued parameter.

    ex :i have two parameters

    1)item

    2)option(multivalued - ven,itm,qty) and values are (venr,itm,qty).

    i have a dataset...

  • RE: Subtotal for cloumn group only showing first value

    You have to choose scope of Total value.

  • RE: Finding the Correct Weekday Regardless of DateFirst

    rramsey (7/29/2012)


    One thing I noticed is this: I expected saturday to be returned as day 7 when sunday was day 1 however; the formula, Declare @ThisDay int = (DATEPART(weekday,@ThisDate) +...

  • RE: Pivoting my data

    vinu512 (4/14/2012)


    Divya Agrawal (4/14/2012)


    RexHelios (4/13/2012)


    Hello All,

    I have the following table...

    DECLARE @EmploymentHistory TABLE (

    CompanyName VARCHAR (100), EmployeeName VARCHAR (100),

    EmploymentBeginDate DateTime, EmploymentEndDate DateTime)

    INSERT @EmploymentHistory (CompanyName, EmployeeName, EmploymentBeginDate, EmploymentEndDate)

    SELECT 'Jack and Jill...

  • RE: Pivoting my data

    RexHelios (4/13/2012)


    Hello All,

    I have the following table...

    DECLARE @EmploymentHistory TABLE (

    CompanyName VARCHAR (100), EmployeeName VARCHAR (100),

    EmploymentBeginDate DateTime, EmploymentEndDate DateTime)

    INSERT @EmploymentHistory (CompanyName, EmployeeName, EmploymentBeginDate, EmploymentEndDate)

    SELECT 'Jack and Jill Company', 'John Doe',...

  • RE: How to deploy scripts??

    itskanchanhere (4/3/2012)


    Hi Divya,

    even through SQl cmd I will have to connect to database for which Use dn_name ; go will be needed...

    No, its a command prompt cmd which need to...

  • RE: How to deploy scripts??

    You can add a stored procedure in your database which will have all the content of the script. Then you can provide the stored proc name to the deployment team...

  • RE: Need help in creating view

    Koen Verbeeck (4/3/2012)


    nilesh-652355 (4/2/2012)


    Hello...

    I have following records....

    CompanyID.......Quantity......Sales Year

    123.................12..............2011-12

    123.................34..............2011-12

    123.................12..............2011-12

    123.................15..............2012-13

    123.................12..............2012-13

    123.................12..............2012-13

    Now, I want to write a view so I can get the following output

    with sum of...

  • RE: Need help in creating view

    Do you require sum of quanity on sale year? in your example output you have two sale year rows..

    You can try the query:

    select customerid,sum(quantity) quantity, saleyear

    from tbl

    group by customerid, saleyear

    If...

  • RE: Subquery

    JimS-Indy (12/16/2010)


    Current Query:

    USE [AssetLending]

    GO

    /****** Object: View [dbo].[AssetsWithCurrentTrans] Script Date: 12/16/2010 11:24:57 ******/

    SET ANSI_NULLS ON

    GO

    SET QUOTED_IDENTIFIER ON

    GO

    ALTER VIEW [dbo].[AssetsWithCurrentTrans]

    AS

    SELECT dbo.Asset.AssetID, dbo.Asset.AssetDescription, dbo.Asset.AssetCategory, dbo.Asset.AssetCondition,...

  • RE: Finding the Correct Weekday Regardless of DateFirst

    danajao (9/7/2010)


    Thanks for a very interesting tip ... problem I have though is while my expression provides me with a previous date ... it fails when moving into another month...

  • RE: Finding the Correct Weekday Regardless of DateFirst

    danajao (9/7/2010)


    Thanks for a very interesting tip ... problem I have though is while my expression provides me with a previous date ... it fails when moving into another month...

  • RE: Sort output on diffent columns

    lmu92 (2/26/2010)


    You could use dynamic SQL ,meaning: build the SELECT statement as a string and call that with sp_executesql. See BOL for details.

    Thanks again.

    I have already written in my first...

  • RE: Sort output on diffent columns

    Thanks Lutz.

    Your solution i have already used for less number of columns.

    There are lots of columns around 100's in the table which i need to query. Case will be...

  • RE: Strange Variable Issue

    🙂

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