skip to main | skip to sidebar

ASP.NET / SQLSERVER

All I have learned.

Tuesday, April 10, 2007

CASE STATEMENT IN SQL SERVER

update bladder_data set plant_id =
case
when charindex('M',bladder_barcode,3) > 3 and charindex('M',bladder_barcode,3) < (len(bladder_barcode)-8) then 3 else 4 end
Posted by Madhusudan Gohil at 6:53 PM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2014 (1)
    • ►  March (1)
  • ►  2009 (5)
    • ►  September (2)
    • ►  March (2)
    • ►  January (1)
  • ►  2008 (12)
    • ►  November (1)
    • ►  August (6)
    • ►  July (1)
    • ►  June (4)
  • ▼  2007 (45)
    • ►  December (5)
    • ►  November (11)
    • ►  October (12)
    • ►  May (1)
    • ▼  April (7)
      • Sqlserver inbuilt stored procedure
      • Dynamic code invocation.
      • Windows PowerShell
      • CASE STATEMENT IN SQL SERVER
      • Postback Trace Events
      • Trace Page Life Cycle
      • Series of events in page life cycle
    • ►  March (9)

About Me

Madhusudan Gohil
Systems Analyst
View my complete profile