NYCPHP Meetup

NYPHP.org

[nycphp-talk] Anyone know the ANSI SQL for Access equivalent to this?

Phil Powell soazine at erols.com
Wed Sep 17 16:34:51 EDT 2003


<cfquery name="getAll" datasource="#request.dsn#">
      SELECT U.userID, U.fname, U.lname, U.phone, U.lastLoggedIn, 
             U.choiceId, U.experience, R.label AS roleLabel
      FROM Role R, UserRoleAssoc URA, Team T, User U, UserTeamAssoc UTA
      WHERE U.userId = URA.userID
       AND URA.roleId = R.roleId
       AND U.userId = UTA.userID (+)
       AND T.teamId = UTA.teamID (+)
       AND U.userID > 1
      ORDER BY #orderBy# #orderByTxt#
    </cfquery>

I am at my wit's end on this one, and I thought ANSI Syntax for mySQL was evil!

Thanx
Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20030917/9d0f0816/attachment.html>


More information about the talk mailing list