Forum Replies Created

Viewing 15 posts - 466 through 480 (of 2,007 total)

  • RE: Find nearest date (looking in both directions)

    I'll check when I get back from lunch. My gut feeling is that mine will be heavier on reads whilst yours is heavier on scans.

    Not a clue about which...

  • RE: How to order the rows?

    Same as the last post I made, still on lunch and waiting in the car so this is untested and written on my phone. Forgive any syntax errors.

    Here are two...

  • RE: Find nearest date (looking in both directions)

    I'm on my lunch waiting in the car for something, so this is untested and coded together using the text editor on my phone.

    Would this work for you?

    WITH...

  • RE: Pulling only today's date from delimited string with select query

    I'm sorry Howard, I completely missed this.

    You're correct that so long as the convert is wrapped around the scalar value it doesn't make a huge difference. It does make a...

  • RE: Search for a string in multiple columns, then insert into temp table

    Skanda (10/12/2012)


    My requeirement is

    Am having a batch_id in table1, based on batch_id having 10 records in table2.

    i.e. batch_id is same for 10 records in table2.

    Table2 columns names

    Record_id | ...

  • RE: sql server query prob

    asranantha (10/11/2012)


    Hi firends i have small doubt in sql server how to solve this issuse

    device type(android,blackbery)

    1)it is location flagged ,it is international,its rooming

    how to create stored procedure by taking input...

  • RE: sql server query prob

    asranantha (10/11/2012)


    Hi firends i have small doubt in sql server how to solve this issuse

    device type(android,blackbery)

    1)it is location flagged ,it is international,its rooming

    how to create stored procedure by taking input...

  • RE: sql server query prob

    asranantha (10/11/2012)


    Hi firends i have small doubt in sql server how to solve this issuse

    device type(android,blackbery)

    1)it is location flagged ,it is international,its rooming

    how to create stored procedure by taking input...

  • RE: sql server query prob

    asranantha (10/11/2012)


    Hi firends i have small doubt in sql server how to solve this issuse

    device type(android,blackbery)

    1)it is location flagged ,it is international,its rooming

    how to create stored procedure by taking input...

  • RE: sql server query prob

    asranantha (10/11/2012)


    Hi firends i have small doubt in sql server how to solve this issuse

    device type(android,blackbery)

    1)it is location flagged ,it is international,its rooming

    how to create stored procedure by taking input...

  • RE: sql server query prob

    asranantha (10/11/2012)


    Hi firends i have small doubt in sql server how to solve this issuse

    device type(android,blackbery)

    1)it is location flagged ,it is international,its rooming

    how to create stored procedure by taking input...

  • RE: Sql Query help - rearranging the column

    Yet another way : -

    WITH CTE ([Level],IDs,Name) AS (

    SELECT TOP 1 0, ID, CAST(FirstName AS NVARCHAR(4000))

    FROM #temp

    ORDER BY ID

    UNION ALL

    SELECT [Level] + 2, ID, CAST(Name+FirstName AS NVARCHAR(4000))

    FROM #temp

    INNER JOIN...

  • RE: Alphanumeric number generation

    Skanda (10/8/2012)


    Thank U Boss,

    It is looking great...

    but i need every record should have a numeric and alpabet,

    in present code, some records are only alphabetic....

    In your original post, you said: -

    Skanda...

  • RE: Alphanumeric number generation

    Skanda (10/8/2012)


    Below code is working in 'Oracle'

    i need same output in sql.....

    with digits as

    ( select n, chr(mod(n,36)+case when mod(n,36) < 10 then 48 else 55 end) d

    from (Select...

  • RE: Alphanumeric number generation

    Skanda (10/8/2012)


    Hi,

    not exactly like home work, as per my requirement only am posting.

    i've tried below code, but it is generating only number.

    WITH Sequence ( SeqNo) as

    (

    ...

Viewing 15 posts - 466 through 480 (of 2,007 total)