Author Topic: [SQL] Where expression problem [SOLVED]  (Read 382 times)

0 Members and 1 Guest are viewing this topic.

Offline Code.Illusionist

  • Royal Highness
  • ****
  • Posts: 687
  • Cookies: 39
  • Compile or die trying
    • View Profile
[SQL] Where expression problem [SOLVED]
« on: November 19, 2014, 09:36:15 pm »
Hello there, I am using Microsoft Access 2007 and this is my SQL code:

Code: [Select]
SELECT [First Name] , [Invoice Date]
FROM Customers AS c, Invoices AS i
WHERE (c.[First Name] LIKE 'A*') AND (i.[Invoice Date] BETWEEN #1/1/2006# AND #3/3/2006);

My table names are Customers, and as well Invoices, and table columns are First Name and Invoice Date. That's all from Northwind database.

I don't understand why my  SQL querry doesn't work.
« Last Edit: November 21, 2014, 08:22:29 am by Code.Illusionist »
Vae Victis - suffering to the conquered

Offline Code.Illusionist

  • Royal Highness
  • ****
  • Posts: 687
  • Cookies: 39
  • Compile or die trying
    • View Profile
Re: [SQL] Where expression problem
« Reply #1 on: November 20, 2014, 08:22:05 am »
It was error simply saying: You have error at "Expression" , blah blah. I didn't create database, it's wide known Northwind database, avaliable in Access and on internet for use. They created Filed name like that, I would never do such thing, because I will have to use [] forever... For the wildcard, in SQL Access , we use * , but i am familiar with % as well.

And thanks, the true error was with # , i missed one. Such idiot. Thank you man.
Vae Victis - suffering to the conquered