Hi there,
Thanks Golfboy,I have tried using your tip and it works fine only till 2 tables but when I try to join 7 tables as shown in the schema in my previous mail ,it does not give me exact result.Since I feel using LEFT OUTER JOIN is more relevant it reduces the records when I join all...
Hi there,
Thanks Golfboy, for the solution you have given to me.I think this should work properly for my schema.Since I am trying it fully now, I have not finished yet.So if I have some problem or if there is still some problem then I surely will ask you. Meanwhile let me try the solution...
Hi there,
Aalmeida thanks for this one.We are a little close.I have tried as you said,but in doing so it gives me a error which says :- "All queries in an SQL statement containing a UNION operator must have an equal number of expressions in their target lists." But when I changed the...
Hi there,
Stoyanbd, I tried using 'Joins' as you have mentioned but in doing so it gives duplicate records in all the columns with the original records because the number of records in all the tables are not the same.In students it is 1500.In degree the records are 1200 since 300 students...
Hi there,
Sorry for delay in replying.Thanks stoyanbd and aalmeida
I really appreciate your quick response and help.But I still need more details for query retrieving.
Aalmeida,I would definately try using Union but that doesn't solve my first part i.e selecting from multiple tables...
Hi there,
Stoyanbd thanks for your advice,this would help me to eliminate null records,but I still have no idea about the first part as to how can I display all the records from 5 tables into one single table avoiding duplicates.For detailed description see my message in the post...
Hi there,
I am doing a project for "Students Management System" using SQL server 7. I have all the rquired data of the students within 5 different tables but in a single database.I am trying to display all the data from 5 different tables into 1 single or in a new table.
Now my...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.