Forum Replies Created

Viewing 15 posts - 451 through 465 (of 1,229 total)

  • RE: Forward dependencies are not valid

    hoseam (10/5/2016)


    Hi,

    I have Test.rdll, with one parameter and one dataset

    Dataset:

    Name:Country

    Query:

    select distinct

    [Country]

    from [DW].[dbo].[Dim_Country]

    where Active = 1

    and Country = @Country

    Parameter:

    General; Name= Country, Prompt = Country, Data...

  • RE: Index guidance needed

    GilaMonster (10/4/2016)


    CferMN (10/4/2016)


    Could you please explain how to tell what the table is most frequently filtered by or how to tell the most common predicate used against the table?

    You go...

  • RE: conditional where clause

    marc.corbeel (10/6/2016)


    Yes but here you include the complete select command in the condition.

    Problem is here that my real query is very complex (about 40 lines), and putting it 2 times...

  • RE: One to Many relations

    moranamon (10/6/2016)


    Hi,

    Actually, it'll never be MTM as each photo predicts a unique indicator. as for the location, i don't store the photos in the DB but on remote storage (Azure)...

  • RE: One to Many relations

    Are you sure this will never be a many to many relationship, even if it is not one now? A person can appear in more than one photo but can...

  • RE: How to get date??

    MMartin1 (10/4/2016)


    peter478 (10/3/2016)


    Let me explain what I need.

    Based on last day in month I found week number via function DatePart("ww", 30.11.2016) result is 40 or other. It does not matter.

    The...

  • RE: How to get date??

    peter478 (10/3/2016)


    Let me explain what I need.

    Based on last day in month I found week number via function DatePart("ww", 30.11.2016) result is 40 or other. It does not matter.

    The task...

  • RE: Assign result of dynamic sql to variable

    sanjaydut26 (10/2/2016)


    Here is the function...

    ALTER FUNCTION [dbo].[ufn_GetHcmDesignFields]

    (

    @ModuleId bigint, -- HCM_DESIGN_FIELDS moduleid with IsExtendable status 1

    @RID bigInt -- table rid

    )

    RETURNS nvarchar(max)

    AS

    BEGIN

    DECLARE @Return...

  • RE: Modelling grain and fact table key

    henryKrinkle (10/4/2016)


    D1, T1, C1, P1, ORDER1, LINE1, 100

    D1, T2, C1, P1, ORDER1, LINE1, 500

    D1, T3, C1, P1, ORDER1, LINE1, 100

    Hi,

    Thanks for your input.

    In an ideal world, yes, the lines...

  • RE: Modelling grain and fact table key

    RonKyle (10/3/2016)


    If not you could add your own line item number within the group -->(date, customer, product, orderNumber, lineItem) as your key. Maybe you can even populate a calculated field...

  • RE: Modelling grain and fact table key

    D1, T1, C1, P1, ORDER1, LINE1, 100

    D1, T2, C1, P1, ORDER1, LINE1, 500

    D1, T3, C1, P1, ORDER1, LINE1, 100

    Sorry if I missed a detail here, would the line numbers not...

  • RE: Modelling grain and fact table key

    I myself advocate for the lowest possible granularity unless you know for sure you wont need the details. For example, can one of those transactions be reversed at a later...

  • RE: get sum of max values

    this has to be done by grouping and expression in ssrs . So , cannot use CTE.

    I am curious about this requirement. Would you mind sharing why?

  • RE: TSQL Query Help

    Another way to approach this is if you have a rowID column in your table , you can derive one into a temp table from the base table if you...

  • RE: How to average a date column?

    Hmm, I would rather do this in the SQL code ...

    I scrapped up the following >>

    with cte as

    (

    selectcast('20140701' as date) as cteDate

    Union all

    selectdateadd(d, 1,c.cteDate)

    fromcte as c

    wherec.cteDate <'20140731'

    )

    ,nextCte as

    (

    select top...

Viewing 15 posts - 451 through 465 (of 1,229 total)