Geeks Talk

Prepare for your Next Interview




Unique key and Single Query

This is a discussion on Unique key and Single Query within the SQL forums, part of the Databases category; Suppose we have defined a unique on a column of a table? So at max how many null values can one insert for the same column. Also using Single query ...


Go Back   Geeks Talk > Databases > SQL

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 02-10-2008
Junior Member
 
Join Date: Jan 2007
Location: India
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
mail2das.ashok is on a distinguished road
Unique key and Single Query

Suppose we have defined a unique on a column of a table? So at max how many null values can one insert for the same column.
Also using Single query how to display numbers from 1 to 100
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-11-2008
Expert Member
 
Join Date: Apr 2007
Location: Bangalore
Posts: 447
Thanks: 20
Thanked 54 Times in 54 Posts
susarlasireesha is on a distinguished road
Re: Unique key and Single Query

select rownum from sys.all_tables where rownum <=100 ;
Reply With Quote
  #3 (permalink)  
Old 02-11-2008
Moderator
 
Join Date: Jun 2007
Location: Bangalore,India
Posts: 1,432
Thanks: 8
Thanked 125 Times in 112 Posts
debasisdas will become famous soon enoughdebasisdas will become famous soon enough
Re: Unique key and Single Query

You can insert any number of null values as NULL is not a value .

and NULL <> NULL.
Reply With Quote
Reply

  Geeks Talk > Databases > SQL


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Employee and manager name in single query Geek_Guest SQL 13 07-17-2008 12:07 PM
Insert of multiple records in single query ramvidhu SQL Server 5 07-03-2007 08:53 AM
Unique with NotNull?? vcyogi SQL Server 2 06-08-2007 10:15 AM
How to rectify this using a single update query pjitu1969 SQL 2 03-18-2007 03:14 AM
Single doubt on Single Call Object norman ASP.NET 0 08-29-2006 12:24 PM


All times are GMT -4. The time now is 07:21 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved