Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Oracle/OAS
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Ron McLeod
paul wheaton
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Himai Minh
Bartenders:
Forum:
Oracle/OAS
Merging 2 results into one select :shock:
Jordan Smith
Ranch Hand
Posts: 89
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi
I would like this result:
SELECT MAX(tagdate) as lastdate FROM JPASSETTAGS where TAGNAME = 'NY'
to be with in the same result as:
SELECT t.TAGNAME,pubid,COUNT(*) as count FROM JPASSETTAGS t,ASSETPUBLICATION a where a.ASSETID = t.ASSETID GROUP BY t.TAGNAME,pubid ORDER BY 3 DESC
table JPASSETTAGS has the column tagdate, tagname, assetid
table ASSETPUBLICATION has the column pubid, assetid
Thanks!
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
SQL: Retrieve duplicate records
Join condition qucik question
how to execute sqlplus and sql commands using java
Counting identical items in DB
unable to get column values
More...