logo

Warning: The forum is now for consultation only. Please use GitHub Discussions to post any questions or comments.


Welcome Guest ! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Sangamesh  
#1 Posted : Thursday, May 26, 2016 4:40:37 AM(UTC)
Sangamesh

Rank: Newbie

Groups: Registered
Joined: 4/25/2016(UTC)
Posts: 5
India
Location: Bangalore

Thanks: 1 times
Hi Team,

We had a requirement where the we needed to execute a union operation on the database to get the query. Could you please advise if Seal Report supports Union operation ???

Any help is greatly appreciated.

Thanks in advance.
epf  
#2 Posted : Thursday, May 26, 2016 6:59:41 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 206 time(s) in 199 post(s)
Not really, to have a UNION you should define it in a view or to define a table in your Source like:
Code:
select * from (
select col1 from table1 
union 
select col2 from table2
) a

Then you have a table with your union.
thanks 1 user thanked epf for this useful post.
Sangamesh on 5/26/2016(UTC)
Sangamesh  
#3 Posted : Thursday, May 26, 2016 7:16:58 AM(UTC)
Sangamesh

Rank: Newbie

Groups: Registered
Joined: 4/25/2016(UTC)
Posts: 5
India
Location: Bangalore

Thanks: 1 times
Thank you for you reply.

Just to make sure my understanding is correct. I will have to either create a view or table in the database and access that view or table to get the result ??
epf  
#4 Posted : Thursday, May 26, 2016 9:50:52 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 206 time(s) in 199 post(s)
No you can either create a View in your database
OR in your Data Source, create a new table definition and use the "SQL Statement" property to define your select with union or not...
Sangamesh  
#5 Posted : Tuesday, June 7, 2016 2:53:33 PM(UTC)
Sangamesh

Rank: Newbie

Groups: Registered
Joined: 4/25/2016(UTC)
Posts: 5
India
Location: Bangalore

Thanks: 1 times
Thank you, that helped a lot. :)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.