|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
does anyone know what's wrong with my statement: "select count(DISTINCT first_name, address_1) as UniqueCount from sweeps_entry" My error seems to be coming from the comma between first_name and address_1. this is the error I get: Microsoft OLE DB Provider for SQL Servererror '80040e14' Line 1: Incorrect syntax near ','. /Report.asp, line 56 |
|
#2
|
||||
|
||||
|
AFAIK, you can only pass one parameter to DISTINCT.
|
![]() |
| Viewing: Dev Articles Community Forums > Databases > Microsoft SQL Server > SQL statement |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|