I am using below query for fetching result using union of two tables.
I am trying to get total number of records after union of two tables
Need Suggestions.
`
SELECT a.*
FROM svn_headline a where a.newstypeid=2
UNION
SELECT b.*
FROM svn_crimenews b where b.newstypeid=2 order by newsdatetime desc
SELECT count(a.newsid)
FROM svn_headline a where a.newstypeid=2
UNION
SELECT count(b.newsid)
FROM svn_crimenews b where b.newstypeid=2 order by newsdatetime desc
`