I don't know the DBMS syntax, but I think this
"foreign key(id33) references table1,foreign key(id33) references table2)"
should be more like this
Foreign Key (id1x) references table1(id1)...
Looking at the mysql 5.0 reference manual, under other functions, there is a function called row_count() - returns the number of rows updated, inserted, or deleted by the preceding statement and it...
Joseph - If someone like a DataBase Administrator is taking care of the database, then you probably don't need to worry about the backup, recovery and some of the database functions. You should...
Hi. I know you have this resolved, but based on what you said, I think that you want an automatic update whenever the row gets updated. You may want to do some research into your MySQL's procedures...
I think that you need to use the "Group By" clause and alias names. I don't know if the following sql is right or not because I don't have time to setup tables to test this, but I'm thinking along...
select a.dept_id, a.acct, a.spend, a.budget from budget a, dept where dept.dept_id=a.dept_id and dept.acct=a.acct
union select dept_id, acct, 0, 0 from dept where not...