Notices
The Basement Non-Honda/Acura discussion. Content should be tasteful and "primetime" safe.

People that know SQL - Help please!

Old Oct 2, 2007 | 10:01 AM
  #11  
H-Accord-22's Avatar
H-Accord-22
Duh
 
Joined: May 2002
Posts: 6,903
Likes: 0
From: Southside foo!!
Default

I thought you mean SQL = Sound Quality Level h:
Reply
Old Oct 2, 2007 | 10:07 AM
  #12  
XScarAudio's Avatar
XScarAudio
///o\\\///o\\\
 
Joined: May 2002
Posts: 8,550
Likes: 0
From: Tampa
Default

if you break it apart does it work? Like, do the select first, then if that returns fine, run it w/ the join etc....dunno if you did this, but I always build outward. Also, i've gotten in the habit of using DB.dbo.table, like grifter said.
Reply
Old Oct 2, 2007 | 10:07 AM
  #13  
dieneverknowing's Avatar
dieneverknowing
Senior Member
 
Joined: Nov 2006
Posts: 165
Likes: 0
From: jax fl
Default

Try that.

Code:
SELECT (e.emp_fname ||' '|| e.emp_lname) Pilot, p.pil_pt135_date, e.emp_hire_date
FROM hartmar.employee e JOIN hartmar.pilot p ON e.emp_num = p.emp_num
WHERE p.pil_license = '&my_pilot_license_type'
ORDER BY Pilot;
If it still craps out, try switching the order of the tables

Code:
FROM hartmar.pilot p JOIN hartmar.employee e ON p.emp_num = e.emp_num
Reply
Old Oct 2, 2007 | 10:11 AM
  #14  
Pete's Avatar
Pete
Thread Starter
Civilian
 
Joined: Jun 2003
Posts: 8,407
Likes: 1
From: Miami Beach. FL
Default

Originally Posted by dieneverknowing
Try that.

Code:
SELECT (e.emp_fname ||' '|| e.emp_lname) Pilot, p.pil_pt135_date, e.emp_hire_date
FROM hartmar.employee e JOIN hartmar.pilot p ON e.emp_num = p.emp_num
WHERE p.pil_license = '&my_pilot_license_type'
ORDER BY Pilot;
If it still craps out, try switching the order of the tables

Code:
FROM hartmar.pilot p JOIN hartmar.employee e ON p.emp_num = e.emp_num
Bless you good sir, you have solved the problem
Reply
Old Oct 2, 2007 | 10:40 AM
  #15  
dieneverknowing's Avatar
dieneverknowing
Senior Member
 
Joined: Nov 2006
Posts: 165
Likes: 0
From: jax fl
Default

Originally Posted by Pete
Bless you good sir, you have solved the problem
:10q: Glad I could help!
Reply



All times are GMT -8. The time now is 10:19 AM.