sql - Error Msg: unknown column in field list in tables with the field -


Currently I have the following code, Part I and Part 3 works fine though, when I'm trying to union I have two temporary tables, giving me the error message of "unknown column name" in the "field list" "Even when I've spent a lot of time changing the name that was filed" in the name 'temporary' .

  create a temporary table, then not inp_cnt exists (, a.name selection (different ad.pub_id) as count c as an intermediate ad from the author But join the author at a.id = ad.author_id join inproceedings form inp ad.pub_id = inp.pub_id where inp.booktitle = "SIGMOD conference" or inp.booktitle = "KDD" or ad.author_id inp .booktitle = "VLDB" group); If you create a temporary table, then ar_cnt is present (select a.name, (different ad.pub_id) as the count of c from the writer as an a.id = ad.author_id ad on the interiors Join the author to join the author article at ar.pub_id = Ar.pub_id WHERE ar.journal = ad.author_id by the "PVLDB" group); Name of the name by the TAP group as the name of the selection, the amount (C) from the total (Selection Name, CFIINNNS Union, All Select Name, CFRRCank); Total DESC limit 20;   

Can someone give some hint on this? Do I get this error message because name is a special keyword in SQL ??

To try changing the last query:

  Select tmp.name, SUM (tmp.c) from the total by tmp.name command (select name, c inp_cnt union select all name, c from ar_cnt) as tmp group as total dsc limit 20 From;   

Then you have tmp.name in the group .

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -