Monday, May 7, 2012
SQL Query asked by moazzam
select A.bundleid,B.featureid,B.featurecount from (SELECT p1.bundleid,
cast( ( SELECT featureid + ','
FROM kepmax_bundlefeature p2
WHERE p2.bundleid = p1.bundleid
ORDER BY featureid
FOR XML PATH('') ) as varchar(8000)) AS featureid, max(cast(FeatureCount as decimal)) as FeatureCount
FROM kepmax_bundlefeature p1
GROUP BY bundleid) A
inner join
(select featureid, max(cast(FeatureCount as decimal)) as featurecount from (
SELECT p1.bundleid,
cast( ( SELECT featureid + ','
FROM kepmax_bundlefeature p2
WHERE p2.bundleid = p1.bundleid
ORDER BY featureid
FOR XML PATH('') ) as varchar(8000)) AS featureid, max(cast(FeatureCount as decimal)) as FeatureCount
FROM kepmax_bundlefeature p1
GROUP BY bundleid) as T
group by featureid ) B
on A.featureid = B.featureid and A.FeatureCount = B.FeatureCount
order by cast(bundleid as decimal)
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2012
(113)
-
▼
May
(40)
- Java : xpath and NamespaceContext
- xpath in JAVA
- How+to+pass+array+values+in+query+string
- Dependency injection and Unit Testing
- Initialization-on-demand holder idiom
- Volatile variable
- Double Checked Locking
- Singleton Pattern - The solution of Bill Pugh
- Objectaid for UML - Class Diagram
- Objectaid for UML - Installation
- How to calculate using convolution?
- A matrix is full row rank
- Z- Transform
- State transition Matrix
- Companion Matrix
- laplace of state space model
- State Space Equation links
- transfer function
- Testing Patterns for Java Unit Tests
- Partial Fraction
- Upper Triangular Matrix
- null space for a matrix
- If a square matrix is less than full rank, its det...
- Singular Matrix
- Jordan Canonical Form
- How to Change a Matrix Into its Echelon Form
- Steps for echelon and rank
- Echelon Form of a Matrix
- Rank of a Matrix Continued.....
- The Rank of a Matrix
- An Abstract Class implements an interface
- Load-testing a web service: How to interpret what ...
- Unit Testing Tech Mag
- SQL Query asked by moazzam
- vb.net and xpath example
- VB.NET using xpath
- xpath
- parsing xml
- http://forum.coolwebawards.com/threads/121-Read-XM...
- Reading an Xml Stream with XmlTextReader
-
▼
May
(40)
No comments:
Post a Comment