07-12-2009 09:00 PM
Solved! Go to Solution.
07-12-2009 10:30 PM
07-12-2009 10:43 PM
07-13-2009 09:05 AM
labviewproject wrote:
I tried to use the join clause
In what way?
but the vi shows me an error.
which is?
07-13-2009 09:10 PM - edited 07-13-2009 09:13 PM
Hi, the first picture below is the vi which i have attached in the first post. the second picture is the error which comes out after i run the vi. im not really sure if i use the join clause correctly.
[IMG]http://i93.photobucket.com/albums/l65/vittoire/NewPicture.jpg[/IMG]
[IMG]http://i93.photobucket.com/albums/l65/vittoire/NewPicture1.jpg[/IMG]
07-13-2009 09:26 PM
No, it's not correct. Did you look at the link from smercurio_fc? Since you are using Access, you can also have Access show you the correct SQL syntax. Design a query to return the data. There is then an option to show SQL. I don't remember exactly where the option selection as I don't have Access here and actually have not used anything other than SQL Server or Oracle in quite a few years.
p.s. You also have to have a relationship between the two tables before you can do a join.
07-13-2009 10:51 PM
Hi, i have seen the link which smercurio_fc posted when i tried to join the tables together. I have also used the join clause when i started learning about database design using oracle. i have design a query yesterday after reading up about ms access. Im currently thinking of using macro with activex to display my data. do you have any example regarding using labview sql query or using macro ms access with activex for labview? i have the relationship between the 2 tables done. i read through the ms access book but i could not find the method to use access to show me the correct sql syntax.
07-13-2009 11:03 PM
My example of doing a join would be similar to the example in the link. Why don't you post details on the relationship between the two tables?
I would not recomend ActiveX for the query. It is significantly slower and you would have to have Access installed instead of just the jet database.
07-14-2009 12:22 AM
in my address table, i have AddID, Unit, BlockNo, Address.
in my persondetails table, i have OVID, FirstName, LastName, ContactNo, Age, Marital status AddID
my AddID is the pri key for my address table & it is link to my persondetails table as the foreign key.
07-14-2009 09:26 AM
Something like:
SELECT address.address, personaldetails.FirstName, personaldetails.LastName
FROM address
INNER JOIN personaldetails
ON address.AddID = personaldetails.AddID