Null Rows

  • New to SQL, created a table and it has NULL rows, all fields are NULL and cannot figure out how to get rid of these rows?

    Thanks in advance.

  • try:

    delete from your_table

    where col1 is null and col2 is null and col3 is null

    Basically have a "is null" statement for every column in the table.

    Gregory A. Larsen, DBA

    Contributor to 'The Best of SQLServerCentral.com 2002' book. Get a copy here: http:www.sqlservercentral.com/bestof/purchase.asp

    Need SQL Server Examples check out my website at http://www.geocities.com/sqlserverexamples

    Gregory A. Larsen, MVP

  • Thank you so much!

    Happy Holidays!

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

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