You seem to want aggregation:
select disport, actualagent, . . . , country,
sum(pallats), sum(gross)
from t
group by disport, actualagent, . . ., country;
You need to list all the columns where the . . .
is.
More Related Contents:
- Is it possible to write single query on two table which are not connected to each other?
- Can I Comma Delimit Multiple Rows Into One Column? [duplicate]
- Is there a combination of “LIKE” and “IN” in SQL?
- How can I list all foreign keys referencing a given table in SQL Server?
- SQL query to select dates between two dates
- is there an advantage to varchar(500) over varchar(8000)?
- Split function equivalent in T-SQL?
- Selecting COUNT(*) with DISTINCT
- Only one expression can be specified in the select list when the subquery is not introduced with EXISTS
- What is SYSNAME data type in SQL Server?
- SQL query to split column data into rows
- What is the difference between using a cross join and putting a comma between the two tables?
- Bulk DELETE on SQL Server 2008 (Is there anything like Bulk Copy (bcp) for delete data?)
- How to drop SQL default constraint without knowing its name?
- Equivalent of Oracle’s RowID in SQL Server
- How to update and order by using ms sql
- Dynamic update statement with variable column names
- How to select only the first rows for each unique value of a column?
- How to store image in SQL Server database tables column [duplicate]
- SQL Server (TSQL) – Is it possible to EXEC statements in parallel?
- SQL “between” not inclusive
- Unordered results in SQL
- Using PIVOT in SQL Server 2008
- SQL Server replace, remove all after certain character
- Inserting rows into a table with one IDENTITY column only [duplicate]
- ORDER BY items must appear in the select list if SELECT DISTINCT is specified
- When using GETDATE() in many places, is it better to use a variable?
- How do I compare 2 rows from the same table (SQL Server)?
- COALESCE Function in TSQL
- Convert bigint to datetime