Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 9405

DB2 :: Two Selects in a single select query

$
0
0
Author: Rohit Umarjikar
Subject: Two Selects in a single select query
Posted: Fri Nov 04, 2016 8:46 pm (GMT 5.5)

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

_________________
Regards,
Rohit Umarjikar
"Knowledge is knowing that a tomato is a fruit, but Wisdom is knowing not to put it in a fruit salad."icon_razz.gif


Viewing all articles
Browse latest Browse all 9405

Trending Articles