473,473 Members | 1,949 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

find tablename, attributvalue given

Hi

I have a given attributvalue of a specific attribut (sys_obid=81653) which
occurs in multiple tables. Now, I should know the tablename of the table in
which this attribut occurs.

Which possiblities do I have to find it out?

-> "find tablename where sys_obid=81653 ....?"

Thanks a lot.

Christian
Jul 19 '05 #1
2 1727

Hi, Christian:

Normally, you'd want to find the rows in specific tables which contain a
certain value. What is it you want to get out of your query?

ie. let's pretend you want a customer id. You can select from the
CUSTOMER table where the customerid = 55.

Say you want to show all the orders where the customerid is 55. Select
from the ORDERS table where customerid = 55.

If you also wanted to show the person's name next to each order record,
you would do a table join. For example:

SELECT ORDERS.ORDERID, CUSTOMER.NAME FROM ORDERS JOIN CUSTOMERS ON
(ORDERS.CUSTOMERID = CUSTOMER.CUSTOMERID)
WHERE ORDERS.CUSTOMERID = 55
ORDER BY ORDERID;
Hope that helps a little,
John
Christian Höhener wrote:
Hi

I have a given attributvalue of a specific attribut (sys_obid=81653) which
occurs in multiple tables. Now, I should know the tablename of the table in
which this attribut occurs.

Which possiblities do I have to find it out?

-> "find tablename where sys_obid=81653 ....?"

Thanks a lot.

Christian

Jul 19 '05 #2

Hi, Christian:

Normally, you'd want to find the rows in specific tables which contain a
certain value. What is it you want to get out of your query?

ie. let's pretend you want a customer id. You can select from the
CUSTOMER table where the customerid = 55.

Say you want to show all the orders where the customerid is 55. Select
from the ORDERS table where customerid = 55.

If you also wanted to show the person's name next to each order record,
you would do a table join. For example:

SELECT ORDERS.ORDERID, CUSTOMER.NAME FROM ORDERS JOIN CUSTOMERS ON
(ORDERS.CUSTOMERID = CUSTOMER.CUSTOMERID)
WHERE ORDERS.CUSTOMERID = 55
ORDER BY ORDERID;
Hope that helps a little,
John
Christian Höhener wrote:
Hi

I have a given attributvalue of a specific attribut (sys_obid=81653) which
occurs in multiple tables. Now, I should know the tablename of the table in
which this attribut occurs.

Which possiblities do I have to find it out?

-> "find tablename where sys_obid=81653 ....?"

Thanks a lot.

Christian

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Liam3 | last post by:
I'm having a problem with a table that accidently had a column added whose type is the same as the table. This is seriously creating a problem as I cannot delete the table and I really don't have...
4
by: Filips Benoit | last post by:
Dear All, Is ( how) it possible to find the tablename of the table that is related to a field. Field CLIENT_TITLE_ID is related to table TITLE Thanks, Filip
1
by: Brian | last post by:
I'm trying to find a way to search multiple tables for the same record. Say I have 3 tables all with a name column, I need to search all 3 tables and find matching names. Is there an easy way to...
8
by: chippy | last post by:
Hi, I've a VB script that creates a Access object in a word doc. Here is the full script. It works for all but the Export. Which always fails with a 3011 error. If I do the same in Access as a...
1
by: Kruno Milicevic | last post by:
I want to fill DataGrid with some table from my database. I usual use something like this: string sqlString ="SELECT * FROM TableName"; OleDbCommand myOleDbCommand = new OleDbCommand(sqlString ,...
3
by: Dag-Erling Smørgrav | last post by:
The PL/PGSQL documentation contains at least two examples of functions which take an argument of type "tablename", which then serves as a table name in a query. Here's one of those examples: >...
10
by: technocrat | last post by:
How can i find the load state of the table using SQL, i can do "load query table tablename" but i cannot execute this as a sql statement. What i want to do is, i m using a java stored priocedure to...
4
by: Mike Charney | last post by:
What is the easiest and simplest way to find out if a table exists in an Access Data Project? (SQL Svr 2000 Standard using MS-Access 2003 for connection.) Mike Charney m charney at dunlap...
3
by: JF | last post by:
I would like to automate a Union query going through the tables of my dataset using VBA: I have this code: ------------------------------------------------------------------- Sub ssql() Dim...
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,...
1
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...
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.