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

SQL Innerjoins and data views

Is there a way to use more then 1 table in a dataview? suppose you had 2
tables with an innerjoin in the sql statement, how do you retrieve this info
into a data table? or do you need to create 2 data tables and add a relation
to them? How about using Views in SQL server itself. Can I just create a
view in SQL Server (with the inner join in the view), then would this act as
a single table? Thanks
Nov 19 '05 #1
2 889
Hi Shawn,

If you mean to do join query to multi-DataTables in a
DataSet, I'm suppose you can't do it. You need directly
join query multi-tables from database to get single result
set.

HTH

Elton Wang
el********@hotmail.com

-----Original Message-----
Is there a way to use more then 1 table in a dataview? suppose you had 2tables with an innerjoin in the sql statement, how do you retrieve this infointo a data table? or do you need to create 2 data tables and add a relationto them? How about using Views in SQL server itself. Can I just create aview in SQL Server (with the inner join in the view), then would this act asa single table? Thanks
.

Nov 19 '05 #2
Hi Shawn:

There is no built in way, as Elton mentioned. MS does provide some
code to help out:

http://www.google.com/search?hl=en&q....microsoft.com

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Thu, 7 Apr 2005 12:00:59 -0600, "Shawn H. Mesiatowsky"
<smesiatowsky@_no_spam_perfectfit-ind.com> wrote:
Is there a way to use more then 1 table in a dataview? suppose you had 2
tables with an innerjoin in the sql statement, how do you retrieve this info
into a data table? or do you need to create 2 data tables and add a relation
to them? How about using Views in SQL server itself. Can I just create a
view in SQL Server (with the inner join in the view), then would this act as
a single table? Thanks


Nov 19 '05 #3

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

Similar topics

3
by: Pablo Sanchez | last post by:
Hiya! I've combed the SQL Server 2000 online help but I don't see anything akin to Sybase ASE's 'montor' views - equivalent to Oracle's V$ views. The views are performance views which contain...
7
by: Will | last post by:
On the subject of Data Warehouses, Data Cubes & OLAP…. I would like to speak frankly about Data Warehouses, Data Cubes and OLAP (on-line analytical processing). Has it dawned on anyone else...
1
by: Win2003InstallIssues | last post by:
Hello, I am relatively new to doing non-trivial SQL queries. I have to get data out of 8 diff views based on a parameter Name. There is a view having name-ssn pairs. All other views have SSN...
6
by: Chad Richardson | last post by:
I have not used the copy objects wizard that much. I used it today to copy 4 views from my dev box to production. It copied the views, but also wiped out my data in all the tables that the views...
9
by: AnandaSim | last post by:
Hi All, I've had Access 97, 2000 connections to the corporate Oracle database for a few years now - but seldom use it. When I did use it years ago, performance was not fast but the features were...
17
by: stathis gotsis | last post by:
Hello everyone, I am tying to come up with an elegant way to process some input data that come from a form. When the user hits the 'Submit' button, i want the form to appear again with the...
1
by: Bill Sexton | last post by:
I have created a custom DataSourceControl to interface to a search engine. The DataSourceControl exposes multiple views of the same data. The first is the actual search results. The other views...
1
by: phanimadhav | last post by:
hello this is sudheer,I need basics of innerjoins ...so can any one help.please send the related link. thanx
1
by: news.magnet.ch | last post by:
Hi all Probably an easy question for an oracle dba or even power user: I would like to copy the data warehouse schema on my laptop for testing and developing our application. - Unfortunately...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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,...
0
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...

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.