Page

How to SUM two fields within an SQL query

                                                          Value1     Value2
                                                         -----------------------
                                                             3               6
                                                             1               5
                                                             4               3
                                                             8               1

SQL Query :

select Value1 + Value2 as qty  from Table1;

Result :

                                                               qty
                                                            ---------
                                                                9
                                                                6
                                                                7
                                                                9