Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sorting data using MS Query

Status
Not open for further replies.

daggers

Technical User
Sep 10, 2002
13
GB
Hi,

I am currently using the GUI on Query to sort data from a server. However, I am having a problem trying to sort the following..(===) denotes link

Table 1 Table 2
product_num======product_num
type (A,B) data (x,y,z)

Currently, I am sorting the data according to the following criteria:

type data
='A' and ='z'

However, is it possible to create a SQL statement which says "Display type A if it has data z, IF type B has data x"
?

Thanks
Ross
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top