Blog
Documentation
Knowledge Base
Send Feedback
Contact Us
toggle menu
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Activity
Best Of...
Sign In
·
Register
×
Home
›
General Discussion
Discussion
Does Vertica have a quotient function?
Author
Date within
1 day
3 days
1 week
2 weeks
1 month
2 months
6 months
1 year
of
Examples: Monday, today, last week, Mar 26, 3/26/04
Search
Does Vertica have a quotient function?
Laelsan
January 2014
in
General Discussion
Quotient is the number of times a divisor goes into the dividend. Does Vertica have a function to do this?
0
Comments
Bhawana
January 2014
Hi,
No we do not have that funtion but you can try as:
trader1849=> select trunc(11/3)::int;
trunc
-------
3
(1 row)
trader1849=> select trunc(8/3)::int;
trunc
-------
2
(1 row)
Regards,
Bhawana
0
Laelsan
January 2014
That makes sense, thanks! How do I mark this question as [answered]?
0
Bhawana
January 2014
Hi Laelsan,
Thank you for the update, I will mark this as "answered".
Regards,
Bhawana
0
Leave a Comment
Bold
Italic
Strikethrough
Ordered list
Unordered list
Format
Spoiler
Code
Quote
Heading 2
Heading 1
Emoji
Url
Image
Align left
Align center
Align right
Toggle HTML view
Toggle full page
Toggle lights
Drop image/file
Home
•
General Discussion
Comment As ...
Comments
No we do not have that funtion but you can try as:
trader1849=> select trunc(11/3)::int;
trunc
-------
3
(1 row)
trader1849=> select trunc(8/3)::int;
trunc
-------
2
(1 row)
Regards,
Bhawana
Thank you for the update, I will mark this as "answered".
Regards,
Bhawana