1 votes 1 votes IN SQL WHILE WE USING UNIQUE CONSTRAINT , ARE WE ALLOWED TO USE NULL VALUE OR NULL VALUES OR NONE OF THEM ???????? Databases sql + – Deepanshu asked Aug 13, 2018 Deepanshu 485 views answer comment Share Follow See all 7 Comments See all 7 7 Comments reply Shaik Masthan commented Aug 13, 2018 reply Follow Share unique constraint use for defining that values of that field can not be duplicated. it can have NULL also. This is the major difference between unique key and candidate key. 2 votes 2 votes pankaj_vir commented Aug 13, 2018 reply Follow Share A unique constraint is a type of column restriction within a table, which dictates that all values in that column must be unique though may be null. 1 votes 1 votes Deepanshu commented Aug 13, 2018 reply Follow Share so it can have one null only or many nulls in given column 0 votes 0 votes Shaik Masthan commented Aug 13, 2018 reply Follow Share As per my knowledge In SQL, every null is different with others... Therefore it can have many null values 1 votes 1 votes Verma Ashish commented Aug 13, 2018 reply Follow Share SQL allows NULL by default. ( if you not apply constraint 'NOT NULL'.) 1 votes 1 votes smsubham commented Aug 13, 2018 reply Follow Share As per this its possible. But it varies across specific different version of SQL. Link: https://www.codeproject.com/Questions/488710/canplusweplussetplusuniquepluscolumnplusasplusnull 1 votes 1 votes smsubham commented Aug 13, 2018 reply Follow Share ANSI SQL allows columns with UNIQUE constraints to have multiple NULLs. These NULLs don't count against the uniqueness of the column, because NULL is not equal to another NULL. Source: http://qr.ae/TUIddJ 1 votes 1 votes Please log in or register to add a comment.