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

Query To Get The Data

How Can We Get The Data From A Single Table , By Comparing The Two Different Fields, Considering One Field Value From Row One And The Other Field Value From Row Two Having The Same Values???????
Aug 7 '08 #1
6 1632
RuralGuy
375 Expert 256MB
Have you tried playing in the Query Builder for a while?
Aug 7 '08 #2
Have you tried playing in the Query Builder for a while?

No ....How abt u??Do u hav the solution for this ???
Aug 7 '08 #3
NeoPa
32,556 Expert Mod 16PB
I think you need to explain your question better.

If this is about linking between different records in a table then we would need to know at least what you want to achieve.
Aug 7 '08 #4
I think you need to explain your question better.

If this is about linking between different records in a table then we would need to know at least what you want to achieve.
Below is the eg :table with data.Here NAME,ID,DNIS,CLI are the field name.
Expand|Select|Wrap|Line Numbers
  1. NAME         ID          DNIS       CLI
  2. BHARANI          1    33333333     22222             row1
  3. KAMAL         2       22222     44444             row2
  4. FAIZAL        3       11111111     55555             row3
  5. MANI          4       55555     66666             row4
What is the query to get the result as CLI of row1 = DNIS of row2.
Aug 8 '08 #5
Ruth2B
1
Expand|Select|Wrap|Line Numbers
  1. SELECT CsvTable.*
  2. FROM CsvTable 
  3. INNER JOIN CsvTable AS CsvTable_1 
  4. ON CsvTable.CLI = CsvTable_1.DNIS;
Aug 8 '08 #6
NeoPa
32,556 Expert Mod 16PB
Below is the eg :table with data.Here NAME,ID,DNIS,CLI are the field name.
Expand|Select|Wrap|Line Numbers
  1. NAME         ID          DNIS       CLI
  2. BHARANI          1    33333333     22222             row1
  3. KAMAL         2       22222     44444             row2
  4. FAIZAL        3       11111111     55555             row3
  5. MANI          4       55555     66666             row4
What is the query to get the result as CLI of row1 = DNIS of row2.
A query cannot be that specific - hence I asked you to explain your requirement more clearly.

Under which circumstance do you want to link the records?

Is it any match? Is it all matches? Are they to be grouped and aggregated?

We can't answer your question until you actually ask it.

PS. Having said that of course, Ruth2B's post illustrates the basics of how you'd access the data generally. You would also have access there to select fields from csvTable_1.
Aug 9 '08 #7

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

Similar topics

9
by: netpurpose | last post by:
I need to extract data from this table to find the lowest prices of each product as of today. The product will be listed/grouped by the name only, discarding the product code - I use...
12
by: Joe Stanton | last post by:
Hello Group I have a query that works in Oracle and SQL Server, but fails in Microsoft Access. The query is: SELECT data fromTABLE1 WHERE data>='A&' AND data<'A''' Here is my sample data:
6
by: Martin Lacoste | last post by:
Ok, before I headbutt the computer... don't know why when I add criteria in a query, I get an 'invalid procedure call'. I also don't know why after searching the help in access, the various access...
6
by: jjturon | last post by:
Can anyone help me?? I am trying to pass a Select Query variable to a table using Dlookup and return the value to same select query but to another field. Ex. SalesManID ...
6
by: tizmagik | last post by:
I am having a lot of difficulty generating a CrossTab Query based report. I have looked online for several tutorials and whatnot but I have not been able to really find what I'm looking for, nor...
1
by: rdemyan via AccessMonster.com | last post by:
My application has a table that contains information on buildings. The building data comes from another database and is imported from a spreadsheet into my application. Originally, I thought...
5
by: Wired Hosting News | last post by:
I tried to be breif and give a scenario so as not to be overlooked because it was soooo long. Let me give you real world. I am a manufacturer of goods and produce 11 items that are distributed...
2
by: John T Ingato | last post by:
If I run a query that calculates the sales data for all the inventory level in a table, how do I go about saving that sales data into a permanent table? I plan I using this sales data often, and...
16
by: ARC | last post by:
Hello all, So I'm knee deep in this import utility program, and am coming up with all sorts of "gotcha's!". 1st off. On a "Find Duplicates Query", does anyone have a good solution for...
2
by: lindabaldwin | last post by:
Hello everyone, I am fairly new to VBA. I have a worksheet in Excel, named "Data Sheet" from which I am trying to query data. This worksheet contains the following data: unit (column A), date...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.