Help: A view that uses values from one table to display info from another table.
From: Jason Csizmadi (jcsizmadi_at_bozelljacobs.com)
Date: 06/09/04
- Previous message: SqlJunkies User: "question"
- Next in thread: Adam Machanic: "Re: A view that uses values from one table to display info from another table."
- Reply: Adam Machanic: "Re: A view that uses values from one table to display info from another table."
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 09 Jun 2004 16:28:06 -0500
Išve got a question about setting up a view that collects information from
one table based on the values entered into another table.
I have table one with four integer fields. I need to create a view the uses
the fields values in table one and displays the information from Table two.
Table two cmd field is linked to both the (name one) field and (name two)
files of table one. What I want displayed in my view is the variable content
in table two instead of the integer values from table one.
If anyone has clue to how to do this please respond to this post.
Table 1
____________________
Cmd / int/ 4
____________________
Sort / int / 4
____________________
Name_one / int / 4
____________________
Name two / int / 4
____________________
++++++++++++++++
Table 2
____________________
Cmd / int/ 4
____________________
Name / varhcar / 50
____________________
++++++++++++++++
Desired View
____________________________________________________________________
Sort | Name one | Name two |
____________________________________________________________________
1 | Content 1 | Content 2 |
The View I get
____________________________________________________________________
Sort | Name one | Name two | Name |
____________________________________________________________________
1 | 9 | 10 | Content 1 |
Sent using the Microsoft Entourage 2004 for Mac Test Drive.
- Previous message: SqlJunkies User: "question"
- Next in thread: Adam Machanic: "Re: A view that uses values from one table to display info from another table."
- Reply: Adam Machanic: "Re: A view that uses values from one table to display info from another table."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|