Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

display a query from 2 diferent tables

Posted on 2014-04-23
Last Modified: 2014-04-23
hi all
how do i acomplish
select distinct proveedor from proveedor
select distinct empresa from contactos
in a single query order by proveedor,contactos
is that posible
Question by:edo60
  • 2

Author Comment

ID: 40018619
i mean in a single order from a to z
LVL 11

Accepted Solution

Simone B earned 500 total points
ID: 40018745
If I'm reading your question correctly, I think this might be what you're looking for. Use whatever you like for "ColumnName."

SELECT distinct proveedor AS ColumnName FROM proveedor
SELECT distinct empresa FROM contactos
ORDER BY ColumnName

Open in new window


Author Closing Comment

ID: 40018855
oh man, so nice

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question