473,326 Members | 2,061 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,326 software developers and data experts.

Sql Joins

Does anyone have a decent resolution to data layer
handling of stored procedures with inner and outer joins?
Nov 22 '05 #1
4 1332
retrieving the data shouldn't be an issue........

Inserts, updates and deletes...... are a different story....... the SP
almost needs to be a program within itself...... to deal with FIELDS......
and it combines them up into the appropriate SQL statements..... for the
various tables

If you provided just a little more info on what your doing with the join....
it would be easier to assist.........

"Rob Morris" <ro***********@bellsouth.net> wrote in message
news:05****************************@phx.gbl...
Does anyone have a decent resolution to data layer
handling of stored procedures with inner and outer joins?

Nov 22 '05 #2
I agree it shouldn't be an issue ... and thanks for your
response.

Here is the problem, I have several middle-tiers and none
that required so much compatibility with existing "stuff"
as this one. I am dealing with stored procedures that may
have multiple table aliases to the same table. When I
return the data to the object layer I need to identify
fields with the same name uniquely, preferably by the
table alias. There was a way, I think, in ADODB to get
the table aliases. I can not seem to find a way to do
this in ADO.NET.

Any help is appreciated greatly,
- Rob
-----Original Message-----
retrieving the data shouldn't be an issue........

Inserts, updates and deletes...... are a different story....... the SPalmost needs to be a program within itself...... to deal with FIELDS......and it combines them up into the appropriate SQL statements..... for thevarious tables

If you provided just a little more info on what your doing with the join....it would be easier to assist.........

"Rob Morris" <ro***********@bellsouth.net> wrote in messagenews:05****************************@phx.gbl...
Does anyone have a decent resolution to data layer
handling of stored procedures with inner and outer
joins?

.

Nov 22 '05 #3
Within the four different DBs that I have played with, when there is naming
issues of the columns, the DBs have resolved it typically with a "1" or
"A/B" attached to the end of the column name......
(Select * from Customer, Orders)... would result in the customerID to be
recalled twice..... hence two columns, different names..... a 1 & 2
....... or an A & B versions..... one from each table

As far as I'm aware, the DB table names are not available as part of the
dataset/datatable structure....

The DB table used to be available through VB6 and ADODB recordsets.... as
long as it was still connected to the database... but lost that as soon as
the recordset crossed over a process boundry (or so that was our
experience).

HTH....... aloha

"Robert Morris" <ro***********@bellsouth.net> wrote in message
news:08****************************@phx.gbl...
I agree it shouldn't be an issue ... and thanks for your
response.

Here is the problem, I have several middle-tiers and none
that required so much compatibility with existing "stuff"
as this one. I am dealing with stored procedures that may
have multiple table aliases to the same table. When I
return the data to the object layer I need to identify
fields with the same name uniquely, preferably by the
table alias. There was a way, I think, in ADODB to get
the table aliases. I can not seem to find a way to do
this in ADO.NET.

Any help is appreciated greatly,
- Rob
-----Original Message-----
retrieving the data shouldn't be an issue........

Inserts, updates and deletes...... are a different

story....... the SP
almost needs to be a program within itself...... to

deal with FIELDS......
and it combines them up into the appropriate SQL

statements..... for the
various tables

If you provided just a little more info on what your

doing with the join....
it would be easier to assist.........

"Rob Morris" <ro***********@bellsouth.net> wrote in

message
news:05****************************@phx.gbl...
Does anyone have a decent resolution to data layer
handling of stored procedures with inner and outer

joins?


.

Nov 22 '05 #4
Steve, Thank you very much, I got the 1,2 thing but I
have a feeling that I am going to have to make an ADODB
call till they can get their act straight, thanks!
-----Original Message-----
Within the four different DBs that I have played with, when there is namingissues of the columns, the DBs have resolved it typically with a "1" or"A/B" attached to the end of the column name......
(Select * from Customer, Orders)... would result in the customerID to berecalled twice..... hence two columns, different names..... a 1 & 2....... or an A & B versions..... one from each table
As far as I'm aware, the DB table names are not available as part of thedataset/datatable structure....

The DB table used to be available through VB6 and ADODB recordsets.... aslong as it was still connected to the database... but lost that as soon asthe recordset crossed over a process boundry (or so that was ourexperience).

HTH....... aloha

"Robert Morris" <ro***********@bellsouth.net> wrote in messagenews:08****************************@phx.gbl...
I agree it shouldn't be an issue ... and thanks for your response.

Here is the problem, I have several middle-tiers and none that required so much compatibility with existing "stuff" as this one. I am dealing with stored procedures that may have multiple table aliases to the same table. When I
return the data to the object layer I need to identify
fields with the same name uniquely, preferably by the
table alias. There was a way, I think, in ADODB to get
the table aliases. I can not seem to find a way to do
this in ADO.NET.

Any help is appreciated greatly,
- Rob
>-----Original Message-----
>retrieving the data shouldn't be an issue........
>
>Inserts, updates and deletes...... are a different

story....... the SP
>almost needs to be a program within itself...... to

deal with FIELDS......
>and it combines them up into the appropriate SQL

statements..... for the
>various tables
>
>If you provided just a little more info on what your

doing with the join....
>it would be easier to assist.........
>
>"Rob Morris" <ro***********@bellsouth.net> wrote in

message
>news:05****************************@phx.gbl...
>> Does anyone have a decent resolution to data layer
>> handling of stored procedures with inner and outer

joins?
>
>
>.
>

.

Nov 22 '05 #5

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

Similar topics

6
by: jgalzic | last post by:
Hi, I'm having trouble doing joins correctly on two tables. I've read up a lot about the different types of joins and tried lots of variations on inner, outer, and left joins with no avail....
3
by: Prem | last post by:
Hi, I am having many problems with inner join. my first problem is : 1) I want to know the precedance while evaluating query with multiple joins. eg. select Employees.FirstName,...
4
by: Sri | last post by:
I am writing a download process in which i have a condition where i need to join four tables. Each table have lot of data say around 300000 recs. my question is when i am doing the joins on...
1
by: Prem | last post by:
Hi All Database Gurus, I am trying to write code which will produce all the possible valid queries, given tables and join information for tables. Right now i am just trying to construct all the...
4
by: jbm05 | last post by:
Hi, I'm curious about the computational complexity of a query I have. The query contains multiple nested self left joins, starting with a simple select, then doing a self left join with the...
4
by: michaelnewport | last post by:
Greetings, I like to write my inner joins as below, but someone at work tells me its not as 'performant' as using the 'inner join' statement. Is this true ? Is there a better way to write it...
7
by: Steve | last post by:
I have a SQL query I'm invoking via VB6 & ADO 2.8, that requires three "Left Outer Joins" in order to return every transaction for a specific set of criteria. Using three "Left Outer Joins"...
2
by: narendra vuradi | last post by:
Hi I have a requirement where in i haev to convert the SQL from Oracle to the one which will run on the SQL server. in the Oracle Query i am doing multiple joins, between some 13 tables. and...
9
by: shapper | last post by:
Hello, I am used to SQL but I am starting to use LINQ. How can I create Left, Right and Inner joins in LINQ? How to distinguish the different joins? Here is a great SQL example:...
36
by: TC | last post by:
I've used Access for many years. Several times, I've encountered a bug which I refer to as the "Vanishing Joins" bug. When it happens, joins vanish randomly from queries. More specifically, all...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.