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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL query help 1

Status
Not open for further replies.

audiopro

Programmer
Apr 1, 2004
3,165
GB
I need a query where the results are based on a total of three columns and then arranged in the total order.
MEKTOT is not recognised as an SQL column in the WHERE clause - Could someone suggest a way round it?

Code:
SELECT REC, INVNO, (INTOT+PICTOT+FREETOT) AS MEKTOT FROM FRAMES WHERE [red]MEKTOT[/red] > 100  ORDER BY MEKTOT

Keith
 
Try

Code:
Select a,b,c, (a+b+c) as d from table1 where a+b+c > 100 order by d

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.
 
Good luck
Thanks for the star!

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top