Click here to Skip to main content
15,914,111 members
Home / Discussions / Database
   

Database

 
AnswerRe: data integrity using triggers check date Pin
Eric Dahlvang21-Nov-06 10:13
Eric Dahlvang21-Nov-06 10:13 
GeneralRe: data integrity using triggers check date Pin
drequinox21-Nov-06 11:11
drequinox21-Nov-06 11:11 
QuestionRe: data integrity using triggers check date Pin
drequinox21-Nov-06 11:12
drequinox21-Nov-06 11:12 
GeneralRe: data integrity using triggers check date Pin
Pete O'Hanlon21-Nov-06 22:57
mvePete O'Hanlon21-Nov-06 22:57 
QuestionHelp with SQL query!!! Pin
bazpaul21-Nov-06 4:51
bazpaul21-Nov-06 4:51 
AnswerRe: Help with SQL query!!! Pin
Farhan Noor Qureshi21-Nov-06 4:58
Farhan Noor Qureshi21-Nov-06 4:58 
GeneralRe: Help with SQL query!!! Pin
bazpaul21-Nov-06 5:00
bazpaul21-Nov-06 5:00 
AnswerRe: Help with SQL query!!! Pin
Eric Dahlvang21-Nov-06 9:53
Eric Dahlvang21-Nov-06 9:53 
bazpaul wrote:
So heres is the big question? How can i run an SQL query to list all the physical servers that have virtual servers alone installed on them??

select * from servers where id in(select physical_id from servers_vm)


But, the sql to answer your question is different from the results you wanted. To get this:

---------------------------------------------<br />
ID NAME VIRTUAL_ID<br />
---------------------------------------------<br />
7 Hank89 23<br />
7 Hank89 93<br />
8 Mark45 14


You would use something like the following sql:
select s.ID,s.name,p.virtual_id from servers s inner join servers_vm p on s.id = p.physical_id


--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters

QuestionStore Proc Problem Pin
tthellebuyck21-Nov-06 4:49
tthellebuyck21-Nov-06 4:49 
AnswerRe: Store Proc Problem Pin
Leah_Garrett21-Nov-06 17:51
Leah_Garrett21-Nov-06 17:51 
GeneralRe: Store Proc Problem Pin
tthellebuyck22-Nov-06 3:15
tthellebuyck22-Nov-06 3:15 
QuestionUnable to update the record. Pin
Arun Hegde21-Nov-06 3:58
Arun Hegde21-Nov-06 3:58 
AnswerRe: Unable to update the record. Pin
Colin Angus Mackay21-Nov-06 4:27
Colin Angus Mackay21-Nov-06 4:27 
QuestionHow to creat the registration form for Acces Pin
lopa1221-Nov-06 3:32
lopa1221-Nov-06 3:32 
AnswerRe: How to creat the registration form for Acces Pin
Paul Conrad21-Nov-06 19:39
professionalPaul Conrad21-Nov-06 19:39 
QuestionCreating a database Pin
Christer Claesson21-Nov-06 1:17
Christer Claesson21-Nov-06 1:17 
AnswerRe: Creating a database Pin
ChandraRam21-Nov-06 1:48
ChandraRam21-Nov-06 1:48 
AnswerRe: Can't connect to Mysql "godaddy" Pin
Paul Conrad21-Nov-06 19:41
professionalPaul Conrad21-Nov-06 19:41 
GeneralRe: Can't connect to Mysql &amp;quot;godaddy&amp;quot; [modified] Pin
Samuel G21-Nov-06 20:14
Samuel G21-Nov-06 20:14 
GeneralRe: Can't connect to Mysql &quot;godaddy&quot; Pin
Paul Conrad21-Nov-06 20:57
professionalPaul Conrad21-Nov-06 20:57 
GeneralRe: Can't connect to Mysql &amp;quot;godaddy&amp;quot; Pin
Samuel G21-Nov-06 21:29
Samuel G21-Nov-06 21:29 
QuestionError While importing Excel file in to Sql server 2005. Pin
srinivasintouch20-Nov-06 23:03
srinivasintouch20-Nov-06 23:03 
AnswerRe: Error While importing Excel file in to Sql server 2005. Pin
Paul Conrad25-Dec-06 18:19
professionalPaul Conrad25-Dec-06 18:19 
QuestionFinding a date between two dates.. [really urgent] Pin
kkadir20-Nov-06 22:15
kkadir20-Nov-06 22:15 
AnswerRe: Finding a date between two dates.. [really urgent] Pin
Colin Angus Mackay20-Nov-06 23:19
Colin Angus Mackay20-Nov-06 23:19 

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.