Click here to Skip to main content
15,881,803 members
Home / Discussions / Database
   

Database

 
AnswerRe: UPDATE Multiple tables on one filed. Pin
smcnulty200014-Jul-11 22:39
smcnulty200014-Jul-11 22:39 
AnswerRe: UPDATE Multiple tables on one filed. [modified] Pin
Niladri_Biswas18-Jul-11 2:12
Niladri_Biswas18-Jul-11 2:12 
QuestionCalculate and display a progressive balance Pin
Rameez Raja11-Jul-11 20:48
Rameez Raja11-Jul-11 20:48 
AnswerRe: Calculate and display a progressive balance Pin
Corporal Agarn12-Jul-11 4:40
professionalCorporal Agarn12-Jul-11 4:40 
AnswerRe: Calculate and display a progressive balance Pin
smcnulty200014-Jul-11 22:34
smcnulty200014-Jul-11 22:34 
GeneralRe: Calculate and display a progressive balance Pin
Rameez Raja16-Jul-11 22:49
Rameez Raja16-Jul-11 22:49 
GeneralRe: Calculate and display a progressive balance Pin
smcnulty200018-Jul-11 13:36
smcnulty200018-Jul-11 13:36 
QuestionSelecting multiple columns from several tables without using JOIN Pin
Dominick Marciano11-Jul-11 4:41
professionalDominick Marciano11-Jul-11 4:41 
I'm currently building a web-based store for my company that allows students register for different classes. In the administration section of the website there is page where a user can create a new class for students to register for. On this page there is multiple items that the person must fill out; date and time of class, the instructor, the course name, etc. Some of these items are stored in a database. For example, there is a table that has all the instructor's names and ID numbers, and there is another table with all the course names, price, etc.

My problem is that I want to populate several drop-down menus with information from different tables that have no relationship. For example I want to pull all the instructor's names (to be placed in one drop-down) and also select all the different course names (to be placed in a different drop-down). Now I could use multiple SQL statements to do this, but I was hoping there was a way to do it with a single SQL statement, however it cannot use JOINS. This is because, in the above example, the instructors table and the course table do not have any columns that are the same that the JOIN can be done on. I wanted to use a single SQL statement since this is web-based and the less calls to the database the quicker the website will load.

Any ideas or suggestions would be greatly appreciated, and thanks in advance for any help.
AnswerRe: Selecting multiple columns from several tables without using JOIN Pin
Blue_Boy11-Jul-11 4:55
Blue_Boy11-Jul-11 4:55 
GeneralRe: Selecting multiple columns from several tables without using JOIN Pin
David Mujica11-Jul-11 5:28
David Mujica11-Jul-11 5:28 
AnswerRe: Selecting multiple columns from several tables without using JOIN Pin
kmoorevs11-Jul-11 10:08
kmoorevs11-Jul-11 10:08 
AnswerRe: Selecting multiple columns from several tables without using JOIN Pin
Shameel11-Jul-11 21:30
professionalShameel11-Jul-11 21:30 
AnswerRe: Selecting multiple columns from several tables without using JOIN Pin
David Skelly12-Jul-11 3:54
David Skelly12-Jul-11 3:54 
AnswerRe: Selecting multiple columns from several tables without using JOIN Pin
AnnieMacD14-Jul-11 6:24
AnnieMacD14-Jul-11 6:24 
GeneralRe: Selecting multiple columns from several tables without using JOIN Pin
Shameel14-Jul-11 18:52
professionalShameel14-Jul-11 18:52 
GeneralRe: Selecting multiple columns from several tables without using JOIN Pin
smcnulty200014-Jul-11 22:46
smcnulty200014-Jul-11 22:46 
GeneralRe: Selecting multiple columns from several tables without using JOIN Pin
Shameel15-Jul-11 2:22
professionalShameel15-Jul-11 2:22 
GeneralRe: Selecting multiple columns from several tables without using JOIN Pin
AnnieMacD15-Jul-11 2:45
AnnieMacD15-Jul-11 2:45 
GeneralRe: Selecting multiple columns from several tables without using JOIN Pin
Shameel15-Jul-11 7:50
professionalShameel15-Jul-11 7:50 
GeneralRe: Selecting multiple columns from several tables without using JOIN Pin
AnnieMacD15-Jul-11 7:56
AnnieMacD15-Jul-11 7:56 
GeneralRe: Selecting multiple columns from several tables without using JOIN Pin
smcnulty200015-Jul-11 5:39
smcnulty200015-Jul-11 5:39 
GeneralRe: Selecting multiple columns from several tables without using JOIN Pin
Shameel15-Jul-11 7:48
professionalShameel15-Jul-11 7:48 
GeneralRe: Selecting multiple columns from several tables without using JOIN Pin
smcnulty200015-Jul-11 8:08
smcnulty200015-Jul-11 8:08 
GeneralRe: Selecting multiple columns from several tables without using JOIN Pin
AnnieMacD15-Jul-11 2:44
AnnieMacD15-Jul-11 2:44 
AnswerRe: Selecting multiple columns from several tables without using JOIN Pin
smcnulty200014-Jul-11 23:20
smcnulty200014-Jul-11 23:20 

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.