Forum Replies Created

Viewing 15 posts - 1,666 through 1,680 (of 2,452 total)

  • RE: find pairs of NULL records without resorting to CURSORS

    ;WITH jls

    AS

    (

    SELECT ROW_NUMBER ( ) OVER ( PARTITION BY date ORDER BY date ) AS RN

    , *

    FROM #tmp

    WHERE (seqno...

  • RE: Error message during deletion

    kk.86manu (5/7/2013)


    Hi All,

    I am trying to delete a record from a table using a stored procedure.While executing the SP i am getting the below error.

    "The query processor ran out of...

  • RE: How to do this type of insert?

    if you are intending to add rows then use MERGE as Sean suggests.

    If you are only intending to update data then just use UPDATE with a join on the tables.

    some...

  • RE: Get data from Previous record (Cumulative Data)-- Urgent help required

    play area...see if this makes any sense and can be worked upon

    SELECT TOP 1000000

    TranDate = Dateadd(dd, Abs(Checksum(Newid()))%Datediff(dd, '2011', '2014'), '2011'),

    ProdID ...

  • RE: sql server query

    this article may help you

    http://www.sqlservercentral.com/articles/IsNumeric/71512/

    SELECT col,

    case when col NOT LIKE '%[^0-9]%' then col else '' end,

    case when col LIKE '%[^0-9]%' then col else '' end

    FROM ...

  • RE: Get data from Previous record (Cumulative Data)-- Urgent help required

    Motz (5/4/2013)


    Thanks, its working but taking lot of time. I have almost 30000 prj_id's. Any suggestion on how to improve the query performance or any change in query that makes...

  • RE: Data warehouse project

    adonetok (5/2/2013)


    Yes, I am working as programmer in Access, VB, VB.NET and SQL server for a few years. Now, need to learn DW.

    assuming your company already has a data warehouse...are...

  • RE: Data warehouse project

    adonetok (5/2/2013)


    Boss assigned me to work as data warehouse manager.

    I am new.

    Where to start? Please recommend me some links and tools.

    you say you are "new"....what previous experience have you...

  • RE: T-SQL Greatest function workarounds - timing tests

    Hi Craig.......run on my laptop

    hope this helps

    kind regards

    Microsoft SQL Server 2012 - 11.0.2218.0 (Intel X86)

    Enterprise Evaluation Edition on Windows NT 6.1 <X86> (Build 7601: Service Pack 1)

    TestSource ...

  • RE: How To Avoid The Duplicate Records....

    sarwaanmca (4/29/2013)


    hi Friends..

    i got the Result ...

    Select EmpID,EmpName,Department,max(Age),MAX(salary) from

    EmployeeDet

    group by EmpID,EmpName,Department

    Thanks for Your valuable Guidance

    Regards,

    Saravanan.D

    consider this

    create Table EmployeeDet (EmpID int,EmpName Varchar(100),Department varchar(100),Age int,salary int)

    insert into EmployeeDet values (1,'Arun','Accounts',25,25000),(1,'Arun','Accounts',23,21000),(1,'Arun','Accounts',26,22000),(1,'Arun','Accounts',29,27000), (1,'Arun','Accounts',35,20000)

    insert...

  • RE: What is this saying ?

    steve4134 (4/29/2013)


    I believe this is saying Last day of previous month and first day of current month ? Can someone please confirm ?

    Steve

    DATEADD(month, -1,CONVERT(VARCHAR(25),DATEADD(dd,-(DAY(GETDATE())-1),GETDATE()),101))

    and

    DATEADD(month, -1,CONVERT(VARCHAR(25),DATEADD(dd,-(DAY(DATEADD(mm,1,GETDATE()))),DATEADD(mm,1,GETDATE())),101))

    run...

  • RE: How To Avoid The Duplicate Records....

    sarwaanmca (4/29/2013)


    what Ever You Take its ur wish...

    thats not a problem...

    you take it first record of the EmpID....

    ok...so what do you say is the first record for Arun?

    ordered by...

  • RE: How To Avoid The Duplicate Records....

    sarwaanmca (4/29/2013)


    Hi Friends...

    I Having Table For The Following Structure..

    create Table EmployeeDet (EmpID int,EmpName Varchar(100),Department varchar(100),Age int,salary int)

    insert into EmployeeDet values (1,'Arun','Accounts',25,25000),(1,'Arun','Accounts',23,21000),(1,'Arun','Accounts',26,22000),(1,'Arun','Accounts',29,27000)

    insert into EmployeeDet values (2,'kumar','Production',23,18000),(2,'Arun','Production',27,30000),(2,'Arun','Production',31,19000)

    insert into EmployeeDet values (3,'saran','Sales',22,38000)

    insert into...

  • RE: SQL Client Access Licence requirements

    Lynn Pettis (4/29/2013)


    J Livingston SQL (4/29/2013)


    EdVassie (4/29/2013)


    If your reseller is a Microsoft Gold artner then Microsoft accept full liability for any advice they give.

    .

    Hi any pointers to official /...

Viewing 15 posts - 1,666 through 1,680 (of 2,452 total)