473,385 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Records In a Single Table

190 100+
I have two tables emp_master and relations_details having Ins_no as a common field ...................

emp_master contain all info related to employee and relation_details contain details of all family members of employee .....



Expand|Select|Wrap|Line Numbers
  1.  
  2. emp_master 
  3.  
  4. Ins_no      Name 
  5. 123           xyz
  6.  
  7.  
  8.  
  9. relation_detail 
  10.  
  11. Ins_no   name relation
  12. 123        xy   brother
  13. 123        xz   brother
  14. 123        yz   sister
  15. 123        ab   mother
  16.  
  17.  
  18.  
  19.  



For some reason i have to make a single table for both





Expand|Select|Wrap|Line Numbers
  1.  
  2. emp_master 
  3.  
  4. Ins_no      Name       relation1      name    relation2  name 
  5. 123           xyz          brother          xy         brother   xy 
  6.  
  7.  
  8.  

The Problem is that i have already tablew entered in 2 tables and now i want all entries as single , how can i do that ?
Jun 26 '08 #1
4 1088
NeoPa
32,556 Expert Mod 16PB
Are you asking how to show all entries for Ins_No=123 in a single line of output?
Jun 27 '08 #2
Shalini Bhalla
190 100+
Yes , i want all family members in a sigle row , irrespective of no of brothers or sisters ......................not in out put but in a new table or in a query
Jun 28 '08 #3
missinglinq
3,532 Expert 2GB
And how many "child" fields do you plan on having? Four? Six? A dozen? You're talking about adding fields in a combined table when you should be adding records in your relation_detail table. In other words, you're talking about going from doing this correctly, which is how you currently have it set up, to doing it incorrectly!

For some reason I have to make a single table for both
What is the reason that makes you feel that you have to have a single table?

Linq ;0)>
Jun 28 '08 #4
NeoPa
32,556 Expert Mod 16PB
What would be the design of your output data, whether in Query or Table?

This needs consideration. As you may have worked out from Linq's post, almost anything you say here will be wrong, as this request makes little logical sense. Try to answer this anyway as it may help you realise what we're talking about.
Jun 30 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Jamie Fryatt | last post by:
Hi everyone, here's what id like to do. I have a table with 2 fields, name and value I need to be able to add multiple records quickly, for example I need to add name value abc 1...
8
by: tom | last post by:
I am new to SQL administration. >From a list of IDs that are the primary key in one table (i.e. Customer Table), I want to make changes in tables that use those IDs as a foreign key. ...
1
by: Lol | last post by:
My apologies if this has been asked a thousand times before: I have (to start with) a simple database with a single table and a single report. The purpose of the database is to allow gift vouchers...
35
by: deko | last post by:
Do I get more scalability if I split my database? The way I calculate things now, I'll be lucky to get 100,000 records in my Access 2003 mdb. Here some math: Max mdb/mde size = 2000 x 1024 =...
6
by: Damon Grieves | last post by:
Hi I just want to be sure I understand how the Access client works. If I have an Access back end with a million records on a server and an Access client. If the client is installed on the users pc...
13
by: Jan | last post by:
Hi I have a database that I use to keep track of the sales promotions that we send to companies. I normally send a mailing based on a subset of the companies in the database (found using the...
5
by: Neil | last post by:
I'm running Access 2000 with a SQL 7 back end, using ODBC linked tables in an MDB file. The db is used by about 30 users on a LAN, and an additional 10 or so on a WAN. Recently, one of the WAN...
1
by: bluereign | last post by:
Thank you for your assistance. I am a novice looking to JOIN and append or combine records from 2 current Tables into 2 new Tables named below. I have been able to JOIN Tables with the script...
13
by: ramprakashjava | last post by:
hi, i hav "java.lang.NullPointerException" error while Deleting table records using checkbox in jsp here i enclosed files help quickly plzzz.. ...
2
by: jjwiet | last post by:
Hello, I use access 2003 and attempting to export/copy records between two access databases (almost identical) with multiple tables (both databases having the same relations between the tables)....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.