how to count the number of records from an union operation in SQL? -


i using following sql query

select count(column1) table1 condition1 union select count(column1) table1 condition2; 

when run query give 2 numbers in outcome. need single number result count number of records above operation. don't know how write query. can me?

please try:

select count(column1) table1 condition1 or condition2 

Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -