- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Sql Query
Operating System - HP-UX
1752756
Members
4892
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2004 11:56 PM
тАО07-19-2004 11:56 PM
Re: Sql Query
Sanjay,
Sorry But I didn't get you. Can you explain by column1 and column2. Here in my case what will be column1 and column2. Since tstwght is the filed which will be different for the same tstAB.
Below is the output from where you can say.( for the same tstAB there are diff tstwght. We need those)
tstkey 45482954
tstAB 4839530267
tstacct 121235539
tstwght 0.5
tstkey 45488682
tstAB 4839530267
tstacct 121235539
tstwght 1.0
Rgds
Tapas
Sorry But I didn't get you. Can you explain by column1 and column2. Here in my case what will be column1 and column2. Since tstwght is the filed which will be different for the same tstAB.
Below is the output from where you can say.( for the same tstAB there are diff tstwght. We need those)
tstkey 45482954
tstAB 4839530267
tstacct 121235539
tstwght 0.5
tstkey 45488682
tstAB 4839530267
tstacct 121235539
tstwght 1.0
Rgds
Tapas
Tapas Jha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2004 05:27 AM
тАО07-23-2004 05:27 AM
Re: Sql Query
select tstab, tstwght from tableA where tstab in (select tstab from tableA group by tstab having count(*) > 1);
That should work. Let me know.
Thanks,
Brian
That should work. Let me know.
Thanks,
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2004 10:14 PM
тАО07-26-2004 10:14 PM
Re: Sql Query
Hi Brian,
Thanx for your reply. Your query results like below:
tstab tstwght
15581882 2.0
15581882 2.0
206367781 0.5
206367781 0.5
308102874 0.5
308102874 10.5
336157080 0.5
336157080 0.5
339287550 0.5
339287550 1.0
339582261 4.5
339582261 0.5
But i want those which have different tstwght. My expected output will be like:
tstab tstwght
308102874 0.5
308102874 10.5
339287550 0.5
339287550 1.0
339582261 4.5
339582261 0.5
Hope it is clear to you.
Rgds
Tapa
Thanx for your reply. Your query results like below:
tstab tstwght
15581882 2.0
15581882 2.0
206367781 0.5
206367781 0.5
308102874 0.5
308102874 10.5
336157080 0.5
336157080 0.5
339287550 0.5
339287550 1.0
339582261 4.5
339582261 0.5
But i want those which have different tstwght. My expected output will be like:
tstab tstwght
308102874 0.5
308102874 10.5
339287550 0.5
339287550 1.0
339582261 4.5
339582261 0.5
Hope it is clear to you.
Rgds
Tapa
Tapas Jha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2004 10:17 PM
тАО07-26-2004 10:17 PM
Re: Sql Query
Maybe you should add tstwght to the group by clause.
Regards,
Fred
Regards,
Fred
--
"Reality is just a point of view." (P. K. D.)
"Reality is just a point of view." (P. K. D.)
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP