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
Backup Exec 12.5 on 64bit Windows 2003 Server, with 32bit Windows Server & Exchange
Animate XML elements separately?
How do I force a logoff after period of inactivity and/or specified time?
"You do not have sufficient priveleges' with administrative account
Quartiling within pivot table
Drivers for HP Pavilion 8655C
CFSELECT Display Problems
Move mailboxes from one Exch 07 server to another after one has crashed
Problems with cut
How do I add a DNS record using Windows Server 2003