If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > DB newbie looking for some answers...

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-28-04, 13:58
cob cob is offline
Registered User
 
Join Date: Jun 2004
Posts: 2
DB newbie looking for some answers...

Hi everyone,

I am currently in the process of working through a book to attempt to learn how to interact with a DB via ASP. The original tutorial came with an Access DB, which I converted to mySQL (which better suits my environment). I have come to a potential snag. I am using version 4.0.18 of mySQL, and have now come to a portion of the tutorial where I have to create a view. I know this functionality exists in Access, but does it exist in mySQL as well?

I guess what I want to know is if the following query statement (created for an Access DB) will still work with mySQL? :

Code:
SELECT employees_1.EmployeeID, jobs.JobID, jobs.JobTitle, employees_1.EmployeeFirst, employees_1.EmployeeLast, departments.DepartmentName, [employees].[EmployeeFirst] & ' ' & [employees].[EmployeeLast] AS ManagerName, employees_1.EmployeeEmail, employees_1.EmployeePhone, employees_1.EmployeeMobil, employees_1.EmployeeCube,
FROM (employees as employees_1 LEFT JOIN (employees RIGHT JOIN (jobs LEFT JOIN jobs AS jobs_1 ON jobs.JobManager = jobs_1.JobID) ON employees.employeeJob = jobs.JobID) LEFT JOIN departments ON jobs.JobDept = departments.DepartmentID;
and if not, what are my options???

Thanks in advance,

COB
Reply With Quote
  #2 (permalink)  
Old 06-28-04, 19:56
numLocked numLocked is offline
Registered User
 
Join Date: May 2004
Posts: 9
holy crap, that's a complicated query. It looks alright to me though.
Reply With Quote
  #3 (permalink)  
Old 06-29-04, 08:10
cob cob is offline
Registered User
 
Join Date: Jun 2004
Posts: 2
Quote:
Originally Posted by numLocked
holy crap, that's a complicated query. It looks alright to me though.
really?

ok, I'll give it a shot...

thanks for your time!
Reply With Quote
Reply

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On