The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to transpose a table of data using awk ahjiefreak Shell Programming and Scripting 2 07-29-2008 12:43 AM
outputting data in table from grep results Chillspark Shell Programming and Scripting 2 05-12-2008 03:21 PM
Help Inserting data in mysql table vadharah Shell Programming and Scripting 11 03-30-2008 01:26 PM
Comparing data in file with values in table Mohit623 Shell Programming and Scripting 0 01-22-2008 08:57 AM
help for writing shell script to export table data sankarg Shell Programming and Scripting 3 10-18-2006 07:01 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 10-28-2008
manmeet manmeet is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 51
How to scan data directly from Table using a script

Hi,
I have a new task where i have two tables
Acct_ open and lookup table

In the Acct_open table there is all the information about an account including account number
and lookup table is having a country code and corresponding country name where that account has been opened.

both tables are connected with each other with country code as in the Acct_open table first three digits in the account number represents country code.

For e.g.
In Acct_open Table,

account number
300456728
200846745
101758599
-
-
-

and in the lookup table,
Country code country name
300 Singapore
200 Canada
101 US
201 India



now what i need to do is to scan each record in Acct_open table and check the corresponding country name, fetch that record and put into other directory, having same name as country name, in the form of sequential file.


Can anybody help me with this ASAP.


Thanks
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:32 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0