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 is the command to change the recovery model?

1048


List all the types of user-defined functions?

1103


what are statistics, under what circumstances they go out of date, how do you update them? : Sql server database administration

952


Can group functions be used in the order by clause in ms sql server?

1016


How can I get data from a database on another server?

998


What are data regions?

135


What is postgresql server?

1007


why would you call update statistics? : Sql server database administration

1091


What the class forname () does?

1067


How to rebuild all indexes on a single table?

1063


What is the use of toad or sqldbx.?

1156


Explain how to send email from sql database?

1052


What does it mean to normalize data?

947


Can another user execute your local temporary stored procedures?

990


Explain what role entity and relationship play in an ER diagram.

1075