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
Post a Comment