Forum Replies Created

Viewing 15 posts - 1,456 through 1,470 (of 1,923 total)

  • RE: SQL Subtraction - Seperate rows

    I would also recommend you to go through the following article on how to post readily consumable data

    CLICK HERE FOR FORUM POSTING ETIQUETTES - JEFF MODEN[/url]

    Hope the code above this...

  • RE: SQL Subtraction - Seperate rows

    Hi there, here is a piece of code that wll do what you wanted:

    As you are first time poster, i took the onus on my side to create DDLs for...

  • RE: QUERY T-SQL

    I echo skcadavre here ; Long verbal questions wont attract anyone; but when u post the following, i tell you, you will receicve excellent tested code back:

    so, Please post;

    1. Table...

  • RE: Short cut keys not working ssms 2008

    You have to change the default keyboard lay-out of SSMS 2008 ; follow thsi path to change it

    1. Tools

    2. Options

    3. Environment -> Keyboard

    4. Keyboard Scheme --> SQL Server 2000

    Hope...

  • RE: How to group if there is nothing to aggregate

    Hi there, as Gail said, you will have to look up at PIVOT.

    For starters, i have coded for your requirement, but this is only w.r.t the sample data you provided!...

  • RE: Inner join

    Anamika, excellent work done in posting the necessary tables , sample data and an equally good "desired result".. Kudos to you!

    Now for your desired result, try this query:

    SELECT TT.ID,

    ...

  • RE: Display the dates between the given two dates.

    arun.sas (5/26/2010)


    Nice approach cold coffee, a bit change in the statements. It’s should like

    select dateadd(dd,N-1,@startdate)

    from dbo.tally

    where n <= datediff(dd,@startdate,@enddate)+1

    Oh yeah, arun, sorry for...

  • RE: Display the dates between the given two dates.

    Hi Mohan , the following code wil help you out!

    --===== Create and populate the Tally table on the fly

    SELECT TOP 11000 --equates to more than 30 years of dates

    ...

  • RE: Can someone help me with this Query

    You're welcome, sahasam!

  • RE: Set a variable equal to an Execute?

    Small example depicting the retrieval of a value from the dynamics-sql to the calling code:

    The dynamic-sql take a divisor from the outside, calculates the division and returns the quotient to...

  • RE: how to identify numbers in varchar column

    Jeff Moden (5/25/2010)


    ColdCoffee (5/25/2010)


    WayneS, as a classic question, do u really think ISNUMERIC can be used as an is_all_digits functions? There is nothing that a super fast coder like you...

  • RE: Can someone help me with this Query

    Sample data and table:

    DECLARE @Employees TABLE

    (

    EMPLID INT,

    EMP_STATUS VARCHAR(3),

    EMP_IDENTITY VARCHAR(5)

    )

    INSERT INTO @Employees (EMPLID ,EMP_STATUS ,EMP_IDENTITY)

    SELECT 121210,'A','A321' UNION ALL

    SELECT 121211,'L','B123'

    DECLARE @Tests TABLE

    (

    EMPLID INT,

    TEST_ID VARCHAR(5),

    TEST_DT DATETIME

    )

    INSERT...

  • RE: how to identify numbers in varchar column

    WayneS, as a classic question, do u really think ISNUMERIC can be used as an is_all_digits functions? There is nothing that a super fast coder like you don't know and...

  • RE: Pull child data alongwith parent data

    You're welcome , desai!

  • RE: Pull child data alongwith parent data

    As you are first time poster, you probably wont be aware of how to post the data in ready-to-use format, so i took the onus on my side and created...

Viewing 15 posts - 1,456 through 1,470 (of 1,923 total)