Microsoft
Software
Hardware
Network
Question : Oracle query
can anyone advise on following sql-
TABLE A HAS COL- ID,code,acno
How can i retreive records which have more than one unique value of (code,acno) base on ID
Example-
id code acno
1 A 3
1 A 3
2 A 3
2 b 3
Result expected is-
2 b 3
2 A 3
Answer : Oracle query
select id,code,acno from
(select id,code,acno,count(*) over(partition by id,code,acno) cntcombo,count(*) over (partition by id) cntid from tablea)
where cntcombo != cntid;
Random Solutions
How do I lookup and insert the foreign key value into a table when passing a variable value from different column in the related table?
PHP calling URL (which domain got me here?) PATH_INFO?
T-SQL: Count number of tables in the DB (SQL server 2008)
Can't Remote Desktop to Forefront TMG Server
SEO // Useful Tool-Assistance?
Php 500 internal server error received on website but not using xampp at home
Copy and Paste using VBA based on criteria including concatenation
SSH console: go to specified folder after login
Migrate 2000 dc to 2008 dc
sharing permission in Windows2003