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

SQL Statement

Status
Not open for further replies.

agreen10

IS-IT--Management
Oct 20, 2005
70
US
What is wrong with the statement below: it is proving all status' although one is specified and all grades although specified.

{sites.program_id} = "1" and
{students.program_id} = 1 and
{students.semester} = "School Year" and
{students.year} = 2005 and
{sites.year} = 2005 and
{sites.semester} = "School Year" and
if {?School Name} = "*" Then True
Else
{sites.site_name} = {?School Name} and
{students.grade} = {?Student Grade} and
{students.application_status} = {?Status} and
{@join2fields}
 
{sites.program_id} = "1" and
{students.program_id} = 1 and
{students.semester} = "School Year" and
{students.year} = 2005 and
{sites.year} = 2005 and
{sites.semester} = "School Year" and
(
if {?School Name} = "*" Then True
Else
{sites.site_name} = {?School Name}
) and
{students.grade} = {?Student Grade} and
{students.application_status} = {?Status} and
{@join2fields}

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top