- Q Which war was fought between the Portugal and a combined force of Turkey, Egypt, Venice, the Republic of Ragusa and the Sultan of Gujarat Mahmud Begade ?
- Q It is a fact that, apart from the peripherals, the whole of a computer can be made from NAND gates. The Egyptians created NAND gates using marbles rolling down shutes and used the them for booby trapping pyramids. Did, then, the Egyptians invent the computer? If not, explain fundamentally why not.
- Q What good books have you read lately?
- Q What statement generated by WinRunner when you check any bitmap image over the windows?
- Q What are adjustment postings and its use? give t.codes and paths if possible?
- Q Name at least six file extensions of microsoft access?
- Q What is ntu in thermodynamics?
- Q What is join dependency and inclusion dependency?
- Q A temple dedicated to all the gods
- Q Parr, Smolt and Grilse different names same thing what
- Q What is digital?
Question
What does "ambiguous column name" mean?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Answers
This usually means your SQL statement is joining on more than one table, and doesn't know which column you're
trying to retrieve. For example:
SELECT column1
FROM table1
JOIN table2
ON table1.column1 = table2.column1
To fix this, you'll want to butter up the statement a bit:
SELECT column1 = t1.column1
FROM table1 t1
JOIN table2 t2
ON t1.column1 = t2.column1
The changes:
n Used an alias for the column name, so that external code continues to work when referencing "column1"
n Added the prefix "t1" to the requested column, so that the engine knows which table we want the data
from
n Added table aliases in the FROM / JOIN clauses to shorten the code
Your Comment
trying to retrieve. For example:
SELECT column1
FROM table1
JOIN table2
ON table1.column1 = table2.column1
To fix this, you'll want to butter up the statement a bit:
SELECT column1 = t1.column1
FROM table1 t1
JOIN table2 t2
ON t1.column1 = t2.column1
The changes:
n Used an alias for the column name, so that external code continues to work when referencing "column1"
n Added the prefix "t1" to the requested column, so that the engine knows which table we want the data
from
n Added table aliases in the FROM / JOIN clauses to shorten the code
Your Comment
- 0
- 0
- New Answer
- Contributors: *,
More Software Questions..
What is the inputsplit in map reduce software?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is software configuration management?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What Is Java Api For Xml-based Rpc (jax-rpc)?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
How can you implement fine-grained auditing?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is IBM’s simple explanation for Big Data’s four critical features?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is static synchronized method in JDBC API? Give an example?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What does the NULLIF function do?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What happens if a start method is not invoked and the run method is directly invoked?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Should we override finalize method
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
what is the difference between mysql_fetch_array and mysql_fetch_object?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
How will XML affect my document links?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Why to use Style Sheets?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What are Filters in MVC?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Can you explain Application layer in OSI model?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
How to define new testplan attributes?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Which oracle package is used to manage the oracle lock management services?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is marker interface?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What types of partitioning are there for BW?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,