IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Two Selects in a single select query


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 2567
Location: NYC,USA

PostPosted: Fri Nov 04, 2016 8:46 pm
Reply with quote

Hello,

This is what I am getting, may be I am missing the very basic but trying to know why -2147483648?.

Code:
select count(4), (select count(5) from sysibm.sysdummy1) from sysibm.sysdummy1 where 1<>1 

Code:

 1 2
 - -----------
 0 -2147483648
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1348
Location: Israel

PostPosted: Mon Nov 07, 2016 4:25 pm
Reply with quote

That's funny, in binary -2147483648 is "1111 1111 1111 1111 1111 1111 1111 1111 1000 0000 0000 0000 0000 0000 0000 0000"

That must mean something... icon_rolleyes.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Need Help with on of the coalesce query DB2 4
No new posts Need to split single line into two li... DFSORT/ICETOOL 7
No new posts Creating a single-record file with CO... DFSORT/ICETOOL 8
No new posts Need to select all records belonging ... DB2 2
No new posts Mainframe ISPREDIT Macro query TSO/ISPF 3
Search our Forums:

Back to Top