I have tried both ways but I am still getting random results. Rather than the two I want I get 8 records once, and the other two times 3. I've changed the word date to order date and the dates are now in american format. This is the last thing I did:
INSERT INTO OldOrders
SELECT *
FROM Orders...
Hi guys. I've just entered this SQL to insert data into another table.
INSERT INTO OldOrders
SELECT *
FROM Orders
WHERE OrderID IN
(Select Orders.OrderID From Orders INNER JOIN OrdersDetails ON Orders.OrderID=OrdersDetails.OrderID
WHERE (Orders.Date Between '01/01/2008' And '01/02/2009') )...
Thanks guys. However I feel access isn't the most user friendly and doesn't help you out well enough when one is in trouble. Thier error messages leave a lot tot be desired.
Maybe you can send this feedback back to Microsoft.
Uh huh. Thanks that cleared a lot up and will hopefully ensure me to do things by myself now. The only problem is sometimes I have to get the format correct i.e. where the breackets go, which line etc.
This is one of the queries I done with your help. I don't know how it worked but it did...
So I would have to do:
INSERT INTO No_Orders (the table)
SELECT Customer ID, Sname, Fname, Address, PostCode, Phone, OrderID
FROM Customer, Orders
I don't know the next step but I thik I have to do some sort of INNER JOIN. This is getting...
I executed it and it worked. I have now opened thanks but there is no data. I know I haven't specified it but is there a way where you can insert data from different tables using the same DDL statment?
CREATE TABLE
NO_ORDERS
(
Sname varchar(20),
Fname varchar(20),
Address varchar(30),
PostCode...
Okay thanks. I have done what you have recommended. The create table worked but I can't open the query again as it says the table has been made, in this case the No_Orders table. I can open that new table but not the query I made it with.
Hi sir. Thanks for your help. Regarding looking for access help; they all follow the same layout and it goes wrong. I have no spaces while I'm not familiar with String and what it means. Thanks.
I want to practice making queries but it doesn't seem to work.
I can do basic SQL, but SQL DDL doesn't work. Same applies for DML although I am following the correct steps. Please help.
For example CREATE TABLE. This is what I have done thus far:
CREATE TABLE
NO ORDERS
(Sname varchar(20)...