Forum Replies Created

Viewing 15 posts - 4,546 through 4,560 (of 8,761 total)

  • RE: sql syntax error

    Just remove the arbitrary opening parenthesis

    😎

    CREATE VIEW abcd AS

    SELECT

    a.description,

    a.corporate_tag,

    a.corporate ,

    a.banner_tag,

    a.banner,

    a.region_tag,

    a.region,

    a.division_tag,

    a.division,

    a.hierarchy_level,

    a.load_id,

    a.process_name,

    a.loop_id,

    ( case WHEN b.corporate_tag IS NULL or b.banner_tag IS NULL THEN 'I' Else 'U' END )

    /* or ( case...

  • RE: One of the most complex Views i have ever seen (View nested into another view)

    SQLPain (9/14/2015)


    Thanks Errikur,

    I only want results from past 21 days, I tried this also:

    AppDetails.DateDetailDisposed = DATEADD(DAY,-21,getdate())

    Still gives me a blank result set

    Missed the 21 days:-P

    😎

    AppDetails.DateDetailDisposed BETWEEN CONVERT(DATE,DATEADD(DAY,-25,getdate()),0) AND CONVERT(DATE,getdate(),0)

    Note, convert...

  • RE: Calculate total between two columns

    Slightly different approach from JLS's

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    GO

    DECLARE @SAMPLE_DATA TABLE

    (

    column1 NUMERIC(12,2) NOT NULL

    ,column2 NUMERIC(12,2) NOT NULL

    );

    INSERT INTO @SAMPLE_DATA(column1,column2)

    VALUES ...

  • RE: One of the most complex Views i have ever seen (View nested into another view)

    SQLPain (9/14/2015)


    Thanks Scott,

    How do I fix this code:

    AppDetails.DateDetailDisposed BETWEEN getdate() - 25 AND getdate() - 20

    I only need getdate() -21, but that's giving me blank output

    Use DATEADD

    😎

    AppDetails.DateDetailDisposed BETWEEN DATEADD(DAY,-25,getdate())...

  • RE: OT, but... DAX Patterns 2015 database?

    pietlinden (9/14/2015)


    I looked there, but didn't see a link to download, so that's why I asked here. He explains the patterns, but without the database they're working from, I...

  • RE: OT, but... DAX Patterns 2015 database?

    pietlinden (9/14/2015)


    I'm reading Ferrari & Russo's DAX Patterns 2015 book, which is great, but I'm wondering about one thing... where is the database they're using for their examples?

    I just find...

  • RE: Commercial Software with All Tables as Heaps and Terrible Performance

    Wayne West (9/14/2015)


    Matt Miller (#4) (9/14/2015)


    Eirikur Eiriksson (9/14/2015)


    Jeff Moden (9/14/2015)


    Eirikur Eiriksson (9/13/2015)


    Using heap to speed the inserts is like a very bad Credit Card deal, no transaction fees but X000%...

  • RE: SSIS with dynamic quey

    nightowl23 (9/14/2015)


    i am modifying a SSIS package which contains SQL task, a dynamic query, and set the query as output parameter, it used to work last week, but today it...

  • RE: outputting a message based on query results

    christine 23290 (9/14/2015)


    I am trying to get this to work without having to write a cursor or something like that. I think it should be able to be done...

  • RE: SQL Server Start Problem.

    zzzzcarl (9/14/2015)


    Thanks to Eirikur and GilaMonster for your answers, which has helped me a lot.

    I thing the problem is solved. Now I have had 2 succesfully start of the...

  • RE: One of the most complex Views i have ever seen (View nested into another view)

    ScottPletcher (9/14/2015)


    Check the compatibility level of the db. Compatibility needs to be at least 90 for ROW_NUMBER() to work.

    No, the compatibility level does not affect newer functionality.

    😎

    This will run...

  • RE: Using a parameter as a server name in an execute SQL task

    Animal Magic (9/14/2015)


    Hi All,

    I was hoping someone could help me out with an issue which has been frustrating me this afternoon. All i am trying to do is pass...

  • RE: Today's Random Word!

    DonlSimpson (9/14/2015)


    Ed Wagner (9/14/2015)


    BL0B_EATER (9/14/2015)


    Eirikur Eiriksson (9/14/2015)


    Ed Wagner (9/14/2015)


    Luis Cazares (9/14/2015)


    whereisSQL? (9/14/2015)


    anthony.green (9/14/2015)


    Ed Wagner (9/14/2015)


    Stuart Davies (9/14/2015)


    Ed Wagner (9/14/2015)


    anthony.green (9/14/2015)


    snickers

    Candy

    Girl

    Boy

    George

    Jungle

    Book

    Necessities

    Preriquisites

    prior

    Last

    First

    Leader

  • RE: Today's Random Word!

    Ed Wagner (9/14/2015)


    Luis Cazares (9/14/2015)


    whereisSQL? (9/14/2015)


    anthony.green (9/14/2015)


    Ed Wagner (9/14/2015)


    Stuart Davies (9/14/2015)


    Ed Wagner (9/14/2015)


    anthony.green (9/14/2015)


    snickers

    Candy

    Girl

    Boy

    George

    Jungle

    Book

    Necessities

    Preriquisites

  • RE: Commercial Software with All Tables as Heaps and Terrible Performance

    Jeff Moden (9/14/2015)


    Eirikur Eiriksson (9/13/2015)


    Using heap to speed the inserts is like a very bad Credit Card deal, no transaction fees but X000% Annual interest rate:pinch:

    😎

    Jeff Moden (9/12/2015)


    It's a...

Viewing 15 posts - 4,546 through 4,560 (of 8,761 total)