DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: values into columns

Threaded View

  1. #3
    Join Date
    Mar 2001
    Location
    south africa
    Posts
    401
    thanks for looking into

    when i use the case stmt i get lot of blanks

    Code:
    CASE WHEN  fNAME='Units' then p.value else null END AS unit_name,
    CASE WHEN  fNAME='Date' then p.value else null END AS date_name
    like this ..
    Code:
    Order_ID	UNIT_NAME	DATE_NAME
    30766600	1	
    30766600		090909
    30766600	1	
    30766600		090909
    30766600	2	
    30766600	13
    but i am looking for

    Code:
    Order_ID	UNIT_NAME	DATE_NAME
    30766600	1	090909
    30766600	2	090909
    30766600	1	
    30766600	13
    hope this helps

    thanks
    Last edited by prodadmin; 03-15-2010 at 08:26 AM. Reason: code111

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width