Click here to Skip to main content
15,898,134 members
Home / Discussions / Database
   

Database

 
QuestionDataGridView Access Problem [modified] Pin
Grollub8-Oct-09 9:11
Grollub8-Oct-09 9:11 
AnswerRe: DataGridView Access Problem Pin
Mycroft Holmes8-Oct-09 20:00
professionalMycroft Holmes8-Oct-09 20:00 
GeneralRe: DataGridView Access Problem Pin
Grollub9-Oct-09 4:05
Grollub9-Oct-09 4:05 
GeneralRe: DataGridView Access Problem Pin
Mycroft Holmes9-Oct-09 11:45
professionalMycroft Holmes9-Oct-09 11:45 
Questionstandard SqlServer 2008 Pin
ali_reza_zareian8-Oct-09 8:43
ali_reza_zareian8-Oct-09 8:43 
AnswerRe: standard SqlServer 2008 Pin
Mycroft Holmes8-Oct-09 20:03
professionalMycroft Holmes8-Oct-09 20:03 
AnswerRe: standard SqlServer 2008 Pin
εїзεїзεїз10-Oct-09 1:01
εїзεїзεїз10-Oct-09 1:01 
QuestionProblem in Query Pin
nagendrathecoder7-Oct-09 21:30
nagendrathecoder7-Oct-09 21:30 
Hello all,

I am trying to execute following query but getting an error as amount us not a valid column:
select itemname,rate,qty,discount,(rate * qty) as amount,(amount -(amount * (disount/100))) as Total from ItemMaster;


Then i try:
select itemname,rate,qty,discount,(rate * qty) as amount,((rate * qty) - ((rate * qty) * (disount/100))) as Total from ItemMaster;

and it worked fine.

I need to execute queries which involves more complex expressions within them.
My doubt is, is there any way to run query by first method so that we don't need to write complex expressions again and again?

Thanks,
Nagendra.
AnswerRe: Problem in Query Pin
εїзεїзεїз7-Oct-09 21:58
εїзεїзεїз7-Oct-09 21:58 
AnswerRe: Problem in Query Pin
Mycroft Holmes7-Oct-09 22:26
professionalMycroft Holmes7-Oct-09 22:26 
GeneralRe: Problem in Query Pin
εїзεїзεїз7-Oct-09 23:03
εїзεїзεїз7-Oct-09 23:03 
GeneralRe: Problem in Query Pin
Ashfield8-Oct-09 1:23
Ashfield8-Oct-09 1:23 
QuestionSql Server Access Pin
anishkannan7-Oct-09 19:17
anishkannan7-Oct-09 19:17 
AnswerRe: Sql Server Access Pin
εїзεїзεїз7-Oct-09 22:04
εїзεїзεїз7-Oct-09 22:04 
AnswerRe: Sql Server Access Pin
Mycroft Holmes7-Oct-09 22:30
professionalMycroft Holmes7-Oct-09 22:30 
QuestionHow to write IF Condition in Stored Procedure Pin
Abhishek Boga7-Oct-09 14:06
Abhishek Boga7-Oct-09 14:06 
AnswerRe: How to write IF Condition in Stored Procedure Pin
Not Active7-Oct-09 14:17
mentorNot Active7-Oct-09 14:17 
AnswerRe: How to write IF Condition in Stored Procedure Pin
Not Active7-Oct-09 14:20
mentorNot Active7-Oct-09 14:20 
AnswerRe: How to write IF Condition in Stored Procedure Pin
J4amieC7-Oct-09 23:07
J4amieC7-Oct-09 23:07 
Question'Best practices' for managing data base connections Pin
Gary Wheeler7-Oct-09 8:29
Gary Wheeler7-Oct-09 8:29 
AnswerRe: 'Best practices' for managing data base connections [modified] Pin
Luc Pattyn7-Oct-09 8:37
sitebuilderLuc Pattyn7-Oct-09 8:37 
GeneralRe: 'Best practices' for managing data base connections Pin
Gary Wheeler7-Oct-09 8:44
Gary Wheeler7-Oct-09 8:44 
GeneralRe: 'Best practices' for managing data base connections Pin
Luc Pattyn7-Oct-09 8:49
sitebuilderLuc Pattyn7-Oct-09 8:49 
AnswerRe: 'Best practices' for managing data base connections Pin
εїзεїзεїз7-Oct-09 10:57
εїзεїзεїз7-Oct-09 10:57 
AnswerRe: 'Best practices' for managing data base connections Pin
David Skelly7-Oct-09 22:52
David Skelly7-Oct-09 22:52 

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.