Click here to Skip to main content
12,404,478 members (70,582 online)
   

Database

 
AnswerRe: SQL Group By Question Pin
Blue_Boy6-Dec-12 10:11
memberBlue_Boy6-Dec-12 10:11 
GeneralRe: SQL Group By Question Pin
loyal ginger31-Dec-12 5:48
memberloyal ginger31-Dec-12 5:48 
QuestionIssues installing ODP.NETx64 Pin
cpp_prgmer6-Dec-12 4:18
membercpp_prgmer6-Dec-12 4:18 
AnswerRe: Issues installing ODP.NETx64 Pin
Eddy Vluggen6-Dec-12 14:37
memberEddy Vluggen6-Dec-12 14:37 
GeneralRe: Issues installing ODP.NETx64 Pin
Peter_in_27806-Dec-12 15:12
memberPeter_in_27806-Dec-12 15:12 
GeneralRe: Issues installing ODP.NETx64 Pin
Mycroft Holmes6-Dec-12 16:52
memberMycroft Holmes6-Dec-12 16:52 
AnswerRe: Issues installing ODP.NETx64 Pin
Mycroft Holmes6-Dec-12 16:53
memberMycroft Holmes6-Dec-12 16:53 
QuestionSQL Query - append results Pin
AndreFratelli5-Dec-12 6:43
memberAndreFratelli5-Dec-12 6:43 
Hi everyone,

I'm having trouble with this query in SQL (homework!).

I have two tables: customer and staff.

== Customer (the relevant fields) ==
customer_id
first_name
last_name

== Staff ==
staff_id
first_name
last_name

The question is: "select the first and last names of all customers and staff".

Can anybody help on how to do that? I don't know how to "append" the results of the two queries, and googling I can only find about INSERT ... SELECT, which is not what I'm looking for =\

Best regards to all.
Fratelli

AnswerRe: SQL Query - append results Pin
Chris Meech5-Dec-12 6:55
memberChris Meech5-Dec-12 6:55 
GeneralRe: SQL Query - append results Pin
AndreFratelli5-Dec-12 7:08
memberAndreFratelli5-Dec-12 7:08 
QuestionSQL 2008 Data Base Table Design suggestion Pin
VishwaKL4-Dec-12 23:36
memberVishwaKL4-Dec-12 23:36 
AnswerRe: SQL 2008 Data Base Table Design suggestion Pin
Simon_Whale4-Dec-12 23:43
memberSimon_Whale4-Dec-12 23:43 
GeneralRe: SQL 2008 Data Base Table Design suggestion Pin
VishwaKL4-Dec-12 23:47
memberVishwaKL4-Dec-12 23:47 
GeneralRe: SQL 2008 Data Base Table Design suggestion Pin
Simon_Whale4-Dec-12 23:51
memberSimon_Whale4-Dec-12 23:51 
AnswerRe: SQL 2008 Data Base Table Design suggestion Pin
PIEBALDconsult5-Dec-12 3:56
memberPIEBALDconsult5-Dec-12 3:56 
Question[HELP] how to using array in my case? (Query & PHP) Pin
jimmy.suharry4-Dec-12 20:14
memberjimmy.suharry4-Dec-12 20:14 
AnswerRe: [HELP] how to using array in my case? (Query & PHP) Pin
Mycroft Holmes4-Dec-12 20:38
memberMycroft Holmes4-Dec-12 20:38 
GeneralRe: [HELP] how to using array in my case? (Query & PHP) Pin
jimmy.suharry4-Dec-12 20:56
memberjimmy.suharry4-Dec-12 20:56 
QuestionSQL query Date Sort Problem Pin
AnirbanM 23-Dec-12 3:09
memberAnirbanM 23-Dec-12 3:09 
AnswerRe: SQL query Date Sort Problem Pin
ihoecken3-Dec-12 4:42
memberihoecken3-Dec-12 4:42 
GeneralRe: SQL query Date Sort Problem Pin
AnirbanM 23-Dec-12 18:46
memberAnirbanM 23-Dec-12 18:46 
AnswerRe: SQL query Date Sort Problem Pin
Eddy Vluggen3-Dec-12 5:20
memberEddy Vluggen3-Dec-12 5:20 
GeneralRe: SQL query Date Sort Problem Pin
AnirbanM 23-Dec-12 18:48
memberAnirbanM 23-Dec-12 18:48 
GeneralRe: SQL query Date Sort Problem Pin
Eddy Vluggen3-Dec-12 23:00
memberEddy Vluggen3-Dec-12 23:00 
AnswerRe: SQL query Date Sort Problem Pin
djj553-Dec-12 5:46
memberdjj553-Dec-12 5:46 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 28 Jul 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid