How to select only capital word?

  • In company there are two version of app. New one save order status as "Ordered" the old save as "ORDERED". In order to find out who use old version, how to code in where clause like below?

    select userid from order where status = 'ORDERED' (only capital)

    (Above code will list all)

  • Try this:

    select userid from order

    WHERE status = UPPER(status) COLLATE SQL_Latin1_General_CP1_CS_AS

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply