Forum Replies Created

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

  • RE: insert data into two tables

    i give example only..

    how to insert two tables in single quarie ...like above

  • RE: display order

    i want output like display fourthpart order

    8-3-132/3

    8-3-132/3

    8-3-132/3

    8-3-132/3

    8-3-132/53

    8-3-132/53

    8-3-132/75

    8-3-132/77A

    8-3-132/77/A

    8-3-132/77/A

  • RE: display order

    using ur code

    not display ordey

    if my table like

    3-2-10

    3-2-100

    3-2-11

    3-2-3

    3-2-33

    3-2-4

    using ur code display order o/p like

    3-2-10

    3-2-11

    3-2-100

    3-2-3

    3-2-33

    3-2-4

  • RE: select house_no order

    if houseno like 3-1-900 ,3-1-92/4 ,.......not display order

    output like

    3-1-900

    3-1-92/4 hyd

    3-1-99/7

    using.......

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

    SELECT '3-1-900' UNION ALL

    SELECT '3-1-92/4 hyd' UNION ALL

    SELECT '3-1-99/7'

    )

    SELECT a.*,...

  • RE: select house_no order

    if houseno like 3-1-900 ,3-1-92/4 ,.......not display order

    output like

    3-1-900

    3-1-92/4 hyd

    3-1-99/7

    using.......

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

    SELECT '3-1-900' UNION ALL

    SELECT '3-1-92/4 hyd' UNION ALL

    SELECT '3-1-99/7'

    )

    SELECT a.*,...

  • RE: select house_no order

    if ex - table like this below format using ur quarie not display order

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

    SELECT '3-12-19 . HYDERABAD'...

  • RE: select house_no order

    k ..thanku

    if house no like...

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

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

    SELECT '3-49-vizag' UNION ALL

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

    SELECT '4-5-1300.old colony' UNION ALL

    SELECT '4-500-120' UNION ALL

    SELECT '3-4-' UNION ALL

    SELECT...

  • RE: select house_no order

    Thanks for replay ......

    ur quarie is working ....... thank u sir

  • RE: select quarie between houseno ..........

    again it shows error like

    Msg 537, Level 16, State 5, Line 1

    Invalid length parameter passed to the LEFT or SUBSTRING function.

  • RE: select quarie between houseno ..........

    Thanks for Replay...........

    but shows error

    " Conversion failed when converting the varchar value '300,' to data type int. "

  • RE: select house_no order

    Thanks for replay ...but ur quarie is not work for above format

  • RE: display order by like 1,2,3,4,5...............plz write quarie

    IT SHOWS ERROR

    Conversion failed when converting the varchar value '1867 C' to data type int

  • RE: display order by like 1,2,3,4,5...............plz write quarie

    the first method is ok but ..... it works only if housenumber is integer only ...

    it shows error when housenumber mixed wit varchar .............

    plz write the code if...

  • RE: display order by like 1,2,3,4,5...............plz write quarie

    Msg 245, Level 16, State 1, Line 1

    Conversion failed when converting the nvarchar value '17-280' to data type int.

  • RE: display order by houseno

    it shows error like

    Msg 245, Level 16, State 1, Line 1

    Conversion failed when converting the nvarchar value '17-280' to data type int.

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