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

Which two of the following query will produce same result


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Jeevanand
Warnings : 1

New User


Joined: 26 Dec 2006
Posts: 4
Location: Coimbatore

PostPosted: Thu Apr 12, 2007 5:14 pm
Reply with quote

Consider that student table having

stud no
1
2
3
3

Which two of the following query will produce same result

1--- select * from stud
union
select * from stud

2----select Distinct from stud

3----select * from stud

4----select * from stud
union all
select * from stud
Back to top
View user's profile Send private message
Prajesh_v_p

Active User


Joined: 24 May 2006
Posts: 133
Location: India

PostPosted: Thu Apr 12, 2007 5:25 pm
Reply with quote

I think 1 and 2.. as union removes duplicates..
Back to top
View user's profile Send private message
priyamnavada

New User


Joined: 24 Dec 2005
Posts: 52
Location: hyderabad

PostPosted: Tue May 15, 2007 7:02 pm
Reply with quote

Query 1 and 2 gives the same result
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts RC query -Time column CA Products 3
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Query on edit primary command CLIST & REXX 5
No new posts Query on edit primary command CLIST & REXX 1
No new posts first column truncated in search result IBM Tools 13
Search our Forums:

Back to Top