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
Non administrator installing software program.
At Rails, ApplicationController always get BLANK while reading session variable
Windows 2003 DHCP server reporting status "Not connected"
How can I get my calculator back?
Issue with sending encrypted zip files through windows 2003 exchange servers
Best WordPress Solution for One Blog Multiple Authors?
Previous Weekday Date
Unable to install SP3 on Windows XP PC-Access Denied error
Blue Screen of Death -- Computer Barely Boots
How to write while loop on a single line?