Click here to Skip to main content
15,918,808 members
Home / Discussions / Database
   

Database

 
QuestionOracle 10g connectivity issue with .net 2.0 website hosted on win 2008 server Pin
abhi17_66-Nov-13 4:19
abhi17_66-Nov-13 4:19 
AnswerRe: Oracle 10g connectivity issue with .net 2.0 website hosted on win 2008 server Pin
jschell6-Nov-13 8:08
jschell6-Nov-13 8:08 
GeneralRe: Oracle 10g connectivity issue with .net 2.0 website hosted on win 2008 server Pin
abhi17_66-Nov-13 15:45
abhi17_66-Nov-13 15:45 
GeneralRe: Oracle 10g connectivity issue with .net 2.0 website hosted on win 2008 server Pin
jschell7-Nov-13 9:16
jschell7-Nov-13 9:16 
QuestionHow to create directory in SQL with Space Pin
Samarjeet Singh@india6-Nov-13 0:47
Samarjeet Singh@india6-Nov-13 0:47 
AnswerRe: How to create directory in SQL with Space Pin
Chris Quinn6-Nov-13 1:08
Chris Quinn6-Nov-13 1:08 
GeneralRe: How to create directory in SQL with Space Pin
Samarjeet Singh@india6-Nov-13 1:22
Samarjeet Singh@india6-Nov-13 1:22 
QuestionRe: How to create directory in SQL with Space Pin
thatraja6-Nov-13 2:06
professionalthatraja6-Nov-13 2:06 
AnswerRe: How to create directory in SQL with Space Pin
Samarjeet Singh@india6-Nov-13 2:21
Samarjeet Singh@india6-Nov-13 2:21 
AnswerRe: How to create directory in SQL with Space Pin
Richard Deeming6-Nov-13 2:57
mveRichard Deeming6-Nov-13 2:57 
GeneralRe: How to create directory in SQL with Space Pin
Samarjeet Singh@india7-Nov-13 4:47
Samarjeet Singh@india7-Nov-13 4:47 
GeneralRe: How to create directory in SQL with Space Pin
Richard Deeming7-Nov-13 8:33
mveRichard Deeming7-Nov-13 8:33 
GeneralRe: How to create directory in SQL with Space Pin
Samarjeet Singh@india21-Nov-13 0:57
Samarjeet Singh@india21-Nov-13 0:57 
AnswerRe: How to create directory in SQL with Space Pin
jschell7-Nov-13 9:26
jschell7-Nov-13 9:26 
AnswerRe: How to create directory in SQL with Space Pin
Minghao Xue20-Nov-13 22:03
professionalMinghao Xue20-Nov-13 22:03 
GeneralRe: How to create directory in SQL with Space Pin
Samarjeet Singh@india21-Nov-13 0:57
Samarjeet Singh@india21-Nov-13 0:57 
QuestionSudden cast problem using executescalar Pin
Gennady Oster5-Nov-13 22:25
Gennady Oster5-Nov-13 22:25 
AnswerRe: Sudden cast problem using executescalar Pin
Richard Deeming6-Nov-13 1:22
mveRichard Deeming6-Nov-13 1:22 
GeneralRe: Sudden cast problem using executescalar Pin
Gennady Oster6-Nov-13 1:46
Gennady Oster6-Nov-13 1:46 
Questionhow can left join two table on multiple column??? Pin
mhd.sbt5-Nov-13 9:22
mhd.sbt5-Nov-13 9:22 
AnswerRe: how can left join two table on multiple column??? Pin
Richard Deeming5-Nov-13 9:58
mveRichard Deeming5-Nov-13 9:58 
QuestionMysql select query with multiple conditions Pin
Member 102635195-Nov-13 1:50
Member 102635195-Nov-13 1:50 
hi,
am facing problem with the following;
my table is having 6 columns.
i want to select the data based on "from" and "to" dates,and also if i enter value in any one /two/three/.../all of the fields data should be displayed from the database.
am using this:

SQL
if ((R_Tag.Text == "") && (R_Category.Text == "") && (R_Product.Text == "") && (R_ProName.Text == "") && (R_Gate.Text == ""))
           {
               query = "select tag_id,category_id,product_id,product_name,gate_id,in_time,out_time,remarks from transaction where DATE(in_time)BETWEEN '" + fromDate + "'AND '" + toDate + "' ";
           }
           else if(R_Tag.Text != "")
           {
               query = "select tag_id,category_id,product_id,product_name,gate_id,in_time,out_time,remarks from transaction where (DATE(in_time)BETWEEN '" + fromDate + "'AND '" + toDate + "') AND tag_id='" + R_Tag.Text + "' ";
           }
           else if (R_Category.Text != "" && R_Tag.Text != "")
           {
               query = "select tag_id,category_id,product_id,product_name,gate_id,in_time,out_time,remarks from transaction where DATE(in_time)BETWEEN '" + fromDate + "'AND '" + toDate + "' AND (tag_id='" + R_Tag.Text + "' OR category_id='" + R_Category.Text + "' OR product_id='" + R_Product.Text + "'OR product_name='" + R_ProName.Text + "' OR gate_id='" + R_Gate.Text + "')";
           }

AnswerRe: Mysql select query with multiple conditions Pin
Richard Deeming5-Nov-13 2:36
mveRichard Deeming5-Nov-13 2:36 
GeneralRe: Mysql select query with multiple conditions Pin
Member 102635195-Nov-13 20:22
Member 102635195-Nov-13 20:22 
GeneralRe: Mysql select query with multiple conditions Pin
Richard Deeming6-Nov-13 1:08
mveRichard Deeming6-Nov-13 1:08 

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.