Sql

smoochy boys on tour

hallmat

LOMCN Veteran
Veteran
Feb 19, 2007
555
1
125
i have looked and searhed on here but cant seem to find anything

here is my problem

i want to know how to devide or multipy a colum in the SQL


many thanks
 

Geordiehc

Mad Dog Geo
VIP
Jul 4, 2007
2,827
49
195
Redditch, UK
Maybes take the value and apply to a d number and do it from there? Say

#IF
Mov D0
#ACT
INC D0 D0
SET D0

Not sure if they can be added to themselves or not i only know what i use.
 

hallmat

LOMCN Veteran
Veteran
Feb 19, 2007
555
1
125
no i mean actually in the DB itself

Like Coloum 1 Devided by 50 and such
 

BlackT

Dedicated Member
Dedicated Member
Sep 20, 2006
91
10
54
SQL query:

PHP:
SELECT your_column/50 as divided FROM your_table
HTH
 

hallmat

LOMCN Veteran
Veteran
Feb 19, 2007
555
1
125
ok its not giving me any errors but it wont devide the contence of the coloum
 

Tomo

Dedicated Member
Dedicated Member
Oct 15, 2004
66
0
53
United Kingdom
If i'm doing alot of work on a db i usually export it and edit it in excel then restore the data :)

/Tomo
 

BlackT

Dedicated Member
Dedicated Member
Sep 20, 2006
91
10
54
I don't have MSSQL here at work to test but it may not work because the column type isn't a numeric type?
 

hallmat

LOMCN Veteran
Veteran
Feb 19, 2007
555
1
125
hmmm ok m8 well i will eep tyring i might try Excel like i normaly do but didnt for this :S lol

anywya cheers for the help