1) How can i see SQLERRD(3) ???
2) Can you please suggest the easiest way to fetch records from a table with a column having characters other than non-specified values ? For Example : I need a row which is having characters other than A, B and C ???
Input : ABC, AMC, BBC, TTG, KKK, LLL
Output should be : TTG, KKK, LLL
3) I need to update the values of a column in DB2 if the value is numeric ???
Ex : Input value is : 123, 145
Output should be : 00123 , 00145
4) There are three tables Current, History and archive. The contents of these tables are consolidated in one table called Full. I need to write a query in which i need to sum up the record count of Current, History and archive
For example
SELECT COUNT(*) AS C
FROM CURRENT
UNION
SELECT COUNT(*) AS H
FROM HISTORY
UNION
SELECT COUNT(*) AS A
FROM ARCHIVE;
Now i need to sum up the count values(c,h,a) in the same query.
Can anyone help me on this?
5) I need to fetch all the rows where spaces is a part of column value with some restriction ???
I/P is : UNITED STATES, INDIA, UK
O/P should be : UNITED STATES (as it is having spaces)