hi i am trying to join two tables with UNION ALL but get the following error
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[MySQL][ODBC 3.51 Driver][mysqld-5.1.62-log]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') and performancedate>=DATE() ORDER BY venue' at line 1
/website/unionall.asp, line 11
Table1 = Date, Venue, Artist
Table2 = performancedate, venue, artist
i need a single table that lists all dates and bookings so i can merge
this is the code
<%
Set objconn = Server.CreateObject("ADODB.Connection")
objconn.ConnectionString = ""
objconn.Open
Set objRs = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT Date, Venue, Artist FROM WWGigs UNION ALL SELECT performancedate, venue, artist FROM gigs WHERE DATE>=DATE() and performancedate>=DATE() ORDER BY venue"
UNION ALL error
in SQL
Posted
hi i am trying to join two tables with UNION ALL but get the following error
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[MySQL][ODBC 3.51 Driver][mysqld-5.1.62-log]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') and performancedate>=DATE() ORDER BY venue' at line 1
/website/unionall.asp, line 11
Table1 = Date, Venue, Artist
Table2 = performancedate, venue, artist
i need a single table that lists all dates and bookings so i can merge
this is the code