Hello,
I am creating two temporary tables "tableCon11" and "tableCon12" having same fields "stn_cde", "emp_dept_desc", "amount". I have kept one table empty and other table containing a single record. I have to combine these two tables.
How can I write the query?:confused: Please guide.
Thank you.
Regarding SQL Query
Started by Goodluck, Jul 10 2008 10:41 PM
3 replies to this topic
#1
Posted 10 July 2008 - 10:41 PM
|
|
|
#2
Guest_Jordan_*
Posted 11 July 2008 - 05:48 AM
Guest_Jordan_*
If one table is empty what is there to combine?
#3
Posted 11 July 2008 - 10:56 PM
Hello,
Even if there is one table empty and another containing a single record, when I will run the query to combine these two tables then the resulting resultset must contain a single record. But when I actually used to run it, it shows no record. That's why I need a format for the query to combine these two tables having the same fields. Please guide.
Thanks.
Even if there is one table empty and another containing a single record, when I will run the query to combine these two tables then the resulting resultset must contain a single record. But when I actually used to run it, it shows no record. That's why I need a format for the query to combine these two tables having the same fields. Please guide.
Thanks.
#4
Posted 05 August 2008 - 04:05 AM
You can refer to your tables as tableCon11.stn_cde and tableCon12.stn_cde
ex: SELECT * FROM tableCon11, tableCon12 WHERE tableCon11.stn_cde=tableCon12.stn_cde;
ex: SELECT * FROM tableCon11, tableCon12 WHERE tableCon11.stn_cde=tableCon12.stn_cde;


Sign In
Create Account


Back to top









