I want to select some rows from a table.
Along with the normal columns that I get back from the query result, I also need to append some additional field in the result set.
I am exporting the table in to the csv file. The output file will have some extra fields along with the normal column values that were returned from the query.
For ex table has column A, B, and C. which has
A B C
11 Bob S
12 Gary J
13 Andy K
Now my output file should have
11, Bob , S, "DDD" , 1
12, Gary, J, "DDD" , 2
13, Andy, K , "DDD" , 3
(One way was to first do select A,B,C from test_table and then manipulate the file by appending the 2 fields manually)
Is there any way that I can get the extra 2 values in the query itself as hardcoded values ?