Advertisement

06.16.2008 at 10:23AM PDT, ID: 23488939
[x]
Attachment Details

SQL query from multiple tables.

Asked by mdunlap99 in MS SQL Server, SQL Server 2005

Tags: SQL select a single result set from multiple views

Greetings,
I have two views with identical data fields.  I want to select all the data from each and list them sequentially.  For example view1 has data field Order# with values 1,3,5,7.  View2 has Order# with values 2,4,6,8.  Is it possible to have a single select statement that produces a result set as Order# 1,2,3,4,5,6,7,8?  Start Free Trial
[+][-]06.16.2008 at 10:30AM PDT, ID: 21795679

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: MS SQL Server, SQL Server 2005
Tags: SQL select a single result set from multiple views
Sign Up Now!
Solution Provided By: chapmandew
Participating Experts: 2
Solution Grade: A
 
 
[+][-]06.16.2008 at 10:32AM PDT, ID: 21795702

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906