Forum Replies Created

Viewing 15 posts - 3,886 through 3,900 (of 10,144 total)

  • RE: Expression type int is invalid for COLLATE clause

    bkshn (12/17/2013)


    Yes you are right

    collate cannot work on string INT thanks

  • RE: Nested CASE WHEN in SELECT

    Sean Lange (12/16/2013)


    Jeff Moden (12/16/2013)


    ChrisM@Work (12/16/2013)


    Jeff Moden (12/13/2013)


    Sean Lange (12/13/2013)


    ChrisM@Work (12/13/2013)


    Sean Lange (12/13/2013)


    ChrisM@Work (12/13/2013)


    Sean Lange (12/12/2013)


    Yes David is on the right path here. A case expression has not bearing on...

  • RE: select house_no order

    ;WITH MyAddresses (HouseNo) AS ( -- meagre sample data set

    SELECT '3-4-53 . HYDERABAD' UNION ALL

    SELECT '3-4-199/1.ASVV' UNION ALL

    SELECT '3-4-vizag' UNION ALL

    SELECT '3-4-22,nagar' UNION ALL

    SELECT '3-4-45.old colony' UNION ALL

    SELECT '3-4-66/99' UNION...

  • RE: Convert Columns to Row in SQL

    jeganbenitto.francis (12/16/2013)


    ChrisM@Work ,

    Thanks for your reply. I am getting below Error

    Ambiguous column name colEEEE .

    Without a table name or column names to work with, I made up the names...

  • RE: Convert Columns to Row in SQL

    SELECT ColAAAA, ColBBBB, ColCCCC, ColDDDD, ColEEEE

    FROM Sometables

    CROSS APPLY (

    SELECT colEEEE UNION ALL

    SELECT colFFFF UNION ALL

    SELECT colGGGG UNION ALL

    SELECT colHHHH

    ) x

  • RE: I have multiple identifier Could not be bound when I use ROW_NUMBER()

    bkshn (12/15/2013)


    Hello ChrisM@home

    let me explain my question again.

    I want to do paging with Row_Number on several Join Table.

    My temp table fill by executing UserMidlist Procedure

    I use code below

    DECLARE @RowsPerPage...

  • RE: Select is Slow

    yuvipoy (12/15/2013)


    here i meant scroll is where condition..... for every scroll i will be giving 1000 records...

    For the 1st time i will return 1000 records and next time 1001 to...

  • RE: Nested CASE WHEN in SELECT

    Jeff Moden (12/13/2013)


    Sean Lange (12/13/2013)


    ChrisM@Work (12/13/2013)


    Sean Lange (12/13/2013)


    ChrisM@Work (12/13/2013)


    Sean Lange (12/12/2013)


    Yes David is on the right path here. A case expression has not bearing on the number of rows returned,...

  • RE: Union Join between 3 SQL Queries

    Greg Edwards-268690 (12/13/2013)


    So this gets around the limitation that normally turns the outer join into an inner join.

    LEFT OUTER JOIN dbo.Email m

    ON m.EKey = e.EKey AND m.Next_of_Kin = 'true'

    Mostly...

  • RE: Union Join between 3 SQL Queries

    Here you are Greg, I'll leave you to draw your own conclusions.

    -- Original query using views reads employee table 5 times, child tables twice

    SELECT a.EKey, b.Emp_First, b.Emp_Last, c.Address, d.Phone, e.Email

    FROM...

  • RE: Nested CASE WHEN in SELECT

    Sean Lange (12/13/2013)


    ChrisM@Work (12/13/2013)


    Sean Lange (12/12/2013)


    Yes David is on the right path here. A case expression has not bearing on the number of rows returned, it merely affects the values...

  • RE: Union Join between 3 SQL Queries

    Greg Edwards-268690 (12/13/2013)


    Chris -

    I agree with a lot of your Why's. See this all the time.

    If you could look at this, run the view for next of kin info, and...

  • RE: query Help

    pietlinden (12/12/2013)


    Your table is really structured like that? What happens if you get more software packages? Does the table structure change? IF y

    I think storing information using this...

  • RE: what's the name for this type of table used in the following way?

    If it's an ETL job then you'd probably call it a data load; incremental, if you're not truncating the target table beforehand.

  • RE: Nested CASE WHEN in SELECT

    Sean Lange (12/12/2013)


    Yes David is on the right path here. A case expression has not bearing on the number of rows returned, it merely affects the values for a single...

Viewing 15 posts - 3,886 through 3,900 (of 10,144 total)