|
Brad, it's not clear exactly what you did. Please send the code so we
look it over!
----- Original Message -----
From: Brad Davidson
Sent: Monday, October 10, 2005 3:49 PM
Subject: [RBG7-L] - UNION command Ready for a basic SQL question?
Really have never had to do a UNION command, rather, have used the power of temporary tables/views to get data needed from the DB.
But, over the weekend, attempted the Union command of a temporary view and a temporary table.
Upon first pass, no problem.
Second pass, drops the table formed from the union ok, but, get an error message: Internal Lock of table, disconnect, and re-connect with 1 user, etc
Anyone know why? What am I not understanding with this command what should I be looking for?
Thanks for any ideas on this.
-Brad Davidson
-----Original
Message-----
Add a bracket at the end. Like this
CREATE TEMPORARY TABLE `tInvoiceHeader` + (`TransID` INTEGER, + `CustID` INTEGER, + `EmpID` INTEGER, + `TransDate` DATE, + `BillToCompany` TEXT (40), + `BillToAddress` TEXT (30), + `BillToCity` TEXT (20), + `BillToState` TEXT (2), + `BillToZip` TEXT (10), + `ShipToCompany` TEXT (40), + `ShipToAddress` TEXT (30), + `ShipToCity` TEXT (20), + `ShipToState` TEXT (2), + `ShipToZip` TEXT (10), + `NetAmount` CURRENCY, + `Freight`= ( netamount* .01) CURRENCY, + `Tax`= ( netamount* .081) CURRENCY, + `InvoiceTotal`= (NetAmount+Freight+Tax) CURRENCY)+ )
From:
[email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Myron Bernie, Somewhere along the way I remember Razzak saying that with the new release(s) you should be using IDQUOTES. So, the question becomes this; looking forward what is the best way to write the program so that it will work with future versions?
Once I set the IDQUOTES for ` it worked fine. I just needed help with the IDQUOTES. Thanks for your help. Myron
From:
[email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Bernard Lis
Myron, I don't use quotes around col name, try it without quotes. Bernie Lis
____________________________________________________________________ |
- [RBG7-L] - Re: UNION command David M. Blocker
- [RBG7-L] - Re: UNION command Brad Davidson
- [RBG7-L] - Re: UNION command David M. Blocker
- [RBG7-L] - Re: UNION command Brad Davidson
