PDA

View Full Version : SELECT from 2 tables at the same time


error_22
04-25-2006, 10:24 PM
Hi,

I was wondering, is it possible to select information from two fields at the same time?

Thanks in advance
Niklas

Xenon
04-25-2006, 10:33 PM
yes, either by join, or by cross selection:

SELECT * FROM table1, table2 WHERE table1.soething = 'gfmnf' AND table2.something='gjdghj' AND table1.anotherthing = table2.anotherthing

error_22
04-25-2006, 10:46 PM
Thanks Xenon !! :)

Xenon
04-25-2006, 11:47 PM
you're welcome :)