countif

balahawy

Registered User.
Local time
Today, 05:24
Joined
Sep 29, 2013
Messages
41
if i have 10 column in one table contains words (right , wrong,5%)
need to create new field in the this table to
count right
count wrong
sum 5%
 
Such is life ! Your DB is structured wrongly. What you should have is Rows as opposed to Columns, so the count will be a simple GROUP BY Query. Now you have complicated the process. Although what you wish to do is not impossible, it is still a hassle.

Try restructuring your table ! We might be able to give you better guidance.
 
yes it's was wrong from me it's rows so please provide me with codes
 
Show some sample data, the result you wish to see, the name of the table and columns.
 
table name :Fin_Ment_Tbl
fields name:aa & bb & cc& dd
 

Users who are viewing this thread

Back
Top Bottom