Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

hi,

how to match retrieve the unmatched records from 2 tables
in which we dont have any primary key. example : table1 has
1,2,3,4,5 and table2 has 1,2,3,4,5,6,7,8,9,10 and i want
the numbers from 6 to 10 to be displayed and should not
come as null. i need the numbers. please reply as soon as
possible.

Answer Posted / gangadhar

select * from table2 where id not in ( select id from
table1)

Is This Answer Correct ?    18 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What specific conditions database should meet, before you can bulk copy data into it using bcp?

934


What is the difference between Normalization and De-normalization?

1029


can an order by clause be used in a creation of a view?

1099


What is a benefit of using an after insert trigger over using a before insert trigger?

929


Is sql server difficult to learn?

863


What is resource db in sql server?

963


How much memory that we are using in Logshipping Concept?

1727


How many triggers you can have on a table?

934


What is difference between views and tables?

913


Can group by be used without aggregate functions?

856


What are key constraints?

927


What language is sql server written in?

985


When would you use sql joins?

910


what is the system function to get the current user's user id? : Sql server database administration

953


Can primary key be null?

880