Click here to Skip to main content
15,913,758 members
Home / Discussions / Database
   

Database

 
AnswerRe: SQL database batch files Pin
Rob Graham7-May-06 5:36
Rob Graham7-May-06 5:36 
QuestionDeleting from an SQL database Pin
alee15.10.886-May-06 1:52
alee15.10.886-May-06 1:52 
AnswerRe: Deleting from an SQL database Pin
DotNetDominator7-May-06 2:02
DotNetDominator7-May-06 2:02 
GeneralRe: Deleting from an SQL database Pin
alee15.10.887-May-06 20:12
alee15.10.887-May-06 20:12 
AnswerRe: Deleting from an SQL database Pin
Rob Graham7-May-06 4:06
Rob Graham7-May-06 4:06 
QuestionSQL2005 Express reporting services remote user Pin
juszuf5-May-06 20:37
juszuf5-May-06 20:37 
QuestionUsing ROUND Pin
myNameIsRon5-May-06 19:03
myNameIsRon5-May-06 19:03 
AnswerRe: Using ROUND Pin
Rob Graham7-May-06 5:52
Rob Graham7-May-06 5:52 
SQL Round function rounds to the nearest even value.

select 28.50 - ROUND(28.50 * 0.25, 3)  returns 21.375 (which will round up to 21.38)
select Round(28.50 - ROUND(28.50 * 0.25, 3),2) returns 21.38 (rounds up to 21.38)
If the precision in the rounding is chaged to 2 for the 'price*percent' term:
select 28.50 - ROUND(28.50 * 0.25, 2) returns 21.37
select Round(28.50 - ROUND(28.50 * 0.25, 2),2) returns 21.37



We need to graduate from the ridiculous notion that greed is some kind of elixir for capitalism - it's the downfall of capitalism. Self-interest, maybe, but self-interest run amok does not serve anyone. The core value of conscious capitalism is enlightened self-interest.
Patricia Aburdene

GeneralRe: Using ROUND Pin
myNameIsRon7-May-06 11:16
myNameIsRon7-May-06 11:16 
GeneralRe: Using ROUND Pin
Rob Graham7-May-06 12:30
Rob Graham7-May-06 12:30 
GeneralRe: Using ROUND Pin
myNameIsRon7-May-06 19:19
myNameIsRon7-May-06 19:19 
GeneralRe: Using ROUND Pin
Rob Graham8-May-06 8:49
Rob Graham8-May-06 8:49 
GeneralRe: Using ROUND Pin
myNameIsRon8-May-06 12:28
myNameIsRon8-May-06 12:28 
GeneralRe: Using ROUND Pin
Rob Graham8-May-06 16:48
Rob Graham8-May-06 16:48 
GeneralRe: Using ROUND Pin
myNameIsRon8-May-06 21:34
myNameIsRon8-May-06 21:34 
QuestionReporting Service 2005 Pin
devvvy5-May-06 14:38
devvvy5-May-06 14:38 
QuestionExport a table to a CSV file Pin
Alvin Ortiz5-May-06 12:46
Alvin Ortiz5-May-06 12:46 
AnswerRe: Export a table to a CSV file Pin
Rob Graham7-May-06 6:07
Rob Graham7-May-06 6:07 
GeneralRe: Export a table to a CSV file Pin
Alvin Ortiz15-May-06 12:27
Alvin Ortiz15-May-06 12:27 
QuestionOutputting RTF from SQL Reporting? Pin
dxben5-May-06 5:54
dxben5-May-06 5:54 
QuestionInstr function for SQL Pin
MatthysDT5-May-06 1:54
MatthysDT5-May-06 1:54 
AnswerRe: Instr function for SQL Pin
sathish s5-May-06 2:07
sathish s5-May-06 2:07 
QuestionSQL or TSQL Help Needed Pin
Naveed Kamboh5-May-06 0:42
Naveed Kamboh5-May-06 0:42 
AnswerRe: SQL or TSQL Help Needed Pin
sathish s5-May-06 1:36
sathish s5-May-06 1:36 
GeneralRe: SQL or TSQL Help Needed Pin
Naveed Kamboh5-May-06 2:03
Naveed Kamboh5-May-06 2:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.