Forum Replies Created

Viewing 15 posts - 1,261 through 1,275 (of 3,489 total)

  • RE: sql server 2014 queries

    Post the Oracle query then. Then modify if that doesn't work. There is a fair amount of overlap between Oracle and SQL Server dialects of SQL.  Try it and if...

  • RE: sql server 2014 queries

    This is homework. Give it a try and then tell us what you're having trouble with.

  • RE: PowerBI Desktop error while trying to load data

    What happens if you use the 64-bit version? The problem with a 32-bit application is that it can only address about 3.5 GB or memory.

  • RE: ROLLUP or GROUPING SETS

    For someone who's been around as long as you have, you should know that's not a table.  If people can't recreate your scenario, you're not likely to get an answer. ...

  • RE: List event with date range

    What do you mean by "nearest to today"? Can be either before or after?  Then you'd have to do MIN of ABS(DATEDIFF....)  or return the top 1 value...

  • RE: Need help with the getting a top 1 record with in a table with same ids

    You shouldn't be grouping by EventDate - you're trying to return a MIN([EventDate]), so grouping by it (return each unique value) doesn't make sense.

  • RE: Joining on the numeric part of string...

    If you have control over the design of the table, you could create a new column and extract just that part to the new column. Then you could index it...

  • RE: Calculate timespan between datetime field in multiple records

    Could you post some sample data - insert statements so we have something to work with? Basically, you can use LAG with a window to get the "previous" record, and...

  • RE: T-SQL help needed to eliminate duplicates from table

    Maybe this?
    SELECT member,
        amt_paid,
        amt_adjusted,
        dt,
        dupeNum
    FROM
    ( SELECT member,
        amt_paid,
        amt_adjusted,
        dt,
        ROW_NUMBER() OVER (PARTITION BY member, dt, amt_adjusted ORDER BY member, dt) AS dupeNum

  • RE: T-SQL help needed to eliminate duplicates from table

    mw_sql_developer - Monday, June 11, 2018 9:46 AM

    pietlinden - Sunday, June 10, 2018 5:08 PM

  • RE: T-SQL help needed to eliminate duplicates from table

    Kinda would help if I wrote an actual delete query... =)
    Test the CTE out by doing SELECT from it first instead of DELETE
    ;WITH
        cteMembers(member, amt_paid,...

  • RE: Export to Excel

    jagjitsingh - Sunday, June 10, 2018 2:50 AM

    Hi
     I want Data from the Sql table to Excel in predefined Excel Template . I...

  • RE: T-SQL help needed to eliminate duplicates from table

    Like this? It's not super clear what you want. In this case, a sample expected result would be a big help.  Something like this?
    Create table #t( member...

  • RE: Query

    jagjitsingh - Sunday, May 27, 2018 10:44 AM

    Hi

      I have below Data .

    Viewing 15 posts - 1,261 through 1,275 (of 3,489 total)