Prepare for your Next Interview
This is a discussion on interview question within the SQL Server forums, part of the Databases category; Hello, It is Interview Quetion,I am joing 5 tables,if query is too long,what i have to do,what are the other option?...
|
|||
|
interview question
Hello,
It is Interview Quetion,I am joing 5 tables,if query is too long,what i have to do,what are the other option? |
| The Following 5 Users Say Thank You to nithya R For This Useful Post: | ||
| Sponsored Links |
|
|||
|
Re: interview question
other option is to use subquery for example
select * from table1 where col1 in (select col1 from table2 where col2 in (.................)))) ----V V---- Vikas Vaidya (Please mark the quote as thanks if u found the answer useful) |
|
|||
|
Re: interview question
Hello,
Your question is not clear. From what I understood and will do 1. First check how many rows are there in the individual tables that need to be joined. 2. Then note down the foreign key columns. 3. Get the data in to temporary table(s) by joining 2 tables at a time which will be easy when writing the final query to output the result set. Hope this helps. Thanks |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| interview on Informatica with Wipro...interview questions please | chakri_kc | Data Warehousing | 2 | 03-05-2008 02:55 PM |
| Interview Related Question | jnyanesh | Interviews | 3 | 02-12-2008 08:11 AM |
| Networking Interview question | nikhil_rattan | Interviews | 0 | 01-18-2007 03:06 PM |
| Sybase Interview question & Answer | lalushrivastava | Database General | 1 | 01-12-2007 04:35 AM |
| Idea to answer an interview question | scott | Interviews | 1 | 07-29-2006 04:16 PM |