W wxdqz New Member Aug 21, 2008 #1 Hello, I want to be able to get the sum() of a column, but only include rows where another column is unique. If it worked, it might look like this: 'SELECT sum(col1) WHERE DISTINCT col2' I am using PHP4 and msSQL. Thanks, Ben
Hello, I want to be able to get the sum() of a column, but only include rows where another column is unique. If it worked, it might look like this: 'SELECT sum(col1) WHERE DISTINCT col2' I am using PHP4 and msSQL. Thanks, Ben