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

sql select satement syntax

Status
Not open for further replies.

antdickens

Programmer
Nov 13, 2001
129
GB
can anyone give me a few pointers on the sysntac of sql select statements in access.

an example would be sweet

cheers
 
SELECT UNIBOND.ATFULL AS Team, UNIBOND.HOME_SCORE AS PtsAginst, UNIBOND.AWAY_SCORE AS PtsFor, IIf([Home_Score]<[Away_Score],&quot;W&quot;,IIf([Home_Score]>[Away_Score],&quot;L&quot;,&quot;T&quot;)) AS WLT, UNIBOND.GDATE
FROM UNIBOND;


&quot;Unibond&quot; is the (single) source recordset.

&quot;Select&quot; is required

&quot;From&quot; is required

&quot;;&quot; is required

Everthing between Select and From is the &quot;Field&quot; list, ALL of which are aliased (the &quot;AS&quot; keword).

The one 'complication' here is the use of the nested conditional. If this is difficult for you, just remove it completly (at least from your thoughts).


MichaelRed
m.red@att.net

There is never time to do it right but there is always time to do it over
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top