Click here to Skip to main content
16,010,022 members
Home / Discussions / Database
   

Database

 
AnswerRe: database schema Pin
Shameel12-Nov-13 3:17
professionalShameel12-Nov-13 3:17 
QuestionConditional query (sql) Pin
leone10-Nov-13 7:11
leone10-Nov-13 7:11 
Hi friends. I have 2 coulmns in a table (RealPersonID and CompanyID). They are foreign keys. My problem is that either of them is always 0 and the other one is none zero.

So i want to do that in only one query:

x=(Select CompanyID from Table1)
y=(Select RealPersonID from Table1)

if x!=0 (select companyName from Companies where companyID=x)

else (select personName from Person where personID=y)
AnswerRe: Conditional query (sql) Pin
Mycroft Holmes10-Nov-13 12:22
professionalMycroft Holmes10-Nov-13 12:22 
QuestionA mixture of PHP PDO and fabricating a query replacing SELECT SQL CALC FOUND ROWS Pin
jkirkerx7-Nov-13 10:12
professionaljkirkerx7-Nov-13 10:12 
QuestionSQL Query, Unknown column 'p.prod_id' in 'on clause' Pin
jkirkerx7-Nov-13 6:19
professionaljkirkerx7-Nov-13 6:19 
AnswerRe: SQL Query, Unknown column 'p.prod_id' in 'on clause' Pin
Tim Carmichael7-Nov-13 7:47
Tim Carmichael7-Nov-13 7:47 
GeneralRe: SQL Query, Unknown column 'p.prod_id' in 'on clause' Pin
jkirkerx7-Nov-13 8:33
professionaljkirkerx7-Nov-13 8:33 
AnswerRe: SQL Query, Unknown column 'p.prod_id' in 'on clause' Pin
Jörgen Andersson7-Nov-13 8:33
professionalJörgen Andersson7-Nov-13 8:33 
GeneralRe: SQL Query, Unknown column 'p.prod_id' in 'on clause' Pin
jkirkerx7-Nov-13 8:49
professionaljkirkerx7-Nov-13 8:49 
GeneralRe: SQL Query, Unknown column 'p.prod_id' in 'on clause' Pin
Jörgen Andersson7-Nov-13 9:15
professionalJörgen Andersson7-Nov-13 9:15 
GeneralIt's pretty close, needs some more adjustments. Pin
jkirkerx7-Nov-13 13:57
professionaljkirkerx7-Nov-13 13:57 
Questionaccess procedure Pin
shabha1106-Nov-13 21:26
shabha1106-Nov-13 21:26 
AnswerRe: access procedure Pin
Mycroft Holmes6-Nov-13 21:52
professionalMycroft Holmes6-Nov-13 21:52 
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 

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.