Microsoft
Software
Hardware
Network
Question : Query columns as well as COUNT of records
1) As you can see from Tags: row_number is there in Linux DB2 but not in iseries version.
2) I need SEELCT empno, ename, COUNT(1) from EMP WHERE SAL = 5000.00 in a single working query. COUNT(1) should hold number of records from EMP table for salary = 5000.00.
3) It is best if you can provide a platform neutral solution but seperate ROW_NUMBER solution for Linux and separate for iseries will also do.
Answer : Query columns as well as COUNT of records
SEELCT empno, ename, cnt
from EMP t1 ,(select count(*) as cnt from emp where salary=5000) t2
WHERE SAL = 5000.00
Random Solutions
Possible to remove characters from form fields in Acrobat that were filled by import, using JS?
Entourage & Outlook Calendar Sharing Using Exchange
Re-install an XP-Home "Upgrade" system (activation and WGA issues)?
How to find Sybase Database version
Is there an equivalent of Red Hat Enterprise Linux server ($349 std sub) FREE?
Users can't access e-mail, but domain admins can
No printers listed in Windows Add Printer wizard
Excel 2000 spreadsheets from Windows Explorer won't open unless I already have an Excel document open.
SQL--Subtract two fields to get new field