Created
September 29, 2008 17:16
-
-
Save ebot/13628 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT problems.id, problems.title, problems.start_date, | |
problems.uid, problems.uemail, tblUsers.uid, customers.custname | |
FROM ( | |
customers INNER JOIN | |
( | |
problems INNER JOIN status ON | |
problems.status = status.status_id | |
) ON | |
customers.customer_id = problems.customer | |
) | |
INNER JOIN tblUsers ON | |
problems.rep = tblUsers.sid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim listStr, whereStr | |
listStr = "SELECT problems.id, problems.title, problems.start_date, " & _ | |
"problems.uid, problems.uemail, tblUsers.uid, customers.custname " | |
"FROM (customers INNER JOIN " & _ | |
"(problems INNER JOIN status ON problems.status = status.status_id) ON " & _ | |
"customers.customer_id = problems.customer) " & _ | |
"INNER JOIN tblUsers ON problems.rep = tblUsers.sid " & _ | |
"WHERE " & whereStr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment