Forum Replies Created

Viewing 15 posts - 1 through 15 (of 48 total)

  • RE: Current Date issue in where clause

    The replie is quite simple when you go with finding the date as getdate(), the getdate will return you as 2012-02-22 10:03:50.033 if you look carefully it include yyyy-mm-dd hh:mm:ss.nano...

    Thanks & Regards
    Syed Sami Ur Rehman
    SQL-Server (Developer)
    Hyderabad
    Email-sami.sqldba@gmail.com

  • RE: union with order by

    Thanks all

    I got good lesson to learn about union and order by

    Thanks & Regards
    Syed Sami Ur Rehman
    SQL-Server (Developer)
    Hyderabad
    Email-sami.sqldba@gmail.com

  • RE: Case Statement should have IN

    Hi All

    I feeling very odd to ask but i am really really very confused by this how to make order by when query have union or union all

    Thanks & Regards
    Syed Sami Ur Rehman
    SQL-Server (Developer)
    Hyderabad
    Email-sami.sqldba@gmail.com

  • RE: Case Statement should have IN

    Thanks both you gave me better picture for the result ... but today i came to know that case statement cant have In clause

    Thanks & Regards
    Syed Sami Ur Rehman
    SQL-Server (Developer)
    Hyderabad
    Email-sami.sqldba@gmail.com

  • RE: Violation of PRIMARY KEY constraint

    Hi

    Try this it will make you insert from other table and id starting with 1000000

    DECLARE @START INT

    DECLARE @END INT

    SELECT @START = 1000000 --START VALUE

    SET @END = (SELECT COUNT(*) FROM...

    Thanks & Regards
    Syed Sami Ur Rehman
    SQL-Server (Developer)
    Hyderabad
    Email-sami.sqldba@gmail.com

  • RE: Merge for Update,Delete,Insert

    Hi

    hey thanks to both yes indeed need to understand the things before taking help and cross checking the good lesson will surely follow in future..

    Thanks guys for your support and...

    Thanks & Regards
    Syed Sami Ur Rehman
    SQL-Server (Developer)
    Hyderabad
    Email-sami.sqldba@gmail.com

  • RE: Calling Stored Procedure in Select Statement

    Rookie

    This is one of the way you can try for your desire result but for this you need to know what your sp is returning it.

    -- create temp...

    Thanks & Regards
    Syed Sami Ur Rehman
    SQL-Server (Developer)
    Hyderabad
    Email-sami.sqldba@gmail.com

  • RE: Calling Stored Procedure in Select Statement

    Hey rookie

    may i know what kind of result do your sp retuns. Is it one column result of multicolumn result because you using select not in which means it need...

    Thanks & Regards
    Syed Sami Ur Rehman
    SQL-Server (Developer)
    Hyderabad
    Email-sami.sqldba@gmail.com

  • RE: Doing inserts within a select statement?

    Hi

    I dont know how much this gonna benifite you just try if you this can make thing quite ok

    DECLARE @FKVALUE INT

    SET @FKVALUE = 1

    INSERT INTO TABLE2(COLUMN1,COLUMN2)

    SELECT COLUMN1,ISNULL(COLUMN2,@FKVALUE) FROM TABLE1

    Thanks & Regards
    Syed Sami Ur Rehman
    SQL-Server (Developer)
    Hyderabad
    Email-sami.sqldba@gmail.com

  • RE: sql query needed

    Hi

    Its really getting confuse over here... Just need to ask you need that value to be splite into two columns one with only numerical and other only alpha. Is this...

    Thanks & Regards
    Syed Sami Ur Rehman
    SQL-Server (Developer)
    Hyderabad
    Email-sami.sqldba@gmail.com

  • RE: Insert Millions of rows into a table at a time

    Hi

    here there is a query for the data population you need to do some alter respect to what data you want and from which table you want just make...

    Thanks & Regards
    Syed Sami Ur Rehman
    SQL-Server (Developer)
    Hyderabad
    Email-sami.sqldba@gmail.com

  • RE: Cast as Money

    Hi

    SELECT round(cast(((medacct# - ParticipantsAnnualElection)/26)as money),0) as Money

    Thanks & Regards
    Syed Sami Ur Rehman
    SQL-Server (Developer)
    Hyderabad
    Email-sami.sqldba@gmail.com

  • RE: error while updating table

    Hi...

    Hey actually you trying to add a column into table that have already containe records and when you introduce a new column with not null that means when new column...

    Thanks & Regards
    Syed Sami Ur Rehman
    SQL-Server (Developer)
    Hyderabad
    Email-sami.sqldba@gmail.com

  • RE: Error converting data type varchar to datetime in stored Procedure

    Hi dear

    Try to put varchar(20) inside the convert function rather then datetime.

    Thanks & Regards
    Syed Sami Ur Rehman
    SQL-Server (Developer)
    Hyderabad
    Email-sami.sqldba@gmail.com

  • RE: Delete Duplicates with Min Value for One Column

    CREATE TABLE MEMBER

    (

    MemberID bigint

    ,ControlID bigint

    )

    INSERT INTO MEMBER

    SELECT 712372226, 20111230108660 UNION ALL

    SELECT 712397728, 20111230108661 UNION...

    Thanks & Regards
    Syed Sami Ur Rehman
    SQL-Server (Developer)
    Hyderabad
    Email-sami.sqldba@gmail.com

Viewing 15 posts - 1 through 15 (of 48 total)