You need to multiply all values of a single column. How would you do that?
Answer / Anuj Singh
To multiply all values of a single column in Sybase, you can use the built-in aggregate function SUM with a self-join and a subquery:
SELECT column_name * (SELECT SUM(column_name) FROM your_table) as total FROM your_table;
| Is This Answer Correct ? | 0 Yes | 0 No |
How do I pipe the output of isql to a file in sybase?
What are the catches?
How to compute database fragmentation in sybase?
Is data insertion is fast in SYBASE IQ if we have more indexes on a table?
How do you check database space? What measures are there to increase the db space?
How do check the current running processes?
Why am I running out of locks on the replicate side in sybase ?
Differentiate between db-lib and ct-lib?
What data types does sybase support?
We have lost the sa password, what can we do?
When should I execute an sp_recompile in sybase?
How do I exclude a column in sybase?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)