If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > field update

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-04-03, 21:46
damnnono_86 damnnono_86 is offline
Registered User
 
Join Date: Nov 2003
Posts: 74
field update

hi all,

i have a search form where i want to display the fields in the form from 3 different tables.
i have attached a db for your reference.

how can i do that???

pls advice
nono
Attached Files
File Type: zip customersearch.zip (89.9 KB, 9 views)
Reply With Quote
  #2 (permalink)  
Old 11-05-03, 02:40
nitingm nitingm is offline
Registered User
 
Join Date: Jul 2003
Location: Austin, TX, USA
Posts: 278
Use Joins

Hi

What is the information that you want to achieve, I mean which fields do u want to display, can u please provide us some information.

The same can be obtained using joins and nested selects.

Please also let us know your database, operating system this is mandatory.

regards

nitin.
Reply With Quote
  #3 (permalink)  
Old 11-05-03, 02:59
damnnono_86 damnnono_86 is offline
Registered User
 
Join Date: Nov 2003
Posts: 74
fields update

hi,

the form that i have attached is the fields that i want to display. but however i do not know how to retireve data from 3 tables as a time.

pls guide me along to get all the fields on that form.

as requested :
db - database 2000
os - win2000

pls advice
nono
Reply With Quote
  #4 (permalink)  
Old 11-05-03, 03:18
nitingm nitingm is offline
Registered User
 
Join Date: Jul 2003
Location: Austin, TX, USA
Posts: 278
Query.

Hi Nono,

Is this the information you need to display.

SELECT BranchInformation.Branch Code, BranchInformation.Branch Name, Customer_Account_Table.Account No, Customer_Account_Table.Account Type, Customer_Account_Table.Balance, Customer_Account_Table.Quantity, Customer_Table.Name, Customer_Table.NRIC, Customer_Table.Address, Customer_Table.Contact No
FROM Customer_Table INNER JOIN (BranchInformation INNER JOIN Customer_Account_Table ON BranchInformation.Branch Code = Customer_Account_Table.Branch Code) ON Customer_Table.NRIC = Customer_Account_Table.NRIC

Please use the wizard facility in db2 which is really helpful.

You can also use the create query in design view in access.

Hope that helps

Nitin
Reply With Quote
  #5 (permalink)  
Old 11-05-03, 03:24
damnnono_86 damnnono_86 is offline
Registered User
 
Join Date: Nov 2003
Posts: 74
field update

hi all,

Thanks for the subselect statement
Your help is greatly appreciated.


Cheers!
nono
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On