Ask a Question related to Coldfusion Database Access, Design and Development.
-
PeteMares #1
Can an inserst statement do this
Ok I don't know if this is possible, I don't really know much about coldfusion.
but where is what I want to happen.
With out going into to much details and elimintating table fields that don't
concern this here is the table.
Order information:
CompID (autonum)
ServiceTag
Employees
EmployeeId(autonum)
Name
ComputerAssignments
Assignmentnum (autonum)
ComputerID
EmployeeID
Here is what I want...I want a form that when you put in thier Name and
ServiceTag it will look up thier computerID and employeeID and then insert that
into the computerassignment table.
PeteMares Guest
-
If Statement???
guys i was wondering if anybody here could help me. I have a page done up with all dynamic text and attributes on it that come from a management... -
Need Help With a SQL Statement
I've created an application that collects performance reviews for the employees in our organization. The database contains a "people" table which... -
Use of FOR statement
I am reading through a book on Objects and References and I don't understand this statement: $sum += $_ for split //; I thought a FOR... -
AW: if-else-statement
--On Wednesday, September 03, 2003 11:56 PM +0200 "B. Fongo" <mygrps@fongo.de> wrote: Look at the docs for CGI.pm under pragmas, the -nosticky... -
Can i say OR in an if/then statement
I am trying to say if (condition) is true OR (condition) is true THEN Can I use OR or do ihave to break it down into an elseif statement? I... -
Jochem van Dieten - TMM #2
Re: Can an inserst statement do this
PeteMares wrote:
This should get you started:>
> Order information:
> CompID (autonum)
> ServiceTag
>
> Employees
> EmployeeId(autonum)
> Name
>
> ComputerAssignments
> Assignmentnum (autonum)
> ComputerID
> EmployeeID
>
> Here is what I want...I want a form that when you put in thier Name and
> ServiceTag it will look up thier computerID and employeeID and then insert that
> into the computerassignment table.
INSERT INTO computerassignments (computerID, employeeID)
SELECT oi.compID, e.employeeID
FROM "Order Information" oi, Employees e
WHERE oi.ServiceTag = <cfqueryparam value="#form.servicetag#">
AND e.Name = <cfqueryparam value="#form.name#">
Jochem
--
Jochem van Dieten
Team Macromedia Volunteer for ColdFusion, beer and fun.
Jochem van Dieten - TMM Guest
-



Reply With Quote

