TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Dharmesh Sharma
NA
905
928.5k
How to divie int column in sql
Dec 31 2010 7:48 AM
hi
i n my project i have database in one table i have 31 column int type
now i m add thies column and divide by 60
this is my query
SELECT (([1]+[2]+[3]+[4]+[5]+[6]+[7]+[8]+[9]+[10]+[11]+[12]+[13]+[14]+[15]+[16]+[17]+[18]+[19]+[20]+[21]+[23]+[24]+[25]+[26]+[27]+[28]+[29]+[30]+[31])/60) From tablexyz
but i m get 0 output
i need value in 0.00 form
i mean
data is
Fields 1 2 3 4 5 6 7........31
data 10 20 .....................................
now i add these and divide by 60
i want to get full result in decimal format
plz help me
Reply
Answers (
1
)
Taking Database backup for every 4 hrs in SSIS
Create A triger on the date changes?