Lost Password?


Go Back   CodeCall Programming Forum > Software Development > General Programming

General Programming Non language specific, Assembly, Linux/Unix, Mac and anything not covered in other topics. Talk about Programming Theory here.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-11-2008, 02:41 AM
Goodluck Goodluck is offline
Newbie
 
Join Date: Mar 2008
Posts: 13
Rep Power: 0
Goodluck is on a distinguished road
Default Regarding SQL Query

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? Please guide.

Thank you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 07-11-2008, 09:48 AM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 9,232
Last Blog:
Ext JS or Ext GWT
Rep Power: 20
Jordan is just really niceJordan is just really niceJordan is just really niceJordan is just really nice
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default Re: Regarding SQL Query

If one table is empty what is there to combine?
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-12-2008, 02:56 AM
Goodluck Goodluck is offline
Newbie
 
Join Date: Mar 2008
Posts: 13
Rep Power: 0
Goodluck is on a distinguished road
Default Re: Regarding SQL Query

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 08-05-2008, 08:05 AM
acccapulco acccapulco is offline
Newbie
 
Join Date: Aug 2008
Posts: 5
Rep Power: 0
acccapulco is on a distinguished road
Default Re: Regarding SQL Query

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;
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial: Advanced SQL Jordan Tutorials 2 04-07-2008 04:18 PM
SQL query sayhello2ay Database & Database Programming 2 03-04-2008 09:01 AM
Best program for SQL database manipulation Rhadamanthys Database & Database Programming 3 07-02-2007 03:32 PM
Access database query using sql help !!! ORACLE Visual Basic Programming 4 04-16-2007 02:12 PM
Clear my sql query? reachpradeep Database & Database Programming 0 03-04-2007 01:25 AM


All times are GMT -5. The time now is 06:34 PM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 98%

Ads