473,395 Members | 1,608 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,395 software developers and data experts.

Two tables....

kiss07
99
Hi friends,

I have Two Three tables are there, Some records are same in all
the three tables , How i retrieve the same records in three table.

pls anybody send query.

Thanks,
Kiss07.
Jan 5 '07 #1
7 1708
bartonc
6,596 Expert 4TB
Hi friends,

I have Two Three tables are there, Some records are same in all
the three tables , How i retrieve the same records in three table.

pls anybody send query.

Thanks,
Kiss07.
First:
The key is to use "normal form" so data is not duplicated in tables. Then your queries JOIN tables to get the data you want. This the whole point in using a RDBM. This is a must when it comes time to UPDATE your tables.
Any beginning SQL book will teach normalization.

Second:
If you want help with queries, you must post your table structure.
Jan 7 '07 #2
bartonc
6,596 Expert 4TB
Hi friends,

I have Two Three tables are there, Some records are same in all
the three tables , How i retrieve the same records in three table.

pls anybody send query.

Thanks,
Kiss07.
Here is a pdf tutorial that I just dug up for another member.
Jan 8 '07 #3
kiss07
99
Dear Bortonc,

Thanks for ur reply.

kiss07
Jan 8 '07 #4
kiss07
99
Dear Friend,.

This is my table Structure.

Emp:

Name dept salary
Clement Analayst $200
Louis Admin $230

Emp2:

Name dept salary
Clement Analayst $200
abraham tester $150


Emp3:

Name dept salary
Clement Analayst $200
John Programmer $500


I want first record of each table.. pls..

Kiss07
Jan 8 '07 #5
bartonc
6,596 Expert 4TB
Dear Friend,.
Expand|Select|Wrap|Line Numbers
  1.    This is my table Structure.
  2.  
  3.       Emp:
  4.  
  5.       Name                dept                   salary
  6.      Clement           Analayst               $200
  7.       Louis               Admin                  $230
  8.  
  9.      Emp2:
  10.  
  11.       Name                dept                   salary
  12.      Clement           Analayst               $200
  13.      abraham            tester                  $150
  14.  
  15.  
  16.     Emp3:
  17.  
  18.       Name                dept                   salary
  19.      Clement           Analayst               $200
  20.      John                 Programmer          $500
I want first record of each table.. pls..

Kiss07
You can
SELECT Emp.Name, Emp2.Name FROM Emp, Emp2 WHERE Name = 'Clement';
but the results won't be very useful. This is due to poor table design. I suggest that you read up on normalization of you database tables.
Jan 9 '07 #6
kiss07
99
Dear Bortonc,

Thanku very much...


Kiss07
Jan 9 '07 #7
bartonc
6,596 Expert 4TB
Dear Bortonc,

Thanku very much...


Kiss07
You're welcome. I need the practice writing queries.
Jan 10 '07 #8

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

Similar topics

44
by: Mariusz Jedrzejewski | last post by:
Hi, I'll be very grateful if somebody can explain me why my Opera 7.23 (runing under linux) doesn't show me inner tables. Using below code I can see only "inner table 1". There is no problem with...
3
by: Random Person | last post by:
Does anyone know how to use VBA to relink tables between two MS Access databases? We have two databases, one with VBA code and the other with data tables. The tables are referenced by linked...
11
by: dskillingstad | last post by:
I've been struggling with this problem for some time and have tried multiple solutions with no luck. Let me start with, I'm a novice at Access and I'm not looking for someones help to design my...
2
by: Jill Elaine | last post by:
I am building an Access 2002 frontend with linked tables to an encrypted Paradox 7 database. When I first create these linked tables, I'm asked for the password to the encrypted Paradox database,...
1
by: Shelby | last post by:
Problem: My company generates its own data export from a propietary database. These (free) tables can be read in C#.NET using a Visual FoxPro driver (vfpoledb). I can read each of the six tables...
59
by: phil-news-nospam | last post by:
In followups by Brian O'Connor (ironcorona) to other posts, he repeats the idea that using tables in CSS is not something that should be done because IE doesn't support it. Of course I'm not happy...
5
by: rdemyan via AccessMonster.com | last post by:
I have a need to add another field to all of my tables (over 150). Not data, but an actual field. Can I code this somehow. So the code presumabley would loop through all the tables, open each...
4
by: db2admin | last post by:
Hello, I want to plan rearranging tables in our database according to business areas. say all tables in business area A will be in seperate tablespace or tablespaces. I am planning to monitor...
25
by: bubbles | last post by:
Using Access 2003 front-end, with SQL Server 2005 backend. I need to make the front-end application automatically refresh the linked SQL Server tables. New tables will be added dynamically in...
11
by: shriil | last post by:
Hi I have this database that calculates and stores the incentive amount earned by employees of a particular department. Each record is entered by entering the Date, Shift (morn, eve, or night)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.