Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

SQL not working

$
0
0

Hi My SQL isnt currently working

SELECT T1."adnumbr"
      ,T1."adsourc"
      ,T1."adoper"
      ,T1."mkldate"
      ,T1."totins"
      ,T1."adstart"
      ,T1."adstopd"
      ,T1."paytype"
      ,T1."total_cpi"
      ,T1."total_gross"
      ,T1."total_vat"
      ,T1."catchln"
      ,T1."adcatgy"
      ,T1."adstyle"
      ,T1."adclass"
      ,T1."calclct"
      ,T1."speclct"
      ,T1."calcwct"
      ,T1."specwct"
      ,T1."calcdep"
      ,T1."specdep"
      ,T1."calcols"
      ,T1."colmcnt"
      ,T1."grpname"
      ,T1."adaltrd"
      ,T1."adtype"
      ,T1."colour"
      ,T1."estmtd"
      ,T1."mainid"
      ,T1."adqinstr"
      ,T1."adentrd"
,T2."Company"
,T3."ttlcode"
 FROM "Stats"."dbo"."stats"_adheader" T1, "Stats"."dbo"."stats_adcontact" T2, "Stats.dbo.stats_insertheader" T3
WHERE
T1."adnumbr" = T2."adnumbr"

The error message I get is 

Unclosed quotation mark after the character string ''.
An object or column name is missing or empty. For SELECT INTO statements, verify each column has a name. For other statements, look for empty alias names. Aliases defined as "" or [] are not allowed. Add a name or single space as the alias name. 
Incorrect syntax near ' T1, '.

Any help?

Thanks


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>