> Thanks Roger,
> Will that not cause issues when updating the dataset when
[quoted text clipped - 3 lines]
> I tried using select AgencyName as Name etc, and then updating the dataset
> but haven't changed the actual dataset column names;
I was just thinking that if your tables are already 1 column name from being
of identical schema as it is, and they hold the same basic information: a
name, you may as well rename the columns to simplify data access.
Preferably (in this case), I would combine both the tables into one standard
table (like ContactInfo for example) and add separate tables for Agencies
and Advertisers that have a foreign key relationship with ContactInfo. This
makes much more sense to me, but I have limited knowledge about your system
to go on.
On the other hand, if this database is already in use these changes will
certainly break other client applications.
The good news is you can get around this without breaking existing tools by
leaving them as they are and adding a identical column alias to each table's
...Name column.
You just need to think about what you're trying to do now and who (if
anyone) is already relying on this database. There are many ways to
simplify your Dataset dilemma, the route you take will be determined by the
issues listed above, and many others.
Just think it through (and _always_ backup before you go wild with schema
changes:) )

Signature
Roger Frost
"Logic Is Syntax Independent"
Robert Smith - 11 Mar 2008 15:56 GMT
Thanks Roger,
Actually the Identifer key also have different names. One is
AgencyId and the other is AdvertiserId. Does your theory still hold true
knowing this information.
> > Thanks Roger,
> > Will that not cause issues when updating the dataset when
[quoted text clipped - 28 lines]
> Just think it through (and _always_ backup before you go wild with schema
> changes:) )
Roger Frost - 11 Mar 2008 18:37 GMT
> Thanks Roger,
> Actually the Identifer key also have different names. One is
> AgencyId and the other is AdvertiserId. Does your theory still hold true
> knowing this information.
As far as creating column aliases, no problem there. The rest depends on if
the database is already serving critical applications or not.
If this project is still in development or beta phase consider the
following:
Move the duplicated columns from the Agency and Advertiser tables to a new
table, from my understanding, this will be everything except the current
primary keys. I'll call the new table ContactInfo
ContactInfo will also have a primary key: ContactInfoID. Create a foreign
key relationship between ContactInfo.ContactInfoID and Agency.ContactInfoID
as well as between ContactInfo.ContactInfoID and Advertiser.ContactInfoID
Now you can pull the data from the ContactInfo table and it will be in a
schema standard to your database for both Agency and Advertiser records.
As a bonus (and really the major factor in relational database design); if
it is possible for a company to be an Agency and an Advertiser at the same
time, you have now reduced the data storage footprint.
Relational databases are extremely good at what they do, (dare I say) the
most efficient of all computer processes short of the BIOS. With a handful
of keywords, a SQL server can do amazing things very quickly with vast
amounts of data if the design is well planned. When the design is right,
almost everything falls into place.
You might also try one of the database groups, since we have completely left
the scope of this one long ago. That was my fault.
Hope this helps.

Signature
Roger Frost
"Logic Is Syntax Independent"